nathonius / obsidian-collapse-all

MIT License
92 stars 2 forks source link

Provide "visibility cycling" #24

Closed ngirard closed 2 years ago

ngirard commented 2 years ago

Heya,

one feature I've always appreciated in Org mode is the so-called visibility cycling. That is, by repeteadly hitting just one shortcut, the view switches between these 3 different states:

,-> FOLDED -> CHILDREN -> SUBTREE --.
'-----------------------------------'

There's also a distinction between "global cycling", by which you alter the visibility of the whole file, and "local cycling", by which you alter the visibility of the part of the file where the cursor is located.

Here's one gif I could find to illustrate how it feels like:

and in the Obsidian forum is has been discussed here and here.

It would be great if your plugin could provide such functionality !

Cheers, and thanks for your work !

nathonius commented 2 years ago

@ngirard I think this is probably out of scope of this plugin; this only deals with the folders in the file explorer and tag pane. It doesn't do anything to folded headings in the editor.