zk: Quicknote alias defaults to current date

When creating a quick note with `nnn` on the command line, instead of
creating an 'untitled note' if no title is passed, we create a note that
is named after its creation date.
This commit is contained in:
Marty Oehme 2025-06-11 11:03:42 +02:00
parent 6435a7b51a
commit 2a193c2a44
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -27,7 +27,7 @@ if [ -n "${WIKIROOT}" ]; then
_zk_wiki new "$@"
}
nnn() { # 'new quicknote'
_zk_wiki new -t "${*}" inbox
_zk_wiki new -t "${*:-$(date)}" inbox
}
nnl() { # 'new note log'
_zk_wiki log "$@"