<<< Date Index >>>     <<< Thread Index >>>

Re: jump to last read



On Mon, 05 Feb 2007 the mental interface of
David Champion told:

[...]
> > 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.

To be honest, but this sounds like carrying the church arround the
village;)

Why shouldn't it be possible to go back to the n*last read message?
Mutt knows the next message by the unread flag, so it should be easy
to hardcode a n*<last_read_message>, isn't it?

I am very interested in that feature ;)

Elimar

-- 
  We all know Linux is great... it does infinite loops in 5 seconds.
        -- Linus Torvalds