astroidmail / astroid

A graphical threads-with-tags style, lightweight and fast, e-mail client for Notmuch
http://astroidmail.github.io
Other
613 stars 65 forks source link

Feature request : Hide startup queries when there is no unread e-mails #500

Open taziden opened 6 years ago

taziden commented 6 years ago

Hi,

All is in the title of this issue. It would be nice to hide startup queries as long as they don't contain any unread e-mails. Maybe the best would be to have a keybinding in order to toggle this behavior.

Thanks, taziden

PS: this might not be a good idea. PS2: the idea is having a similar feature as in neomutt with sidebar limit https://neomutt.org/feature/sidebar-intro#intro-sidebar-limit

If you have a lot of mailboxes, sometimes it can be useful to hide the ones you aren't using. $sidebar_new_mail_onlytells Sidebar to only show mailboxes that contain new, or flagged, email.

gauteh commented 6 years ago

It would be more or less equally difficult to support filtering based on arbitrary queries. In your case it would be the same with just and tag:unread. So I think we could do that right away.

Any suggestions for (default) keybinding?