feat: Introduce basic vim bindings in prompts (#28)
Signed-off-by: sswastik02 <40518186+sswastik02@users.noreply.github.com>
This commit is contained in:
+4
-4
@@ -26,10 +26,10 @@ _key_input() {
|
||||
local input="${a}${b}"
|
||||
# shellcheck disable=SC1087
|
||||
case "$input" in
|
||||
"$ESC[A") echo up ;;
|
||||
"$ESC[B") echo down ;;
|
||||
"$ESC[C") echo right ;;
|
||||
"$ESC[D") echo left ;;
|
||||
"$ESC[A" | "k") echo up ;;
|
||||
"$ESC[B" | "j") echo down ;;
|
||||
"$ESC[C" | "l") echo right ;;
|
||||
"$ESC[D" | "h") echo left ;;
|
||||
'') echo enter ;;
|
||||
' ') echo space ;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user