From 24976207d083a8cb8ac308af0929327c1c7b5d56 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Thu, 5 Jan 2023 20:02:45 +0100 Subject: [PATCH] Add delete option. --- dmenu-buku | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dmenu-buku b/dmenu-buku index c91e716..40a56e8 100755 --- a/dmenu-buku +++ b/dmenu-buku @@ -7,3 +7,5 @@ [ "$1" = "open" ] && buku --nostdin -p -f5 | sed 's/\t/;/g' | column -t -s ';' | $DMENU -p "Open bookmark: " -i -l 10 | cut -d' ' -f1 | xargs -r buku --nostdin -o [ "$1" = "edit" ] && buku --nostdin -p -f5 | sed 's/\t/;/g' | column -t -s ';' | $DMENU -p "Edit bookmark: " -i -l 10 | cut -d' ' -f1 | xargs -r $TERMINAL start -- buku -w + +[ "$1" = "delete" ] && buku --nostdin -p -f5 | sed 's/\t/;/g' | column -t -s ';' | $DMENU -p "Edit bookmark: " -i -l 10 | cut -d' ' -f1 | xargs -r buku --nostdin -d --tacit