On Tue, 14 Nov 2000, Mikko Hänninen wrote:
> Juergen Salk <[EMAIL PROTECTED]> wrote on Tue, 14 Nov 2000:
> > To make a long story short: How can I make the cursor highlight
> > the last visited mailbox in the folder view rather than the
> > first one in the list?
>
> There's no simple way (unfortunately).
>
> I think someone's created a set of .muttrc macros possibly combined with
> an external shell script or two that achieves this effect by storing the
> number of "down arrow" keystrokes in the folder browser, and then
I think something like a list of macros like the following in
.muttrc works.
folder-hook . 'macro index h <change-folder>?<tab><jump><enter>0<enter>'
folder-hook '!' 'macro index h <change-folder>?<tab><jump><enter>1<enter>'
folder-hook =mutt 'macro index h <change-folder>?<tab><jump><enter>2<enter>'
folder-hook =vim 'macro index h <change-folder>?<tab><jump><enter>3<enter>'
... etc etc
where 'h' is the key you use to return to the browser from the
index, and the order of folders is the order you have in the
mailboxes command. The folder hooks essentially write a new macro
for the key every time you enter that particular folder. The
problem with this solution is that every time you add a new
mailbox to your .muttrc, you need to rewrite the hooks. I wrote
some vim mappings to do this more easily, but they are not
robust, so I won't copy them here.
--
Greg Matheson Language learning/teaching
Chinmin College, is like hitting head against brick wall.
Taiwan Feels good when over