Using the mouse to click twice on the “switch view” button to switch between the “all” and “favorite” view was getting a bit annoying, so it was time to add a shortcut to http://kb.mozillazine.org/Keyconfig_extension:_Thunderbird .
Plenty of solutions for different plugins were suggested, mostly using loadFolderView, but that one does not work (anymore?).
So for my future reference mostly:
gFolderTreeView.mode = gFolderTreeView.mode == "all" ? "favorite" : "all"
toggles between “all” and “favorite” mail, don’t forget to check the “global” option when adding this to keyconfig. This is of course easy to adapt to switch between “Recent Folders”, “Smart Folders” and “Unread Folders”
Leave a reply