1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 20:11:17 +00:00

Merge pull request #604 from wbolster/add-colemak-nav-bindings

add support for colemak style vi bindings
This commit is contained in:
Vladimir Iakovlev 2017-02-08 13:01:28 +01:00 committed by GitHub
commit 6f842ab747

View File

@ -12,9 +12,10 @@ def read_actions():
while True:
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
elif key in (const.KEY_DOWN, 'j'):
elif key in (const.KEY_DOWN, 'j', 'n'):
yield const.ACTION_NEXT
elif key in (const.KEY_CTRL_C, 'q'):
yield const.ACTION_ABORT