Org-mode style header cycling / folding shortcuts

In Emacs Org-mode, there is a function for global and local folding / cycling of header visibility.

See here for more information: https://orgmode.org/manual/Global-and-local-cycling.html

Basically, I would propose to integrate two options for header visibility cycling / folding shortcuts

  1. (while cursor is on header) Pressing TAB
    Subtree cycling : Rotate current subtree among the states
    ,-> FOLDED -> CHILDREN -> SUBTREE --.
    β€˜-----------------------------------------’

  2. (anywhere) Pressing S-TAB
    Global cycling : Rotate the entire buffer among the states
    ,-> OVERVIEW -> CONTENTS -> SHOW ALL --.
    β€˜----------------------------------------------’

I found this feature to be extremely useful and intuitive. Would love to have such an option long-term in Obsidian.

P.S.: See this video starting from 2:25 for a demonstration: https://youtu.be/CV2IFpSW2sE?t=146

6 Likes

this would be amazing another way I’ve described it is like this:

This would be a killer feature. I honestly think that’s the best part of org-mode, having that in obsidian would be next level

7 Likes

Fold all headings and lists achieves some of this functionality. But, it folds everything and shows only H1 headers (equivalent to OVERVIEW in org mode). When unfolded (use Fold all headings and lists), one gets SHOW ALL. What would be nice is to have an intermediate level where H2, H3 etc can be shown along with H1. It would be great if one could invoke Fold headings and lists, enter a level (e.g., 2) and have everything collapse to H2.

2 Likes