From 828e21e328c3bf0d626a4358710126fbac8d9b61 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 21 Dec 2020 20:08:02 +0000 Subject: [PATCH] Makes default operation after fzf viewing Consider adding an option for this in the future --- kb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kb b/kb index 9302a55..60799e5 100755 --- a/kb +++ b/kb @@ -269,8 +269,9 @@ ${YELLOW}ctrl+d $WHITE delete selected 'ctrl-d') deleteFile "$id" ;; '') case "$1" in - edit) editFile "$id"; safeExit ;; - view) viewFile "$id"; safeExit ;; + edit) editFile "$id" ;; + view) viewFile "$id" ;; + *) viewFile "$id" ;; esac ;; *) die "unknown operation '$operation'" ;;