Re: FR: show next unread message in notmuch-tree-mode

Subject: Re: FR: show next unread message in notmuch-tree-mode

Date: Tue, 21 Dec 2021 13:38:49 +0200

To: Gregor Zattler, notmuch@notmuchmail.org

Cc:

From: Teemu Likonen


* 2021-12-21 05:55:19+0100, Gregor Zattler wrote:

> Dear notmuch developers, it would be easier to read big and old
> threads, as e.g., the current one on emacs-devel on integrating sqlite
> (starts with: id:87tufmjyai.fsf@gnus.org) in notmuch-tree-mode if
> there was a notmuch-tree-scroll-or-next-unread command (and respective
> key binding).

While I don't oppose a new feature I'll show how I like to read unread
messages. In *notmuch-hello* buffer I have a separate section for unread
searches. Basically it is like normal list of saved searches but with
search term "tag:unread" added. Here is the code:


    (defun my-notmuch-hello-unread ()
      (notmuch-hello-insert-searches
       "Unread messages"
       (mapcar (lambda (search)
                 (plist-put (copy-sequence search)
                            :sort-order 'oldest-first))
               notmuch-saved-searches)
       :filter "tag:unread AND NOT tag:spam"
       :hide-if-empty t))

    (setq notmuch-hello-sections '(my-notmuch-hello-unread
                                   notmuch-hello-insert-saved-searches
                                   notmuch-hello-insert-alltags))



-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462
signature.asc (application/pgp-signature)
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: