OpenTUI Keymap is a host agnostic key/cmd engine for DOM like apps.
@kmdrfx7.6K followers
91,661 views
35 Comments
Comments from the original post on X (Twitter)

@kmdrfx
Here is the HTML adapter demo, which is also in the OpenTUI repository along with demos for core/react/solid. Full docs are on the opentui website.
27 likes

@bedesqui
what the fuck why are you guys casually building some of the coolest primitives??? like, stop making me want to build for the terminal wtfff
12 likes

@kmdrfx
Come to the terminal side harhar!
10 likes

@tyrellshawn_ai
Attention to detail on another level! This is sick!
2 likes

@naumenko_roman
Art!
2 likes

@bentlegen
this ever get released? would love to use it
2 likes

@kmdrfx
yep it's here and maintained, used by opencode as well
1 like

@anthonysheww
wen rust bindings for opentui Hint: The right answer is “wen u make them nerd”
2 likes

@kmdrfx
We'll just rewrite the native core in rust anyway.
11 likes

@anthonysheww
Like actually orrrrrr…? I’m trying to rewrite the Turborepo TUI, what’s a young man to do?
1 like

@kmdrfx
Eventually. Opentui has a proper CLI mode now, courtesy of @simonklee. Many other improvements on the way over the coming weeks.
5 likes

@tanayvk
this looks amazing. can we implement app-level modes with this too? like insert/normal? or do we have keep that state separately and manually update the keymapper state? im on my phone, will take a look at the source in a bit.
1 like

@shivaraj_does
Will this work on opentui/core ?
1 like

@kmdrfx
The demo in the video is core only. Works with opentui core, solid, and react.
2 likes

@shivaraj_does
Lfg I was looking for exactly this tbh. Been building this from weeks and was running outta keybinds... seems like this is a perfect fit!!

@alanscodelog
Not exactly the same but I've been working on this issue for a while. Interesting to see a different approach though.
1 like

@kmdrfx
Cool stuff, I like that it can also bind mouse events.
1 like

@berenddeboer
We'll know if it is really extensible if I can make Emacs keystrokes work 🙂
1 like

@kmdrfx
I have experimented with that, there is a sample addon to for emacs chords. It's far from complete, but should be possible to do everything needed to make it complete as addon.
4 likes

@GroundControl
As someone who's also coming from Vim and has implemented keyboard shortcuts in my apps, this is lovely.
1 like









