Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add vi(1) key binding #16

Open
rjc opened this issue Apr 2, 2019 · 3 comments
Open

Please add vi(1) key binding #16

rjc opened this issue Apr 2, 2019 · 3 comments

Comments

@rjc
Copy link

rjc commented Apr 2, 2019

Most console/curses programs support vi(1) key bindings - hjkl - out of the box, so having those in addition (instead of?) to the arrow keys, would be great! :^)

Yes, this would mean remapping stop (currently k) to some other key - p (for pause) seems like the best candidate.

How about also using h and l for collapse and expand, i.e. open/close folders, respectively, instead of/additionally to Enter?

For those of us who keep our hands on the home row, this would be invaluable :^)

Anyway, just a handful of ideas.

@elewarr
Copy link

elewarr commented Apr 5, 2019

Please try this configuration:

$ cat .config/curseradio/curseradio.cfg  
[opml]
root = http://opml.radiotime.com/

[playback]
command = /usr/local/bin/mpv

[interface]
keymap = vi

[keymap.vi]
up = k
down = j
start = KEY_HOME
end = KEY_END
pageup = KEY_PPAGE
pagedown = KEY_NPAGE
enter = KEY_ENTER
stop = p
exit = q
favourite = f

@elewarr
Copy link

elewarr commented Apr 5, 2019

And for parent shortcut:
#17

@rjc
Copy link
Author

rjc commented Apr 6, 2019

First two sections are obviously redundant - especially if, like me, you'd like to use the same config on OpenBSD, Linux, and macOS(?). You an I both know that - this is meant for those who copy stuff from the web verbatim ;^)

With a minor modification - enter = l (home row, remember?) - and your PR #17, this is pretty much what I had in mind. With p to toggle play/pause (well, obviously there's no pause in live streaming but you know what I mean), and having it all by default, this would be exactly what I need! :^P

Thanks! :^D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants