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

Re: jump to last read



* Andreas Herceg on Tuesday, February 06, 2007 at 07:06:05 +0100:
> On Mon, Feb 05, 2007 at 10:57:54PM +0100, Christian Ebert wrote:
>> * David Champion on Monday, February 05, 2007 at 13:34:26 -0600:
>>> 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 "'".

Yup, AFAICS this does half of what I want, eg.:

macro pager <Tab> "\
<exit><mark-message>last<enter><next-unread><display-message>\
" "jump to next unread and remember last"

macro pager ,l "\
<exit><enter-command>push \\'last<enter><display-message>\
" "jump back to last"

Even though it's a bit unflexible as I can't change
$mark_macro_prefix without changing the macro too, because I
can't do something like "push \$mark_macro_prefix\ l".

But how to go back /again/ to the message that I came from:

>> OTOH, it sometimes, errh, often happens (and I'm not even talking
>> about a setup with pager_stop=no) that in my confused state of
>> mind I just jump to the next message, and, suddenly remember
>> something of the last message that could be important. In my
>> newsreader this is simple: I just type "l" and am in the last
>> read message, and when I want to continue reading the new
>> message, I just type "l" again. That's it.
> 
> Then to suffice your requirement you could simply bind the
> "n" key to a macro that does the above /and/ executes
> <search-next>.

Hm, I'm too dense, I tried, but everything leaves me on the
message that was marked -- marking the message doesn't perform
the actual search, and once I've done the hotkey search I'm back
on the marked message without having marked the message where I
came from.

> Just an idea, did not try it myself. 

Perhaps you should, and instruct me ;)

c
-- 
_B A U S T E L L E N_ lesen! --->> <http://www.blacktrash.org/baustellen.html>