I recently migrated from Emacs Org-mode to Obsidian for all my note-taking needs. Overall it’s a much better experience, but one thing I miss is the hotkey system from the Spacemacs Emacs distribution, which makes (nearly) all functions easy to access without removing your hands from the keyboard. Spacekeys is an an attempt to replicate some of that functionality in Obsidian:
- Commands are assigned to sequences of simple key presses, entered after activating a “leader” hotkey (e.g.,
Ctrl
+M
). - By default the key sequences are based off of simple mnemonics, for example
il
for insert link. Commands with similar functionality are grouped under the same prefix key(s). - Activating the leader opens a pop-up menu displaying valid choices for the next key in the sequence, and the corresponding command / group labels (similar to the “which-key” Emacs package).
- The built-in key map already contains a large fraction of Obsidian commands, and can be customized further.
There are several other plugins which provide similar functionality, but none of them quite fulfilled my needs. This one is most similar to Key Sequence Shortcut, the main differences being that it’s easier to customize the key map (IMO) and commands with the same prefix are shown as groups in the pop-up menu.
This is my first plugin and I’d be interested to get people’s feedback or suggestions.