Basically, if you have used spacemacs it uses the same concept for shortcuts.
What it does, after pressing the main/master shortcut, user defined, it grabs the keyboard and listens for all key presses. It then compares the sequences of keys pressed to the registered “shortcuts” and executes the corresponding shell command.
So you can register something like wa open-xdg https://archlinux.org where typing w then a executes the command open-xdg https://archlinux.org.
Registering ab command1 and abd command2 is possible. This will execute command1 then command2.
Pressing esc at any point, pressing a wrong key, or reaching the end of possible strings will make it stop listening and release keyboard.
It is not meant to entirely replace your system's key bindings, but gives you more room to add more non-conflicting shortcuts.
Still in its early stages with some improvements planned. This is my first package release, so any feedback and advice is appreciated.
2 comments
Basically, if you have used
spacemacsit uses the same concept for shortcuts.What it does, after pressing the main/master shortcut, user defined, it grabs the keyboard and listens for all key presses. It then compares the sequences of keys pressed to the registered “shortcuts” and executes the corresponding shell command.
So you can register something like
wa open-xdg https://archlinux.orgwhere typingwthenaexecutes the commandopen-xdg https://archlinux.org.Registering
ab command1andabd command2is possible. This will executecommand1thencommand2.Pressing
escat any point, pressing a wrong key, or reaching the end of possible strings will make it stop listening and release keyboard.It is not meant to entirely replace your system's key bindings, but gives you more room to add more non-conflicting shortcuts.
Still in its early stages with some improvements planned. This is my first package release, so any feedback and advice is appreciated.
This is really handy for those who need macros, cool!!