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:
parent
af259846b4
commit
5021d16cea
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user