feat(notes): put new notes to Inbox dir
This commit is contained in:
parent
1d96d28f21
commit
5f99fb7b25
1 changed files with 5 additions and 2 deletions
5
notes.sh
5
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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue