2mol / pboy

a small .pdf management tool with a command-line UI
BSD 3-Clause "New" or "Revised" License
737 stars 24 forks source link

Support vim's j and k keybindings #47

Open ad-si opened 4 years ago

ad-si commented 4 years ago

I'm actually quite surprised if a TUI doesn't support j for down and k for up 😅

m040601 commented 4 years ago

+1 one more vote for this.

2mol commented 4 years ago

yeah, cool idea! I'll see to it if I have some free time, I'm pretty sure it's just adding a line here: https://github.com/2mol/pboy/blob/a79b07db6228eb3ce234d59f5c2c8b10c5f28ff3/src/UI.hs#L257

Brick probably has some easy way to express the up/down action on a list. Feel free to PR if you happen to be faster than me!

Cheers