Replace colorization sed scripts with ones that are more compatible with OSX
sed and NLS todo items. They're also more consistent with other internal usage of sed.
This commit is contained in:
committed by
Gina Trapani
parent
9f03cf6847
commit
8b7e2e6aad
8
todo.sh
8
todo.sh
@@ -572,10 +572,10 @@ _list() {
|
|||||||
| eval ${TODOTXT_SORT_COMMAND} \
|
| eval ${TODOTXT_SORT_COMMAND} \
|
||||||
| sed '''
|
| sed '''
|
||||||
/^[0-9]\{'$PADDING'\} x /! {
|
/^[0-9]\{'$PADDING'\} x /! {
|
||||||
s/\(.*(A).*\)/'$PRI_A'\1'$DEFAULT'/g;
|
/(A)/ s|^.*|'$PRI_A'&'$DEFAULT'|
|
||||||
s/\(.*(B).*\)/'$PRI_B'\1'$DEFAULT'/g;
|
/(B)/ s|^.*|'$PRI_B'&'$DEFAULT'|
|
||||||
s/\(.*(C).*\)/'$PRI_C'\1'$DEFAULT'/g;
|
/(C)/ s|^.*|'$PRI_C'&'$DEFAULT'|
|
||||||
s/\(.*([D-Z]).*\)/'$PRI_X'\1'$DEFAULT'/g;
|
/([D-Z])/ s|^.*|'$PRI_X'&'$DEFAULT'|
|
||||||
}
|
}
|
||||||
''' \
|
''' \
|
||||||
| sed '''
|
| sed '''
|
||||||
|
|||||||
Reference in New Issue
Block a user