Bug 335591

Summary: There is no way to reverse the effect of "Fold Toplevel Nodes"
Product: [Applications] kate Reporter: Cristian Tibirna <tibirna>
Component: foldingAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 3.13.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Cristian Tibirna 2014-05-30 13:30:11 UTC
In Kate->View->Code Folding, there is "Fold Toplevel Nodes", the only folding command with a default shortcut. This shortcut is chosen to be Ctrl+Shift+-, which is very easy to hit by mistake, while e.g. tuning the font size with Ctrl+- and Ctrl++ shortcuts.

Unfortunately, there is no way to undo/reverse the effect of folding all toplevel nodes, apart from going and unfolding manually each and every toplevel node. In a typical Python code file, for example, this could mean tens of tedious mouse positionings and clicks.

The documentation (for which btw. kate 3.13 is still that of that of kate 3.11) states "Click on the right pointing triangle to expand all toplevel regions" which is at least confusiong (*which* right pointing triangle?) if not sarcastic.

Fortunately, quitting kate, restarting it and reopening the same document brings back the unfolded file, "thanks" to bug 316184.

Reproducible: Always

Steps to Reproduce:
1. Open a document with many toplevel nodes (e.g. a Python module file)
2. Hit "Ctrl+Shift+-" (default shortcut) or click View->Code Folding->Fold Toplevel Nodes
3. Try to unfold everything.
Actual Results:  
There is no way to unfold all toplevel nodes with one single command. One has to go and unfold each node, one at a time.

Expected Results:  
There should exist a "Unfold Toplevel Nodes" action.
Comment 1 Christoph Feck 2014-05-30 17:48:18 UTC
Reported as bug 335590.