diff --git a/tests/t1300-ls.sh b/tests/t1300-ls.sh index 9493533..1a69249 100755 --- a/tests/t1300-ls.sh +++ b/tests/t1300-ls.sh @@ -53,6 +53,18 @@ test_todo_session 'checking TODOTXT_FINAL_FILTER' <>> HIDE_CUSTOM_SUBSTITUTION='[tT]h' todo.sh ls +2 aaa zzz is line should be first. +3 bbb yyy is line should be second. +1 ccc xxx is line should be ird. +-- +TODO: 3 of 3 tasks shown +EOF + # # check the filtering of TERM # diff --git a/todo.sh b/todo.sh index 5d03eb0..f63b34d 100755 --- a/todo.sh +++ b/todo.sh @@ -821,6 +821,7 @@ _list() { | sed ''' s/'"${HIDE_PROJECTS_SUBSTITUTION:-^}"'//g s/'"${HIDE_CONTEXTS_SUBSTITUTION:-^}"'//g + s/'"${HIDE_CUSTOM_SUBSTITUTION:-^}"'//g ''' \ | eval ${TODOTXT_FINAL_FILTER} \ )