Compare commits
2 Commits
archive/tr
...
archive/li
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
272cd5e469 | ||
|
|
17658c852d |
12
todo.sh
12
todo.sh
@@ -775,8 +775,12 @@ _list() {
|
||||
fi
|
||||
items=$(
|
||||
sed = "$src" \
|
||||
| sed "N; s/^/ /; s/ *\(.\{$PADDING,\}\)\n/\1 /" \
|
||||
| grep -v "^[ 0-9]\+ *$"
|
||||
| sed '''
|
||||
N
|
||||
s/^/ /
|
||||
s/ *\([ 0-9]\{'"$PADDING"',\}\)\n/\1 /
|
||||
/^[ 0-9]\+ *$/d
|
||||
'''
|
||||
)
|
||||
if [ "${filter_command}" ]; then
|
||||
filtered_items=$(echo -n "$items" | eval "${filter_command}")
|
||||
@@ -991,7 +995,7 @@ case $action in
|
||||
|
||||
# Split multiple depri's, if comma separated change to whitespace separated
|
||||
# Loop the 'depri' function for each item
|
||||
for item in ${*//,/ }; do
|
||||
for item in $(echo $* | tr ',' ' '); do
|
||||
getTodo "$item"
|
||||
|
||||
if [[ "$todo" = \(?\)\ * ]]; then
|
||||
@@ -1015,7 +1019,7 @@ case $action in
|
||||
|
||||
# Split multiple do's, if comma separated change to whitespace separated
|
||||
# Loop the 'do' function for each item
|
||||
for item in ${*//,/ }; do
|
||||
for item in $(echo $* | tr ',' ' '); do
|
||||
getTodo "$item"
|
||||
|
||||
# Check if this item has already been done
|
||||
|
||||
Reference in New Issue
Block a user