Move Filter Command Up & Remove Extra Sort Command
This commit is contained in:
3
todo.sh
3
todo.sh
@@ -400,6 +400,7 @@ _list() {
|
|||||||
command=$(
|
command=$(
|
||||||
sed = "$src" \
|
sed = "$src" \
|
||||||
| sed "N; s/^/ /; s/ *\(.\{$PADDING,\}\)\n/\1 /" \
|
| sed "N; s/^/ /; s/ *\(.\{$PADDING,\}\)\n/\1 /" \
|
||||||
|
| eval ${filter_command:-cat} \
|
||||||
| sed '''
|
| sed '''
|
||||||
s/^ /00000/;
|
s/^ /00000/;
|
||||||
s/^ /0000/;
|
s/^ /0000/;
|
||||||
@@ -408,7 +409,6 @@ _list() {
|
|||||||
s/^ /0/;
|
s/^ /0/;
|
||||||
''' \
|
''' \
|
||||||
| sort -f -k2 \
|
| sort -f -k2 \
|
||||||
| eval ${filter_command:-cat} \
|
|
||||||
| sed '''
|
| sed '''
|
||||||
/^[0-9]\{'$PADDING'\} x /! {
|
/^[0-9]\{'$PADDING'\} x /! {
|
||||||
s/\(.*(A).*\)/'$PRI_A'\1 '$DEFAULT'/g;
|
s/\(.*(A).*\)/'$PRI_A'\1 '$DEFAULT'/g;
|
||||||
@@ -417,7 +417,6 @@ _list() {
|
|||||||
s/\(.*([D-Z]).*\)/'$PRI_X'\1 '$DEFAULT'/g;
|
s/\(.*([D-Z]).*\)/'$PRI_X'\1 '$DEFAULT'/g;
|
||||||
}
|
}
|
||||||
''' \
|
''' \
|
||||||
| sort -f -k2 \
|
|
||||||
| sed '''
|
| sed '''
|
||||||
s/'${HIDE_PRIORITY_SUBSTITUTION:-^}'//g
|
s/'${HIDE_PRIORITY_SUBSTITUTION:-^}'//g
|
||||||
s/'${HIDE_PROJECTS_SUBSTITUTION:-^}'//g
|
s/'${HIDE_PROJECTS_SUBSTITUTION:-^}'//g
|
||||||
|
|||||||
Reference in New Issue
Block a user