<info> <name>Bertrand Rousseau</name> <email>bertrand.rousseau@gmail.com</email> <years>2012</years> <name>Danielle Vansia</name> <email>daniellevansia@gmail.com</email> <years>2020</years> </info>

When performing a search request, you can also use special keywords to help refine your results. The table below describes this syntax. This functionality allows you to more efficiently view tasks based on specific criteria and prioritize tasks that are immediately due.

<app>GTG</app> Search Keywords
Search Query | Search Result
`word` | Tasks that contain a single word.
`"text"` | Tasks that contain everything inside of the quotes. You can include multiple words, special characters, and spaces in this search.
`@tag` | Tasks with this tag.
`!notag` | Tasks without tags.
`!before [date]` | Tasks that need to be completed before the input date. See the note below for the `[date]` element's format.
`!after [date]` | Tasks that you can wait to complete until after the input date. These tasks either have a start date that is after the input date or do not have a start date set and are due after the input date. See the note below for the `[date]` element's format.
`!today` | Tasks that are due today.
`!tomorrow` | Tasks that are due tomorrow.
`!nodate` | Tasks without a set due date.
`!now` | Tasks with due date defined as "now."
`!soon` | Tasks with due date defined as "soon."
`!someday` | Tasks with due date defined as "someday."
`!not [query]` | Tasks that do not include the next part of the query.
`[query] !or [query]` | Tasks with one of the specified elements in the query.

Date Format

`[date]` can be formatted in a number of ways using <app>GTG's</app> natural date parsing syntax. Dates can be literal (for example, "2020-04-20") or "fuzzy" (for example, "someday"). See Using the Date and Keyword Parsing Syntax for details.

The search feature behaves like it adds an implicit, logical AND between each element (unless the `!or` operator is used). The results include tasks that match all elements of the query.

Search Query Examples

Examples
Search Input | Search Result
`!tomorrow !or !today` | Tasks that are due today or tomorrow.
`@gtg @writing` | Tasks with both the `@gtg` and `@writing` tags.
`@gtg !before 2020-03-01` | Tasks that are due before March 1, 2020, and have the `@gtg` tag.
`buy @errands` | Tasks that include the word `buy` in the task title or description and contain the `@errands` tag.
`!not buy @errands` | Tasks that contain the `@errands` tag but do not contain the word `buy` in the task title or description.