Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #24 from cmaspi/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
cmaspi authored Feb 19, 2022
2 parents 46147b1 + cd5df1b commit 803a248
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Binary file modified manual/tasks.1.gz
Binary file not shown.
3 changes: 2 additions & 1 deletion manual/tasks.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ Atleast one of the parameters is important, if more than one is given, then the
delete a task in the current list.
*Usage*
tasks rm \{KEYWORD\} \{-n INDEX\} \{\-\-hash=HASH\}
Atleast one of the parameters is important, if more than one is given, then the order of precedence is -n, \-\-hash, then KEYWORD.
Atleast one of the parameters is important, if more than one is given, then the order of precedence is -n, \-\-hash, then KEYWORD.
**tasks rm .** : This command is a substitute for tasks clean

***addAt***
adds a task at a given index in the list, this is meant to serve a substitute to priority.
Expand Down
9 changes: 9 additions & 0 deletions tasks
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set -x cmd $argv[1]

# tasks directory
set -x tasksDir "$HOME/.local/lib/tasks"

# sourcing all the function from src
source $tasksDir/src/add.fish
source $tasksDir/src/addAt.fish
Expand Down Expand Up @@ -37,6 +38,8 @@ switch $cmd
touch "$dir"/Tdo.csv
touch "$dir"/Tdone.csv
else
# if the command is tasks create , then it will
# return this error message
echo "tasks create ... what?"
end

Expand Down Expand Up @@ -93,6 +96,12 @@ switch $cmd
echo "tasks $argv[1] .. what?"
exit
end
if [ $argv[2] = "." ]
# same as cleanDo
cat /dev/null > $tasksDir/lists/"$list"/Tdo.csv
cat /dev/null > $tasksDir/lists/"$list"/Tdone.csv
exit
end
delete $argv --list="$list"

# mark a task as done, it will move the task to done list
Expand Down

0 comments on commit 803a248

Please sign in to comment.