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