koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.05k stars 204 forks source link

How to map simple key chords like emacs? #354

Open ChillarAnand opened 3 months ago

ChillarAnand commented 3 months ago

In emacs editor, we can type "f", "j" individually and they will appear in the editor.

However if we create a key chord mapping for "fj" and press them at once, it will invoke a corresponding action.

(key-chord-define-global "fj" 'undo)

How to achieve a similar simple key chord with skhd?

typkrft commented 3 weeks ago

There's no ability to press multiple non-modifier keys as far as I'm aware. You could play around with modes. You could create a keybinding or chord, option - f for example to enter a mode, then press a single key, j; to run some command and then optionally exit the mode.

This would be closer to a leader key workflow. And the key presses would not be simultaneously.