Skip to content

2 comments

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.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.