diff --git a/todo.sh b/todo.sh index fc1fd16..cad4312 100755 --- a/todo.sh +++ b/todo.sh @@ -572,10 +572,10 @@ _list() { | eval ${TODOTXT_SORT_COMMAND} \ | sed ''' /^[0-9]\{'$PADDING'\} x /! { - s/\(.*(A).*\)/'$PRI_A'\1'$DEFAULT'/g; - s/\(.*(B).*\)/'$PRI_B'\1'$DEFAULT'/g; - s/\(.*(C).*\)/'$PRI_C'\1'$DEFAULT'/g; - s/\(.*([D-Z]).*\)/'$PRI_X'\1'$DEFAULT'/g; + /(A)/ s|^.*|'$PRI_A'&'$DEFAULT'| + /(B)/ s|^.*|'$PRI_B'&'$DEFAULT'| + /(C)/ s|^.*|'$PRI_C'&'$DEFAULT'| + /([D-Z])/ s|^.*|'$PRI_X'&'$DEFAULT'| } ''' \ | sed '''