From 5021d16cea2b476382a8ccdac5d6746743b7569f Mon Sep 17 00:00:00 2001 From: grammaright Date: Sun, 13 Sep 2015 00:45:54 +0900 Subject: [PATCH] Add j, k key for arrow action at read_actions --- thefuck/ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thefuck/ui.py b/thefuck/ui.py index b93e11bd..e54e8654 100644 --- a/thefuck/ui.py +++ b/thefuck/ui.py @@ -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