timhor/obsidian-editor-shortcuts

Holding keybinding for 'Go to next/previous heading' doesn't work

ryanwwest opened this issue · 1 comments

I set my keybindings for 'Go to next/previous heading' to > and <, respectively, and also have vim mode enabled. I was hoping to hold down > to quickly scroll through my notes by heading, but after skipping to one heading when folded, it instead starts rapidly indenting the newly-jumped-to heading (which is a result of vim's >> keybinding). This appears to mean that this plugin doesn't handle repeat keys on at least these two commands (and maybe others).

Separately, is there a way to only jump to the next heading of the same level (e.g., if you're within the text of a h2 heading, and there is a h3 heading also within that h2 block but your cursor is not in the h3 block, jump past the h3 block to the next h2 heading)?

timhor commented

Thanks for the suggestions! There's currently no logic to handle either of these cases, but I'll take them into consideration for the next release: