feat(tasks): improvements for projects labels
This commit is contained in:
parent
1f764dfc61
commit
ec9210cd0c
1 changed files with 3 additions and 3 deletions
6
tasks.sh
6
tasks.sh
|
@ -15,7 +15,7 @@ getopts "t" typora; #check if -t flag is given
|
||||||
function listTasks() {
|
function listTasks() {
|
||||||
files=( $tasks_dir/*.md )
|
files=( $tasks_dir/*.md )
|
||||||
index=0
|
index=0
|
||||||
echo "ACTIVE TASKS: "
|
echo "TASKS: "
|
||||||
for file in "${files[@]##*/}"; do
|
for file in "${files[@]##*/}"; do
|
||||||
((index++))
|
((index++))
|
||||||
echo "$index) $file"
|
echo "$index) $file"
|
||||||
|
@ -80,8 +80,8 @@ function createtask() {
|
||||||
## LIST tasks in directory
|
## LIST tasks in directory
|
||||||
if [ "$1" = "list" ] || [ "$1" = "l" ]; then
|
if [ "$1" = "list" ] || [ "$1" = "l" ]; then
|
||||||
notesSync
|
notesSync
|
||||||
listTasks
|
|
||||||
listProjects
|
listProjects
|
||||||
|
listTasks
|
||||||
|
|
||||||
## OPEN a task from a list
|
## OPEN a task from a list
|
||||||
elif [ "$1" = "open" ] || [ "$1" = "o" ]; then
|
elif [ "$1" = "open" ] || [ "$1" = "o" ]; then
|
||||||
|
@ -228,7 +228,7 @@ elif [ "$1" = "move" ] || [ "$1" = "m" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## CREATE a project
|
## CREATE a project
|
||||||
elif [ "$1" = "project" ] || [ "$1" = "j" ]; then
|
elif [ "$1" = "project" ] || [ "$1" = "p" ]; then
|
||||||
read -p "Create new project: " project
|
read -p "Create new project: " project
|
||||||
mkdir "$tasks_dir/$project"
|
mkdir "$tasks_dir/$project"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue