nick42d / youtui

TUI and API for YouTube Music written in Rust
MIT License
40 stars 4 forks source link

Vim key bindings? #10

Open sarjann opened 10 months ago

sarjann commented 10 months ago

Would it be possible to implement some basic vim bindings? hjkl and / to access search

nick42d commented 10 months ago

Yes, it's possible, although I need to make sure this does not stop me in future from adding configurable keybinds. I could see people wanting to take this a bit further and wanting to implement more vim/helix like keybinds, are there any others you'd find useful?

sarjann commented 9 months ago

Sorry for the late response. I'm more familiar with vim so can't necessarily comment much on helix.

There are some key bindings that might be useful but would probably add a lot of complexitiy for a bit of gain. E.g. , like 2j moving down in a list twice. Maybe shift g of gg to move to move to the very top or bottom of a list or Ctrl-D / Ctrl-U for traversing quickly up and down.

I think hjkl and / is the easiest win and hopefully easier to implement as I don't think it has any collisions with other keys and custom behaviour like jump by count amount would require implementing some custom logic.