hangups icon indicating copy to clipboard operation
hangups copied to clipboard

Support for vim-style movement keys

Open baberthal opened this issue 9 years ago • 13 comments

Not an issue as much as it is a feature request, but it would be nice to be able to set an option for using h-j-k-l as arrow keys (like in vim). If I have time (and there is interest) i may implement this myself and issue a PR.

Other than that, I love hangups! Keep being awesome...

baberthal avatar Apr 16 '15 23:04 baberthal

:+1:

rosshadden avatar Apr 17 '15 20:04 rosshadden

+1

utyf avatar May 11 '15 12:05 utyf

+1

merqurio avatar May 14 '15 09:05 merqurio

+1

tonyfischetti avatar May 14 '15 21:05 tonyfischetti

+1

baskervald avatar Jun 07 '15 02:06 baskervald

+1

geezuh avatar Aug 28 '15 03:08 geezuh

+1

neilvyas avatar Sep 11 '15 03:09 neilvyas

I might try and get vi-like movements working tonight. If not, tomorrow.

baskervald avatar Sep 13 '15 01:09 baskervald

The problem I'm seeing is that it's using urwid's listbox, which defines it's own movement keys. I'm looking into how to just convert j and k to down and up, but I'm not finding any particularly easy ways

baskervald avatar Sep 13 '15 02:09 baskervald

I love you guys On Sep 12, 2015 10:12 PM, "Ashen" [email protected] wrote:

The problem I'm seeing is that it's using urwid's listbox, which defines it's own movement keys. I'm looking into how to just convert j and k to down and up, but I'm not finding any particularly easy ways

— Reply to this email directly or view it on GitHub https://github.com/tdryer/hangups/issues/103#issuecomment-139839695.

jtamagnan avatar Sep 13 '15 02:09 jtamagnan

I've got basic support in #161.

I was only really able to add it in the main conversation list page with j and k working for up and down, since it would stop you from writing j or k on the conversation pages if I added it there too, and since most of the other options can be set with the config, I figure it'd be best to just stick with the existing config options to let you set your own vimlike controls for changing tabs and all that.

One thing is, you won't have vimlike controls when you open the conversation menu (by default ctrl n) because I didn't want code redundancy, but if it's really important to y'all I can add it.

baskervald avatar Sep 13 '15 02:09 baskervald

I personally spend almost no time in those menus so it's no big deal for me.

baskervald avatar Sep 13 '15 02:09 baskervald

It's working in the menus now, although you'll need to use the arrow keys to move out of textboxes. That'll hopefully change when/if more advanced vimlike controls come around

baskervald avatar Sep 14 '15 01:09 baskervald