From 2f5271d6688aef993f5c6f4809c372f97f021a1f Mon Sep 17 00:00:00 2001 From: Vera Lewis Date: Fri, 7 Nov 2025 03:55:07 -0600 Subject: [PATCH] Documented duplicate feature; fixed a bug in duplicate caused by nonexistent notebooks --- vns | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vns b/vns index b3e3806..f483c54 100644 --- a/vns +++ b/vns @@ -143,7 +143,7 @@ vns_printHelp (){ # printHelp # Prints help information to stdout - printf "%s" "usage: vns [-cedlpqr] " + printf "%s" "usage: vns [-cdelpqr] " printf "\\n%s" " vns -I GPG_RECIPIENT (GPG_RECIPIENTS...)" printf "\\n%s" " vns -h" printf "\\n%s" " vns git ..." @@ -159,6 +159,7 @@ vns_printHelp (){ printf "\\n%s" " -p : Print note to console" printf "\\n%s" " -q : Query notes for expression" printf "\\n%s" " -r : Rename/move a note" + printf "\\n%s" " -u : Duplicate note as given path" printf "\\n\\n" } @@ -444,7 +445,7 @@ vns_duplicate () { vns_raise "User declined overwrite" 0;; esac fi - + mkdir -p "$VNS_STORE/$(dirname $2)" cp "$VNS_STORE/$1.gpg" "$VNS_STORE/$2.gpg" vns_git add "$VNS_STORE/$2.gpg" }