Riffkey
kungfusheep.com·5d·
🦀Rust programming language
Preview
Report Post

I’ve been enjoying building terminal apps lately. Which is a weird thing to say, because for years the input handling alone was enough to make me reconsider the whole endeavour. You want gg to go to the top. Simple enough. But then you want g to do something else too, so now you need timeouts. And count prefixes, because 5j should move down five lines. And escape sequences, because arrow keys exist and terminals are cursed. It adds up fast. Every app, the same dance.

So I wrote something, and I keep reaching for it.

github.com/kungfusheep/riffkey

riffkey is just a key input router written in Go. You give it vim-esque patterns like <C-w>j or <leader>f or gg, and it handles the fiddly bits - disambiguation, timeouts, esca…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help