ayn2op / discordo

A lightweight, secure, and feature-rich Discord terminal client.
MIT License
2.17k stars 69 forks source link

Feature Request: Vi-alike Interface #282

Closed eeriemyxi closed 7 months ago

eeriemyxi commented 1 year ago

What the title really means is to basically, instead of relying on another vocabulary of combinations of several hotkeys (which are mostly not at all cozy to press; for example, for the CTRL key, you'd need to put some effort to get back to a state when you could type again), maybe just introduce a vi-alike interface.

Right now pressing ESC clears the input, however the same thing, on my machine is also achieved by pressing CTRL + U; so that's a duplicated hotkey. What we can do instead is that, when we press ESC, it'd put a hint in the input field that we are currently in "Normal Mode" and then make use of all the keys which are easily accessible to control the UI elements, and when we type : in the normal, we will be greeted with a command line (we can just use the input field for this) where we can type ":insert" to go back to "Insert Mode".

The benefits of this implementation:

r3k2 commented 1 year ago

Yes please, the reason I use all my software in CLI/TUI is to avoid the mouse, speed and I can use my new gaming pc the same I use my old laptops, my window manager is Wayland/sway. Sucks to have to go grab the mouse for 1 app, and yes, I use Nyxt also a browser with native Emacs/vim ;) I mention this because someone already told me some time a go, "what about for browser, you have to use the mouse" :) cheers

BouleJaune commented 1 year ago

I agree Any TUI software should at least offer the possibility to use vi-like bindings Someone wanting a tui version of discord has surely a high probability of using vim/nvim anyway ...

ZmoleCristian commented 11 months ago

This would be very much appreciated !