Support sequence style hotkeys

Use case or problem

I’m used to being able to use sequence-style hotkeys (first popularized by Gmail) in my other editors like VSCode. For example, I use vim-style keybindings and I have new vertical split in VSCode mapped to ctrl+w v. Would love to be able to use shortcuts like that in Obsidian

Proposed solution

Instead of automatically closing the keymap capture after the last key is released, allow arbitrary input until Enter is pressed (see VSCode’s implementation). Sequence hotkeys are supported by most keymap libraries I’ve seen (like Mousetrap)

Current workaround (optional)

https://github.com/tgrosinger/leader-hotkeys-obsidian allow sequence style keys for a single leader key and he is thinking about adding a generic solution for this: https://github.com/tgrosinger/leader-hotkeys-obsidian/issues/10

5 Likes