mt find
Find tasks that contain every word you give
It takes the same flags as mt ls.
mt find login bug runs mt ls 'contains("login") && contains("bug")'. So every ls flag works, and the applied: line shows the filter. [ls] contains-fields sets the fields a bare contains() searches, as Filters describes. To search one field, use a filter: mt ls 'contains("bug", title)'.
Runs on every project of a set too. mt @work find searches every project and prints one table, a PROJECT column first.
<TERM>… | Words to search for A task matches when it contains every word.
|
--format <FORMAT> | Output format
|
--json | Same as --format json |
-n, --limit <LIMIT> | Show at most N tasks, after filtering and sorting A table says how many it left out. |
--skip <SKIP> | Skip the first N rows after sorting For page two of |
--sort <SORT>… | Sort by a field, such as Repeat it to break ties, or pass
|
--columns <COLS> | The columns to show, comma-separated, or @view for a view's columns |
-i, --interactive | Pick a task from the table and open it in your editor Type a task's hash to highlight it, and press Enter to open it. Needs a terminal. |
--hyperlinks <WHEN> | When to make the Defaults to
|
mt find redis # one term
mt find login token # several terms conjoin (AND)
mt find redis --sort priority:desc -n 3 # every ls flag forwards
mt find email --format path | xargs wc -lEvery command also takes the global flags.