Makes default operation after fzf viewing

Consider adding an option for this in the future
This commit is contained in:
Jonathan Hodgson 2020-12-21 20:08:02 +00:00
parent f8d04a304a
commit 828e21e328

5
kb
View file

@ -269,8 +269,9 @@ ${YELLOW}ctrl+d $WHITE delete selected
'ctrl-d') deleteFile "$id" ;; 'ctrl-d') deleteFile "$id" ;;
'') '')
case "$1" in case "$1" in
edit) editFile "$id"; safeExit ;; edit) editFile "$id" ;;
view) viewFile "$id"; safeExit ;; view) viewFile "$id" ;;
*) viewFile "$id" ;;
esac esac
;; ;;
*) die "unknown operation '$operation'" ;; *) die "unknown operation '$operation'" ;;