Documented duplicate feature; fixed a bug in duplicate caused by nonexistent notebooks
This commit is contained in:
5
vns
5
vns
@@ -143,7 +143,7 @@ vns_printHelp (){
|
||||
# printHelp
|
||||
# Prints help information to stdout
|
||||
|
||||
printf "%s" "usage: vns [-cedlpqr] <notebook/section/name>"
|
||||
printf "%s" "usage: vns [-cdelpqr] <notebook/section/name>"
|
||||
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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user