Open search
- Press
Ctrl+Shift+F(Windows/Linux) orCmd+Shift+F(macOS). - Click the search icon in the left sidebar.
Files matching your Settings → Excluded files patterns will not appear in search results.
Basic search
Type a word or phrase into the search field. By default, Obsidian searches the contents of notes and canvases.- Each word is matched independently:
meeting workreturns files containing both words. - Wrap a phrase in quotes for an exact match:
"stand-up meeting". - Escape quotes inside a phrase with a backslash:
"they said \"hello\" to each other".
Boolean operators
Combine words and phrases with boolean logic:- Use
ORto match either term. - Use
-(hyphen) before a word to exclude it. - Use parentheses to group expressions and control evaluation order.
Search operators
Operators let you target specific parts of a note or file:| Operator | Description | Example |
|---|---|---|
file: | Search in filenames. | file:.jpg |
path: | Search in file paths. | path:"Daily notes/2022-07" |
content: | Search in file content. | content:"happy cat" |
tag: | Find files with a specific tag. | tag:#work |
line: | Match files where a single line contains all terms. | line:(mix flour) |
block: | Match files where a single block contains all terms. | block:(dog cat) |
section: | Match files where a section contains all terms. | section:(dog cat) |
task: | Match text in a task item. | task:call |
task-todo: | Match text in an uncompleted task. | task-todo:call |
task-done: | Match text in a completed task. | task-done:call |
match-case: | Case-sensitive match. | match-case:HappyCat |
ignore-case: | Case-insensitive match. | ignore-case:ikea |
task:(call OR email).
Search properties
Search across note properties using bracket syntax:OR, parentheses, exact quotes, and regex.
Regular expressions
Surround a regular expression with forward slashes to use it in a search:2022-01-01. You can combine regex with operators:
Obsidian uses JavaScript-flavored regular expressions.
Change case sensitivity
By default, search is case-insensitive. Click the Match case icon inside the search bar to enable case-sensitive matching. The icon is highlighted when case-sensitive mode is active.Sort results
Copy search results
Embed search results in a note
You can embed a live search query inside any note using aquery code block:
Search settings
Click the sliders icon on the right side of the search bar to access additional settings:| Setting | Description |
|---|---|
| Explain search term | Breaks down your query and explains it in plain language. |
| Collapse results | Toggle whether search context is shown below each result. |
| Show more context | Expand results to show more surrounding text for each match. |