Advanced Content Syntax
OmniSearch does the fast indexed path/name search first. If your query includes content:
syntax, it opens the remaining files and scans their contents.
| Syntax Example | What it does |
|---|---|
ext:txt content:"invoice" |
Searches text files for an exact phrase. |
src ext:ts;tsx content:"useEffect" |
Searches specific code files within paths containing "src". |
ext:json utf8content:"name" |
Forces UTF-8 matching for modern config files. |
ext:txt ansicontent:"error" |
Treats file as ANSI text for older logs or INI files. |
ext:txt utf16content:"Event ID" |
Searches Windows-style UTF-16 log files. |