darkhz / bluetuith

A TUI bluetooth manager for Linux.
MIT License
957 stars 23 forks source link

FEATURE REQUEST: Add vimkeys for navigating up/down #62

Open LordZeuss opened 6 months ago

LordZeuss commented 6 months ago

Hello! I was wondering if it would be possible to add J & K as keys to move up and down in the TUI besides the arrow keys, since those keys are currently not in use. I found the keybindings file, and might make a PR myself, but if the maintainer is able to implement this, that would be easier. Just a thought!

txgk commented 5 months ago

I'd like to prop this up!

I was able to achieve vim-like scrolling with this config:

{
  adapter: ""
  adapter-states: ""
  connect-bdaddr: ""
  gsm-apn: ""
  gsm-number: ""
  keybindings: {
    NavigateDown: j
    NavigateUp: k
  }
  receive-dir: ""
  theme: {}
}

But it would be very cool to see it enabled by default, because these keys don't even carry any bindings at the moment and a substantial number of terminal users are really used to vim-like navigation.

@darkhz Thanks for this cool project, by the way. Really like it! All these stupid bluemans and bluedevils are so inconvenient, slow and buggy compared to your program...

darkhz commented 5 months ago

I will consider adding alternate vim like keybindings, of course. Meanwhile, thanks for posting the config.