Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a65615c7a | ||
|
|
d7e194b09d | ||
|
|
a4ab8a808a |
@@ -71,6 +71,11 @@ TODO: 4 prioritized (A).
|
||||
4: (A) collect the eggs
|
||||
replaced with
|
||||
4: (A) collect the bread
|
||||
|
||||
>>> todo.sh replace 4 collect the eggs
|
||||
4: (A) collect the bread
|
||||
replaced with
|
||||
4: (A) collect the eggs
|
||||
EOF
|
||||
test_todo_session 'replace with &' << EOF
|
||||
>>> todo.sh replace 3 "thrash the hay & thresh the wheat"
|
||||
|
||||
2
todo.sh
2
todo.sh
@@ -1011,7 +1011,7 @@ note: PRIORITY must be anywhere from A to Z."
|
||||
if [ -z $priority ]; then
|
||||
sed -i.bak $item" s|^.*|$input|" "$TODO_FILE"
|
||||
else
|
||||
sed -i.bak -e "$item s/^(.) //" -e "$item s|^.*|\($priority\) $1|" "$TODO_FILE"
|
||||
sed -i.bak -e "$item s/^(.) //" -e "$item s|^.*|\($priority\) $input|" "$TODO_FILE"
|
||||
fi
|
||||
[ $TODOTXT_VERBOSE -gt 0 ] && {
|
||||
NEWTODO=$(head -$item "$TODO_FILE" | tail -1)
|
||||
|
||||
Reference in New Issue
Block a user