emacs-tree-sitter / treesit-fold

Code folding using treesit.el
GNU General Public License v3.0
60 stars 9 forks source link

Command to fold everything under a level? analogous to `hs-hide-level` #15

Open nasseralkmim opened 1 month ago

nasseralkmim commented 1 month ago

Is there such command?

jcs090218 commented 1 month ago

Something like #14? 🤔

nasseralkmim commented 1 month ago

It is a similar idea, actually cycling would be even better. The hs-hide-level hides everything below the current level. If you are at a function level, you hide if-statements, for example. At the module level, it hides the functions.