Multi-key or chorded key hotkeys

Suggest the ability to have tmux or VIM style “chorded” hotkeys - for example I use “ctrl-a |” as the split in tmux. Hit ctrl-a as the “leader” and then the | pipe.

In VIM I use as a leader.

Think it would be nice to assign some other leader to Obsidian and have another set of complimentary key shortcuts.

14 Likes

I use this in VsCode all the time - its great because you can pick a “leader” for a plugin and the second key to to specific action.

⌘-d ⌘-t → Daily note plugin, jump to today
⌘-d ⌘-n → Daily note plugin, jump to next
etc etc

1 Like

There’s a plugin which lets you set a leader hotkey.

1 Like

Very nice, thank you!

Leader plugin

1 Like

is there a way that we can configure the leader plugin or obsidian to only use the leader key when in visual mode ?

1 Like

Hello. Normally I’m using code editors like Sublime Text / Visual Studio Code, so I’m trying to do unification for hotkeys. This editors allow to use hotkey combos. Like
Ctrl + K + B, formally [Ctrl + K, Ctrl + B]
really: ctrl down, k down up, b down up, ctrl up

So … this feature will increase usability of hotkeys.

Here is an example from VSCode.

2 Likes

That is a single key, while this feature is about any chord combination.
cmd+d → daily note namespace
cmd+w → Window management namespace
cmd+t → templates namespace

Why not add this to obsidian core, with the plugin you do not see hotkey conflicts. and the UI of the plugin is not really user friendly, as you have to select the action of the hotkey in an endless dropdown menu where you can’t search.

Hello,
Did you find a solution? If not, does anyone know of a plugin or solution for this? I’m also interested because we quickly reach the limit of keyboard shortcuts otherwise, and I’m used to VSCode too.

Some options you could try:

https://github.com/trenta3/obsidian-hotkeys-chords

https://github.com/moolmanruan/obsidian-sequence-hotkeys

https://github.com/anselmwang/obsidian-key-sequence-shortcut

3 Likes

Thank you. I searched with Keyboard Shortcut and not with HotKeys. I am currently testing Chorded hotkeys, but sequence hotkeys Seems to do exactly what I’m looking for, so I might use that one.

Use case or problem

Allow using keyboard chords (two separate keypress actions) for shortcust. It’s sequences of keypress actions (e.g., Cmd+E followed by R, Cmd+E then Cmd+J) for shortcuts that is shown a great workflow improvements for many people.

Proposed solution

VSCode is a great example, a shortcut can be a single action or two actions.

Current workaround (optional)

No workaround.

2 Likes

I created my own plugin for this after deciding the options mentioned above didn’t quite do everything I wanted.

Use case or problem

Obsidian currently supports single-chord hotkeys (e.g., cmd+i, cmd+shift+e) but does not support multi-key sequences.

Proposed solution

Allow defining hotkey sequences where multiple chords are typed in succession, similar to Vim or Emacs key bindings.

Example use cases:

  • cmd+i e → Insert embedding

  • cmd+i l → Insert link

  • cmd+t d → Insert today’s date

  • cmd+t t → Insert current time

  • cmd+n t x → Create new note from template X (expanding the command palette with Templater)

Benefits:

  • Dramatically expands the hotkey namespace without complex modifier combinations

  • Allows grouping related commands under a common prefix

  • More ergonomic than reaching for double- or triple-modifier combinations