From 62a0a61c91bcb041405b7bd57bf4e474e1d5c752 Mon Sep 17 00:00:00 2001 From: kardelio Date: Wed, 14 Oct 2020 11:23:42 +0200 Subject: [PATCH] Added vim keybindings for movement too --- cdi.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cdi.sh b/cdi.sh index 11485df..794525c 100755 --- a/cdi.sh +++ b/cdi.sh @@ -134,7 +134,7 @@ init() { # echo $mode case $mode in - '[A') # UP + '[A'|k) # UP if [ "$current_selection" -eq 0 ]; then current_selection=$folders_list_size @@ -143,7 +143,7 @@ init() { fi ;; - '[B') # DOWN + '[B'|j) # DOWN if [ "$current_selection" -eq "$folders_list_size" ]; then current_selection=0 @@ -153,13 +153,13 @@ init() { ;; - '[D') # LEFT + '[D'|h) # LEFT # Removes the last path level current_dir=${current_dir%/*} current_selection=0 ;; - '[C') # RIGHT + '[C'|l) # RIGHT get_selected_folder $current_dir $current_selection current_dir="$current_dir/$selected_folder" current_selection=0