karelzak / mutt-kz

mutt-kz is DEPRECATED in favor of neomutt project.
https://neomutt.org
Other
296 stars 51 forks source link

change-vfolder and the order of vfolders #25

Closed redneb closed 11 years ago

redneb commented 12 years ago

When I do and I press ? (or tab) then a list of all vfolders is given. But the list is sorted by the vfolder URI. It would make more sense to sort them by vfolder label or better yet, present them in the order specified in the virtual-mailboxes command.

suvayu commented 12 years ago

+1 This would be a great enhancement.

tsto commented 11 years ago

+1 yes please. In fact, it seems that virtual mailbox browser sorting doesn't work at all - press 'o', change to si'z'e, 'a'lpha, 'd'ate, etc., no change in the sort order at all.

tsto commented 11 years ago

I've put up pull request for 6e8fff0, which allows sorting by mail folder description, (all) message count, and new message count.

karelzak commented 11 years ago

Fixed by tsto's patch.

redneb commented 11 years ago

Hi, thanks for the patch. Is there a way to set the order permanently? i.e. not having to press o in the virtual mailbox browser. Also, I think it would be really useful to be able to sort the vfolders based on the order which was used to specify them with the virtual-mailboxes command. I have some macros that rely on the exact position of specific vfolders and with the current implementation the position changes every time I modify the virtual-mailboxes command.

karelzak commented 11 years ago

On Thu, May 23, 2013 at 10:12:28AM -0700, redneb wrote:

Hi, thanks for the patch. Is there a way to set the order permanently? i.e. not having to press o in the virtual mailbox browser. Also, I think it would be really useful to be able to sort the vfolders based on the order which was used to specify them with the virtual-mailboxes command. I have some macros that rely on the

This is default. I have all time the folders sorted according to virtual-mailboxes definition. I mean in the sidebar as well as in change-vfolder browser (when you pres after change-vfolder).

exact position of specific vfolders and with the current implementation the position changes every time I modify the virtual-mailboxes command.

Not sure if I understand the problem.

Karel

Karel Zak kzak@redhat.com http://karelzak.blogspot.com

redneb commented 11 years ago

Well, then I must be doing something wrong. If I put

virtual-mailboxes \
  "foo" "notmuch://?query=foo" \
  "bar" "notmuch://?query=bar"

in my muttrc then "bar" is shown first in the change-vfolder browser.

tsto commented 11 years ago

I think you want this: set sort_browser=

e.g. =reverse-new

redneb commented 11 years ago

Ok thanks, that's what I was looking for. "sort_browser=unsorted" does what I want.

On Thu, May 23, 2013 at 04:26:20PM -0700, Tim Stoakes wrote:

I think you want this: set sort_browser=

e.g. =reverse-new


Reply to this email directly or view it on GitHub: https://github.com/karelzak/mutt-kz/issues/25#issuecomment-18378168