Fold/Unfold headings up to specific level hotkeys

I made a little recording to show the power of emacs’ org-mode, I believe this has everything needed to make Obsidian folding features perfect!
https://imgur.com/UNK6i6u

It was hard to show exactly how it works in a short video like this, but long-story short.

  • I use tab to fold and unfold, and shift + tab to cycle through opening and closing all headings.

  • This is somewhat possible with Obisdian, but it’s not possible to map just tab as a hotkey unfortunately.

  • Org-mode folding feels natural, fast and intuitive (specially with vim-keybindings)


I truly believe Obisidan can get to this level of advanced folding.

Org-mode is able to do it with org files, but also with .md (markdown) files without any limitations.

Advantages and additional features

start a file with all headings folded

org mode allows to determine in the metadata (top of the file)
this type of settings per note

#+STARTUP: overview
#+STARTUP: content
#+STARTUP: showall
#+STARTUP: showeverything

org mode docs initial visibility

this allows the user to chose if everything should be folded by default (I do that 90% of the times)

Moving around content

With org-mode is super easy to move around folded content, around the document.

This can all be done with vim-style shortcuts.

(Currently obsidian struggles to move around content without messing up what’s inside a sub-heading)

my contribution

I created a snippet called Org-sidian bullets

Org-sidian Bullets ◉ Instead Of # For Headers (Inspired by org-mode)

this is more for the style of bullets (to replace #)

but unfortunately all the folding functionality cannot be controlled by this snippet I made, and my skill level doesn’t allow me to attempt a plugin to add this functionality (not sure if it’s even possible)


This feature is the only thing I have to go out of Obsidian to use my notes. If folding evolves I think it would make Obsidian so much better.

Thanks!

14 Likes