fathyb / carbonyl

Chromium running inside your terminal
BSD 3-Clause "New" or "Revised" License
14.45k stars 282 forks source link

Add Keybindings support #151

Open DillonDepeel opened 1 year ago

DillonDepeel commented 1 year ago

Is there a way to use keybindings to interact with carbonyl instead of using mouse? (like on browsh)

bitcoinmeetups commented 11 months ago

I second this. Keybindings and shortcut support would be useful. Think of what links has got for example. As far as I know there is not even a shortcut to go the address bar in carbonyl. Best would be configurable shortcuts.

andrewp907 commented 10 months ago

Ditto for me. The real draw of carbonyl is not needing to fire up a graphical environment just to use necessary services whose designers assumed that everyone has Google Chrome installed. I do not have a mouse and I don't know whether anyone else has touchscreen support without logging into a desktop environment, but I certainly don't.

I would use browsh, but they seem to have the same problem: scrolling up and down is the only interaction available from the keyboard.

Marat-Gumerov commented 10 months ago

I hope there will be hotkeys like in Vimium extension

arisolt commented 6 months ago

+1 this feature is absolutely a must-have

izelnakri commented 5 months ago

Hi @fathyb I think there should be 2 solutions for this:

Either a nix-like configuration file where keys represent some string actions(Toggle address bar)/keybindings(). Cornlang is a great minimal alternative for this written in rust: https://cornlang.dev/

Or you can utilize ron and expose the Struct/Trait methods directly: https://github.com/extrawurst/gitui/blob/master/vim_style_key_config.ron

I'd love to have this feature as well. This could be super useful for using carbonyl as my TUI rendering engine. Esentially I can build dev tools like AI chat interfaces that could be written once as a web application, then used in the terminal with carbonyl under the hood or a localhost website.

the-homeless-god commented 1 month ago

+1