David DeSimone <[EMAIL PROTECTED]> wrote on Tue, 05 Oct 1999:
> But like you, I discovered that 'set sort_browser=unsorted' gives the
> desired behavior.  Except, of course, that when I'm browsing for actual
> files, it's not the setting I'll want..  I guess a macro could take care
> of it, though.

It can, but it's not the perfect solution -- it won't work in all cases,
and it's impossible to create one that will (unless you want start
re-binding tab in the file browser...).

In any case, since I use i from the index to go to the mail folders
list, this works for me in most circumstances:

macro index i ":set sort_browser=unsorted\nc?\t:set sort_browser=alpha\n" \
  "show (change to) incoming folders"

That way I see the folders in my own specified order, but every time
I go to the file browser I see alphabetical sorting.  It doesn't work
for two cases though:

1) when starting mutt with -y
For this, sort_browser needs to be initially unsorted -- I can set that
in the .muttrc and probably will, but then in some cases the file
browser is unsorted too.

2) when switching between file browser and the folder browser with tab

I think the best solution would be to have a separate $sort_folders
variable, which would be independent of $sort_browser.  That way it
could also have the value "user" instead of "unsorted" and be
semantically correct. :-)  Also worth noting is that you can't specify
"unsorted" (or "don't sort" actually) with the o key in the folder
browser and have it act like the unsorted value for $sort_folders,
another indication that the folders sort should be separate from file
sorting.


Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Fire, Mr. Worf!  [Worf picks up extinguisher]

Reply via email to