feat(notes): put new notes to Inbox dir

This commit is contained in:
ayo 2026-07-06 21:00:05 +02:00
parent 1d96d28f21
commit 5f99fb7b25

View file

@ -6,6 +6,9 @@
getopts "t" typora; #check if -t flag is given
# put new notes to Inbox directory
TARGET="${notes_dir}/Inbox"
function createNote() {
{
if [ "$1" = "" ]; then
@ -23,7 +26,7 @@ function createNote() {
file_name="${file_date} - ${title}.md"
fi;
full_path="${notes_dir}/${file_name}"
full_path="${TARGET}/${file_name}"
# IF Not Exists: create file with:
# - title