From ec9210cd0c4da165297b94eadbc5e6f404376f74 Mon Sep 17 00:00:00 2001 From: Ayo Date: Tue, 24 Jun 2025 01:08:44 +0200 Subject: [PATCH] feat(tasks): improvements for projects labels --- tasks.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks.sh b/tasks.sh index dec2773..d876637 100755 --- a/tasks.sh +++ b/tasks.sh @@ -15,7 +15,7 @@ getopts "t" typora; #check if -t flag is given function listTasks() { files=( $tasks_dir/*.md ) index=0 - echo "ACTIVE TASKS: " + echo "TASKS: " for file in "${files[@]##*/}"; do ((index++)) echo "$index) $file" @@ -80,8 +80,8 @@ function createtask() { ## LIST tasks in directory if [ "$1" = "list" ] || [ "$1" = "l" ]; then notesSync - listTasks listProjects + listTasks ## OPEN a task from a list elif [ "$1" = "open" ] || [ "$1" = "o" ]; then @@ -228,7 +228,7 @@ elif [ "$1" = "move" ] || [ "$1" = "m" ]; then fi ## CREATE a project -elif [ "$1" = "project" ] || [ "$1" = "j" ]; then +elif [ "$1" = "project" ] || [ "$1" = "p" ]; then read -p "Create new project: " project mkdir "$tasks_dir/$project"