1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 12:06:04 +00:00

Add j, k key for arrow action at read_actions

This commit is contained in:
grammaright 2015-09-13 00:45:54 +09:00
parent af259846b4
commit 5021d16cea

View File

@ -44,9 +44,9 @@ def read_actions():
buffer.append(ch)
buffer = buffer[-3:]
if buffer == ['\x1b', '[', 'A']: # ↑
if buffer == ['\x1b', '[', 'A'] or ch == 'k': # ↑
yield PREVIOUS
elif buffer == ['\x1b', '[', 'B']: # ↓
elif buffer == ['\x1b', '[', 'B'] or ch == 'j': # ↓
yield NEXT