Re: jump to last read
* On 2007.02.05, in <20070205181023.GF626@xxxxxxxxxxxxxxxxxxxxx>,
* "Christian Ebert" <blacktrash@xxxxxxx> wrote:
>
> One of the very few features I am missing in Mutt is the ability
> to jump to the last read message. This is often available in
> newsreaders.
>
> For instance if I sort threads and tab jump to the next unread
> message, sometimes I'd like to go back to the last read, and have
> to search for it first.
>
> Anybody else interested in such a feature?
> Or could it be done with a macro?
> Or did I even overlook something?
http://home.uchicago.edu/~dgc/sw/mutt/patch-1.5.11.dgc.markmsg.2
provides an operation <mark-msg> which constructs a macro to <search>
by Message-ID, using the current message's Message-ID. It's modelled
on vi's feature to mark lines with "m" and return to them with "'".
For example, if I'm in the pager on Message-ID: <12345@xxxxxxxxxxx>,
then entering <mark-msg>a<enter> results in a macro 'a that issues
<search>~i "<12345@xxxxxxxxxxx>"<enter>.
With this patch you could build your feature as a macro (e.g., macro
index <space> "<mark-msg>previous<enter><display-message>"; "'previous"
to jump back), or you could implement it in code using the same
technique as this patch uses.
--
-D. dgc@xxxxxxxxxxxx NSIT University of Chicago