add initial version of zettelkasten tools

master
glenda 2 years ago
parent 16438909e5
commit 84dc332c3b

@ -0,0 +1,6 @@
#!/bin/rc
# z/ins - make a new zettelkasten note,
basepath=$oshome/vimwiki/zettel/ # needs a trailing /
id=`{date -f 'YYYYMMDDhhmmss'}
echo -n [[^$id^'.md'^]]
z/new

@ -0,0 +1,8 @@
#!/bin/rc
# z/new - create a new zettelkasten note
basepath=$oshome/vimwiki/zettel/
id=`{date -f 'YYYYMMDDhhmmss'}
notepath=$basepath^'/'^$id^'.md'
echo '#' $id - > $notepath
plumb $notepath