diff --git a/notes.sh b/notes.sh index a565472..8d0c160 100755 --- a/notes.sh +++ b/notes.sh @@ -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 @@ -20,10 +23,10 @@ function createNote() { title="$file_date" file_name="${file_date}.md" else - file_name="${file_date}-${title}.md" + 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