obsidian-editor-shortcuts
obsidian-editor-shortcuts copied to clipboard
[Feature Request] Keyboard shortcuts to navigate foldables
I would like to share this feature request to add keyboard shortcuts that make it easier to navigate between foldables. Currently this is a pain, because the Obsdian editor by default does not properly handle folded content when using standard keyboard navigation.
I would like commands and hotkeys to quickly navigate between the different “foldable structures” in a file. When I say foldable structures, I really mean headers and lists (unsure if any other structures can be folded), with the down arrow, where clicking the down arrow results in the content being folded.
I propose that the following 3 VSCode commands to be implement in Obsidian:
- “command”: “editor.gotoNextFold” – navigates the cursor to the next foldable structure in the current hierarchy
- “command”: “editor.gotoPreviousFold” – navigates the cursor to the previous foldable structure in the current hierarchy
- “command”: “editor.gotoParentFold” – navigates the cursor to the parent foldable from where the cursor is at
I would be happy to help with this implementation (I've helped with other plugins in the past). But I'm not too familiar with how this plugin works or how Obsidian manages the content tree and keyboard shortcuts, but maybe if someone provides guidance on how to do it, I can take a shot.