There is command to fold top-level nodes. It's helpful for C++ and much other languages. But XML and HTML has one top level node. Folding nodes one by one may be very boring and time consuming for large XMLs. It's good to have commands (at least one of them): 1. To fold all nodes. So when you unfold top level node it's child nodes would be still folded. 2. To fold current node and it's siblings. With and/or without child nodes. 3. To fold current node and same named nodes (i.e. same tag name in XML). This one may be harder to implement, so I don't expect it too much. Reproducible: Always
I have 2500 line a Class with many functions. I can fold all nodes on top level, but I cant open all nodes again; because not have a function on kate. I think, fold icon blue triangle is good, but folded icon must be different color: for example red or maroon. We can select a code/text area, after click fold all nodes, or unfold all nodes /Sorry my bad English.
asking for the same feature as the OP. in XML the current feature to fold exactly one node (either current or top) is rather useless without the feature to fold _all_ nodes. with a lengthy document you cannot fold each and every single node to mae fold/unfold current node useful. and with teh same lengthy XML document fold/unfodl top node is basically meaningless, I can't imagine a scenario where one could profitably employ that feature.
Which version of the KDE KTextEditor Framework?
Still a missing feature in 5.32 (and afaik current git).
(In reply to Dominik Haumann from comment #3) > Which version of the KDE KTextEditor Framework? About -> Version tab: Version: 16.08.3 Using: KDE Frameworks 5.28.0 Qt 5.7.1 (built against 5.7.1) The xcb windowing system IMO, for XML style files, the only sensible use case for "collapse top level node" is to collapse all child nodes (however deep), and leave them collapesed when expanding top level node again. just having the two lines with the xml header and the top level element seems meaningless otherwise.
Right now I'm using Kate from KDE Applications 16.12.3, KDE Frameworks 5.31.0, Qt 5.7.1.
*** Bug 386920 has been marked as a duplicate of this bug. ***
This seems to be a popular request and something which is relatively easy to implement (iiuc). Marking as junior job (something newcomers could tackle).
There are more than three years since the "fold all" command was requested. I'm expecting the solution on each new release, but it seems that thinks are going very hard with this. Please make a small effort and implement this in KDevelop. Otherwise KDevelop is a wonderful tool. Many thanks for your work
*** Bug 402146 has been marked as a duplicate of this bug. ***
Hi! A little hard for me to follow here. Will... https://phabricator.kde.org/D20606 ...fix this too, so we can close it?
(In reply to Lothar from comment #11) > Hi! A little hard for me to follow here. Will... > https://phabricator.kde.org/D20606 > ...fix this too, so we can close it? Maybe but: 1) this hasn't landed into master yet, is it? 2) imho, it's not very obvious to use LMR clicks for this task, and no hotkey support. it looks like some hidden knowledge. Anyway thanks for your work! It'll good to have this feature.
1) https://phabricator.kde.org/R39:5c83e29561e3425fb1f917a2c8de31eb48a5cd8d 2) No default short-cut, but action is available
Oh, I've missed there is new action. Then everything should be fine. I'm closing it and thanks again!