mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
Add j, k key for arrow action at read_actions
This commit is contained in:
parent
af259846b4
commit
5021d16cea
@ -44,9 +44,9 @@ def read_actions():
|
|||||||
buffer.append(ch)
|
buffer.append(ch)
|
||||||
buffer = buffer[-3:]
|
buffer = buffer[-3:]
|
||||||
|
|
||||||
if buffer == ['\x1b', '[', 'A']: # ↑
|
if buffer == ['\x1b', '[', 'A'] or ch == 'k': # ↑
|
||||||
yield PREVIOUS
|
yield PREVIOUS
|
||||||
elif buffer == ['\x1b', '[', 'B']: # ↓
|
elif buffer == ['\x1b', '[', 'B'] or ch == 'j': # ↓
|
||||||
yield NEXT
|
yield NEXT
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user