-
Notifications
You must be signed in to change notification settings - Fork 729
Open
Description
The help says to OR 2 contexts with the ls command:
ls [TERM...]
Displays all tasks that contain TERM(s) sorted by priority with line
numbers. Each task must match all TERM(s) (logical AND); to display
tasks that contain any TERM (logical OR), use
'TERM1\|TERM2\|...' (with quotes), or TERM1\\|TERM2 (unquoted).
Hides all tasks that contain TERM(s) preceded by a
minus sign (i.e. -TERM).
TERM(s) are grep-style basic regular expressions; for literal matching,
put a single backslash before any [ ] \ $ * . ^ and enclose the entire
TERM in single quotes, or use double backslashes and extra shell-quoting.
If no TERM specified, lists entire todo.txt.
I have found that TERM1\\|TERM2 unquoted is unsufficient. It should say to escape both characters.
ie. TERM1\\\|TERM2
This is the only version that worked for me in bash.
Metadata
Metadata
Assignees
Labels
No labels