mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-19 04:21:14 +00:00
Merge pull request #604 from wbolster/add-colemak-nav-bindings
add support for colemak style vi bindings
This commit is contained in:
commit
6f842ab747
@ -12,9 +12,10 @@ def read_actions():
|
|||||||
while True:
|
while True:
|
||||||
key = get_key()
|
key = get_key()
|
||||||
|
|
||||||
if key in (const.KEY_UP, 'k'):
|
# Handle arrows, j/k (qwerty), and n/e (colemak)
|
||||||
|
if key in (const.KEY_UP, 'k', 'e'):
|
||||||
yield const.ACTION_PREVIOUS
|
yield const.ACTION_PREVIOUS
|
||||||
elif key in (const.KEY_DOWN, 'j'):
|
elif key in (const.KEY_DOWN, 'j', 'n'):
|
||||||
yield const.ACTION_NEXT
|
yield const.ACTION_NEXT
|
||||||
elif key in (const.KEY_CTRL_C, 'q'):
|
elif key in (const.KEY_CTRL_C, 'q'):
|
||||||
yield const.ACTION_ABORT
|
yield const.ACTION_ABORT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user