Re: Auto jump to next mailbox from pager

Christian Ebert <[email protected]>
Newsgroups gmane.mail.mutt.user
Organization Phloxic Productions https://phloxic.productions
Message-ID <[email protected]>
* [email protected] on Monday, December 30, 2024 
* at 19:17:13 -0800:
> On Mon, Dec 30, 2024 at 11:35:42PM +0000, Christian Ebert wrote:
>>> is there a way to make the command which moves to the next new or
>>> unread message in the pager (bound to Tab key in the pager keymap)
>>> go to the next mailbox with new messages (or unread, but that's
>>> not too important) when there are no more in the current mailbox?
> 
>> Not exactly what you want, but did you try the next-unread-mailbox
>> function?
> 
> Hmmm. I knew there was *some* command like that, I did not remember
> it or how to find it this time. Thank you.
> 
> However, it is listed as an available (not actual) binding in index
> mode. Would it work to bind it in pager mode?

For me/my mutt version it is listed in the manual for pager mode 
as well.

You can also call `help` in the pager to check.

> As I wrote in the other subthread: the whole point of this question is
> that I want to avoid dropping into index mode when I run out of new
> and / or unread messages in the current mailbox, and jump straight to
> reading the first interesting message in the next mailbox that
> contains one.

This in muttrc works definitely for me[tm]:

bind index,pager	<Esc>m		next-unread-mailbox

-- 
LAST SHIP HOME                   --->> https://lastshiphome.de/en
Official Selection                           DOK.fest Munich 2018
German Ocean Film Award                        CineMare Kiel 2019
Best Documentary Feature   Wales International Film Festival 2020
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.