obsidian-mind-map icon indicating copy to clipboard operation
obsidian-mind-map copied to clipboard

Implement markmap folding commands

Open jawspeak opened this issue 3 years ago • 1 comments

Implements fold and unfold. See screenshots for keyboard shortcut examples (which is how I have been using this locally for rapid navigation).

I have found my use cases to be:

  1. writing / editing a markdown and seeing it realtime update in the mind map (it updates about every second based on the mindmap-view.ts's registerActiveLeafUpdate())
  2. viewing a mindmap and jumping to a specific fold level by keyboard shortcut
  3. exploring in an ad-hoc way using my mouse and clicking nodes.

As a design decision / consideration, I did not implement expand / fold next level, because when I mapped to the keyboard shortcuts in the screenshot given, it was very nice for me to jump to a specific fold level, or unfold all. That provided me a muscle memory indication (specific key shortcuts) of exactly which level I was reading, which would not be possible if I was implementing an "increase fold" or "decrease fold" shortcut.

jawspeak avatar Nov 24 '22 07:11 jawspeak

Ping @lynchjames please (:

jawspeak avatar Jul 18 '23 20:07 jawspeak