Obsidian Search Cheat Sheet

OperatorDescriptionExample
file:Search for a file namefile:"Daily Note 20221028"
path:Search for files in a specific directorypath:01-daily-notes
tag:Search for tagstag:#atomic
line:Search for text on the same lineline:("today I worked on")
section:Search for text in the same section (text between two headings)section:("today I worked on")
content:Search for text in file contentcontent:("today I worked on")
block:Search for text in the same blockblock:("today I worked on")
match-case:Match the casing exactlymatch-case:("DailyNote")
ignore-case:Ignore the casingignore-case:("dailynote")
task:Search for a tasktask:("Clean my desk")
task-todo:Search for an unfinished tasktask-todo:("Clean my desk")
task-done:Search for a finished tasktask-done:("Clean my desk")
-path:To exclude files in a directory-path:"Templates"
-file:To exclude a specific file-file:"Test Daily Note"

Source: https://help.obsidian.md/Plugins/Search

tag:#questions "[[Billy Bob]]"

This indicates: find the tag AND (implicit) the literal string. Without the quotes, […] denote syntax for finding properties (i.e., within the YAML properties section, thus has a different meaning.

#questions [[Billy Bob]] #questions [[others]]
Built with LogoFlowershow