Aligned verbose message output of tasks with normal task output.
I.e. removed the colon after the ITEM#. Updated tasks are now listed like the 'todo.sh ls' command does, e.g.
42 smell the roses
This is in preparation to eventually use a function factored out from _list() for the verbose task output, which would enable coloring in the verbose message and thus align the verbose message output even more with the normal task output.
This commit is contained in:
@@ -34,7 +34,7 @@ test_todo_session 'basic del' <<EOF
|
||||
TODO: 3 of 3 tasks shown
|
||||
|
||||
>>> todo.sh -f del 1
|
||||
1: (B) smell the uppercase Roses +flowers @outside
|
||||
1 (B) smell the uppercase Roses +flowers @outside
|
||||
TODO: 1 deleted.
|
||||
|
||||
>>> todo.sh -p list
|
||||
@@ -51,7 +51,7 @@ stop
|
||||
EOF
|
||||
test_todo_session 'del preserving line numbers' <<EOF
|
||||
>>> todo.sh -f del 1
|
||||
1: (B) smell the uppercase Roses +flowers @outside
|
||||
1 (B) smell the uppercase Roses +flowers @outside
|
||||
TODO: 1 deleted.
|
||||
|
||||
>>> todo.sh -f del 1
|
||||
@@ -59,7 +59,7 @@ TODO: 1 deleted.
|
||||
=== 1
|
||||
|
||||
>>> todo.sh add A new task
|
||||
4: A new task
|
||||
4 A new task
|
||||
TODO: 4 added.
|
||||
|
||||
>>> todo.sh -p list
|
||||
@@ -70,11 +70,11 @@ TODO: 4 added.
|
||||
TODO: 3 of 3 tasks shown
|
||||
|
||||
>>> todo.sh -f -n del 2
|
||||
2: (A) notice the sunflowers
|
||||
2 (A) notice the sunflowers
|
||||
TODO: 2 deleted.
|
||||
|
||||
>>> todo.sh add Another new task
|
||||
3: Another new task
|
||||
3 Another new task
|
||||
TODO: 3 added.
|
||||
|
||||
>>> todo.sh -p list
|
||||
@@ -99,9 +99,9 @@ test_todo_session 'basic del TERM' <<EOF
|
||||
TODO: 3 of 3 tasks shown
|
||||
|
||||
>>> todo.sh del 1 uppercase
|
||||
1: (B) smell the uppercase Roses +flowers @outside
|
||||
1 (B) smell the uppercase Roses +flowers @outside
|
||||
TODO: Removed 'uppercase' from task.
|
||||
1: (B) smell the Roses +flowers @outside
|
||||
1 (B) smell the Roses +flowers @outside
|
||||
|
||||
>>> todo.sh -p list
|
||||
2 (A) notice the sunflowers
|
||||
@@ -111,24 +111,24 @@ TODO: Removed 'uppercase' from task.
|
||||
TODO: 3 of 3 tasks shown
|
||||
|
||||
>>> todo.sh del 1 "the Roses"
|
||||
1: (B) smell the Roses +flowers @outside
|
||||
1 (B) smell the Roses +flowers @outside
|
||||
TODO: Removed 'the Roses' from task.
|
||||
1: (B) smell +flowers @outside
|
||||
1 (B) smell +flowers @outside
|
||||
|
||||
>>> todo.sh del 1 m
|
||||
1: (B) smell +flowers @outside
|
||||
1 (B) smell +flowers @outside
|
||||
TODO: Removed 'm' from task.
|
||||
1: (B) sell +flowers @outside
|
||||
1 (B) sell +flowers @outside
|
||||
|
||||
>>> todo.sh del 1 @outside
|
||||
1: (B) sell +flowers @outside
|
||||
1 (B) sell +flowers @outside
|
||||
TODO: Removed '@outside' from task.
|
||||
1: (B) sell +flowers
|
||||
1 (B) sell +flowers
|
||||
|
||||
>>> todo.sh del 1 sell
|
||||
1: (B) sell +flowers
|
||||
1 (B) sell +flowers
|
||||
TODO: Removed 'sell' from task.
|
||||
1: (B) +flowers
|
||||
1 (B) +flowers
|
||||
EOF
|
||||
|
||||
cat > todo.txt <<EOF
|
||||
@@ -138,7 +138,7 @@ cat > todo.txt <<EOF
|
||||
EOF
|
||||
test_todo_session 'del nonexistant TERM' <<EOF
|
||||
>>> todo.sh del 1 dung
|
||||
1: (B) smell the uppercase Roses +flowers @outside
|
||||
1 (B) smell the uppercase Roses +flowers @outside
|
||||
TODO: 'dung' not found; no removal done.
|
||||
=== 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user