This is a very simple implementation of Vim's and QMK's "Leader Key" feature (see https://thomasbaart.nl/2018/12/20/qmk-basics-leader-key/).
The "Leader Hotkey", once triggered, allows us to type a sequence of keys instead of pressing multiple keys at once to get a shortcut.
Example: we could type {Pause}
, then {W}
, and then {R}
to call the WinRestore
function.
This Gist will cover:
simple-leader-hotkey.ahk
: The most simple way to achieve this (Proof of Concept).advanced-leader-hotkey.ahk
An "advanced" pattern to help organize commands into "categories" (ex: "W" for Window Management, "M" for Mail addresses...) and display a helping tooltip.
We will use the {Pause}
key as an example of Leader Hotkey (but it could be anything that Autohotkey supports).