Often I want an overview for some namespace, meaning I want to fold all functions inside the namespace, which would be the 2nd level. In thise case 'Toggle all folds' toggles only the namespace, which doesn't help.
namespace test { float g(float x) { return 0; } float f(float x) { for (int i=0; i<10; ++i) { if ( x == 0 ) { g(x); } } } }
Using Ctrl+Click-on-Fold-Box toggles alle the folds recursively, which is also not what I want, because I don't want to unfold all inner folds inside a function, e.g. the for-loop and the if-statement in f.
Using Ctrl+Fold-namespace then Unfold-namespace then shift+unfold-function-f would do what I want, but it's quite cumbersome. In Notepad++ I just could use Alt+[1-9] to fold a certain level and Shift+Alt+[1-9] to unfold a certain level. This feature would be nice to have in Scite.
This functionality does not appear to me to be needed commonly enough to receive high value key bindings. The Alt+Number key bindings select tabs in SciTE.
Code is often irregular with the top level sometimes containing namespace, class, and function blocks, so a function or method may be at level 1, 2, or 3. A language-specific "Show/hide function and method bodies" could be implemented in Lua and may be easier to use.