[quote=ākuroirā]I suggest that we use function keys for these kind of actions since theyāre going to be intensively used:
On TextMate you use F1 to Open and to Close Folds. You can use Super + Alt + [1ā¦0] to close different levels of indentation. 0 being āFold allā, and 1 being āfold first levelā.
Just leaving this out there since itās something that works.
Edit: I see that super+alt+[1ā¦X] are used to handle the splitting windows, which is ok. However F1 is a good folding option.[/quote]
I used to love Notepad++'s code folding whereby you could (like TextMate) fold to given levels of a source file, but its shortcuts were alt+1, alt+2, alt+3 and I think shift+alt+1, etc. for unfold. (Which I know in ST2 are currently select tab and select layout respectively.) All Iād say is try to avoid the F keys if possible, because on some keyboards (e.g., my MacBook Pro) they have dual functions, and Iād hate to be pressing Fn every time I want to do an operation in ST2 I use with relative regularity.
Also, as the code folding idea is taken forward (as Iām sure it will be) itās be great to have gutter fold markers like most IDEs do. Would be nice to āvisuallyā fold rather than have to make a selection.
Finally, am I doing something wrong for folding? The only folding I can get to work is tag attribute folding with ctrl+k, ctrl+t. The ctrl+shift+ and ctrl_shift_] donāt appear to work for me, but maybe Iām using it incorrectly. Neither placing the caret next to a bracket nor selecting text invokes the function.