From 651bd95adb6341b4c04e65cdc728b30c0a5f6a04 Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 23 Jun 2025 21:49:55 +0200 Subject: [PATCH] feat(tasks): don't edit newly created task" --- functions.sh | 1 - tasks.sh | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.sh b/functions.sh index 2e1d01c..415baf4 100644 --- a/functions.sh +++ b/functions.sh @@ -2,7 +2,6 @@ # Sync notes via git notesSync() { - # check if online test="git.sr.ht" if timeout 0.5 ping -q -c 1 -W 1 $test >/dev/null; then diff --git a/tasks.sh b/tasks.sh index 5e781dd..055a3eb 100755 --- a/tasks.sh +++ b/tasks.sh @@ -45,9 +45,10 @@ function createtask() { echo $heading > "$full_path" date_heading=$(date +'%b %d, %Y, %a %r') echo $date_heading >> "$full_path" + else + editFile "$full_path" fi - editFile "$full_path" } || { echo ">>> New task failed" @@ -82,7 +83,7 @@ elif [ "$1" = "open" ] || [ "$1" = "o" ]; then select file in "${files[@]##*/}"; do { echo "Opening $file" - editFile "$file" + editFile "${tasks_dir}/$file" break } || {