# Search

Press <kbd>⌘</kbd> <kbd>P</kbd>, or click the search icon at the top of the
rail. Results update as you type.

## Tips

- **Type part of a name.** One or two letters match the start of a name; three
  or more match anywhere in it.
- **Type three letters or more to search inside notes**, code files and the
  text in drawings. Results show the matching lines.
- **Type several words.** A note matches when it holds every word, in any order.
  The last word can be cut short: `meeting not` finds "meeting notes".
- **Don't bother with operators among plain words.** There, quotes, `-` and
  `OR` count as spaces. They do work in and around
  [property filters](#search-by-property).
- **A note's `title` and `aliases` count as its name.** A note called
  `2026-03.md` with `aliases: [Kyoto trip]` in its
  [frontmatter](/docs/markdown#frontmatter) turns up for "kyoto".
- **Typos are fine.** When nothing matches, MemoMori tries words spelled close
  to yours.

## Search by tag

- **Type `#`** to list your [tags](/docs/markdown#tags), most used first. Keep
  typing to narrow the list, then pick one.
- **`#travel`** finds every note with that tag, and with any tag under it, such
  as `#travel/japan`.
- **Add words** to narrow it: `#travel kyoto` finds tagged notes that mention
  Kyoto.
- **Add tags** to need them all: `#travel #2026`.

Clicking a tag in a note runs the same search.

## Search by property

A filter in square brackets finds notes by their
[frontmatter](/docs/markdown#frontmatter).

| Type                     | To find notes where                              |
| ------------------------ | ------------------------------------------------ |
| `[status]`               | `status` exists                                  |
| `[status:todo]`          | `status` contains "todo"                         |
| `[status:"to do"]`       | `status` is exactly "to do"                      |
| `[status:todo OR doing]` | `status` contains either                         |
| `[status:null]`          | `status` is empty                                |
| `[rating:4]`             | `rating` is the number 4                         |
| `[rating:>=4]`           | `rating` is 4 or more                            |
| `[due:<today]`           | `due` is a date before today                     |
| `[due:2026-12]`          | `due` falls in December 2026                     |
| `[due:today..today+7d]`  | `due` is between today and 7 days from today     |
| `[done:true]`            | `done` is true                                   |
| `[source.site:youtube]`  | the nested key `source: { site: … }` contains it |
| `-[status:done]`         | `status` doesn't contain "done", or is missing   |
| `-[archived]`            | `archived` is missing                            |

- **Type `[`** to list the properties your notes use, most used first. Pick
  one, then pick a value. Dates and numbers offer ranges.
- **Combine filters, tags and words** with spaces. All must match:
  `#work [status:todo] budget`.
- **Either of two:** `[status:todo] OR [status:doing]`. `OR` is uppercase and
  joins filters only; plain words must match on both sides of it.
- **Group with parentheses:** `#work ([status:todo] OR #urgent)`. `-( … )`
  excludes the group.
- **Relative dates:** `today`, `yesterday`, `tomorrow` and `now`, plus or minus
  a number of `d`, `w`, `M` (months), `y`, `h` or `m` (minutes): `today-1M`.
  They follow your time zone.
- **Numbers and dates compare as what they are.** `[rating:4]` doesn't find 40.
  A value in quotes in the note, such as `rating: "4"`, is text.
- **Letter case doesn't matter**, in keys or values.

A line under the search box reads your filters back in plain words. When
nothing matches, it says why: a misspelled key suggests the closest one.

Clicking a key or a value in the **Metadata** panel runs the search for it.
A search with a filter or a tag finds Markdown notes only.

## Good to know

Chinese, Japanese and Korean text matches as you type it.

To show search results inside a note, add a [query block](/docs/queries).

## What search can't see

Search reads names only for PDFs, ebooks and other uploads, not their insides.
Items in the [graveyard](/docs/restore#bring-back-a-deleted-file) show at the
end, with a tag.
