Commit Graph

3 Commits

Author SHA1 Message Date
Ingo Karkat
617d377b01 ENH: Allow listpri filtering via TERM.
This even simplified the argument handling, since there can be no invalid priority any more; all other strings are taken as TERMs. And the check for empty ${1:-} was superfluous, anyway. Apart from these simplifications, it's basically just passing $@ to _list.
2011-05-10 15:54:50 +02:00
Ingo Karkat
c429b062cf BUG: listpri picked up non-priority patterns.
The regexp for the priority wasn't anchored to the beginning of the task. (As the filtering is done inside the _list pipeline, the task number has already been prepended.)
Also, by passing the regexp directly to _list, a case-insensitive search was performed, so despite [A-Z], lowercase characters were picked up, too. Need to make use of post_filter_command to inject a separate, case-sensitive grep into the pipeline.

Bonus: Added test for highlighting of listpri command.
2011-05-10 15:20:29 +02:00
Ingo Karkat
a830f18dd5 Split off dedicated tests for listpri.
Bonus: Fixed alignment of listpri help message.
2011-05-10 14:54:59 +02:00