Bug 2812 - Command to Collapse folder tree
Summary: Command to Collapse folder tree
Status: NEW
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: UI/Folder List (show other bugs)
Version: 3.9.1
Hardware: PC All
: P3 enhancement
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2012-11-20 21:35 CET by Abhay S. Kushwaha
Modified: 2015-03-12 14:29 CET (History)
1 user (show)

See Also:


Attachments
Proposed patch for adding expansion and collapsing for IMAP folders (5.45 KB, patch)
2015-03-12 10:51 CET, Magnus Engström
no flags Details | Diff
Proposed patch for adding expansion and collapsing for IMAP folders (5.44 KB, patch)
2015-03-12 14:29 CET, Magnus Engström
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Abhay S. Kushwaha 2012-11-20 21:35:41 CET
I have a *lot* of folders. Seriously. As I use Claws-Mail during the normal course of a day, the tree often expands as I move around between folders. Currently there is no way to collapse the folder tree (true collapse, where all sub-nodes are also collapsed). A command added to the folder context menu to collapse the folders below the selected folder will be very useful.
Comment 1 Abhay S. Kushwaha 2012-11-20 21:38:07 CET
When I say "Currently there is no way to collapse the folder tree (true collapse, where all sub-nodes are also collapsed)" I really mean there's no easy way to do it other than scrolling up the folder tree pressing "-" key on all nodes, or doing it click-by-click on each node.

"Node" is a folder with sub-folder so that it displays the arrow (or box) which points right for collapsed node, and downward when showing sub-folders.
Comment 2 Magnus Engström 2015-03-12 10:51:38 CET
Created attachment 1495 [details]
Proposed patch for adding expansion and collapsing for IMAP folders

I too wanted this functionality, and the search for it only led me here, so I made an attempt at implementing it myself.

I have attached the patch.

I added "Collapse subfolders" and "Expand subfolders" at the top of the context menu on the assumption (at least for me) that these are very commonly used items, but maybe we are few that thinks so and the placement should be changed.

Mnemonics set to E and X for Collapse and Expand respectively, as they were available, at least for the context menus I tried. A bit counter intuitive with E not for Expand, but both E and X are to the left on the keyboard on both QWERTY and Dvorak which should make them nicer to use.

Given then tree
A/
..B/
....C/
D/
..E/

When C is opened (showing the contents of the folder), and the context menu is invoked on A, collapsing will open A.

When E is opened, collapsing A will keep E as opened/selected.

Expanding never switches opened folder.
Comment 3 Magnus Engström 2015-03-12 14:29:21 CET
Created attachment 1496 [details]
Proposed patch for adding expansion and collapsing for IMAP folders

Saw that -p0 was preferred.