This page shows you how to use Raycast’s file search, with a new engine independent of Microsoft’s Windows Search. You can access it either by going into the Search Files command (we recommend setting a hotkey in Settings for quick access), or searching for files directly in root search.
By default your users folder is indexed C:\Users\(username).
Raycast stores data about relevant files in an index that we keep up-to-date with the file system, in the background. When you open File Search, you might see the indexing progress. This is updating your index server with your latest file changes. We show your last used files by default, that is, the files that you’ve recently opened in Explorer.
When you enter a file or folder name in File Search on in the main window, you’re searching the index. Search supports a number of different features, depending on how you enter the query. During indexing, we tokenize file names and file paths, i.e. split them into searchable words: we split file names on whitespace, punctuation, “camel humps” (e.g. “FileSearch” gets split into “file”, “search”), lowercase, and ASCII fold (e.g. é becomes e). File paths are split into their path segments. Multiple search terms are implicitly joined by an AND. You can search files by file extension, inside relative parent folders, and you can prioritize folders in search results.
Some example queries (”entries” meaning files, folders, and symlinks):
foo
: Finds entries starting with foo
in one of its name components, so you would find foo.pdf
, My Foo Bar
, or MyFooDocument
.foo bar
: Finds all entries containing both foo and bar in its name components; this also works for file extensions, for example:foo pdf
finds all foo entries with a pdf
extension.foo .pdf
: Finds all pdf files with foo
in its name components (vs. foo pdf
which would match pdf
not only in the file extension but also in the file name components).foo/
: Finds all entries with foo
and prioritizes folders – handy for listing common folder locations such as Downloads/
; just continue writing to search inside the folder, see next:foodocs/bar
: Finds all bar
entries in a folder foodocs
; this is a powerful way to narrow down search results when you’re only interested in the documents of some parent folder in the folder hierarchy. You can also enter the parent folder after the file name: say you’re searching for a file config.json
but this yields too many search results. Just continue typing /projects
to only get the files under some ancestor projects
folder.Tip: Press Tab
on any entry to expand the full path and enter “browsing mode”.
Whenever you enter a valid absolute path starting with \\
, /
~\\
or ~/
in the search bar, you will see a 1:1 representation of the file system (similar to what you’d see in Explorer, Powershell or the Command Line). Some examples of what you can do in this mode:
Filter the current directory results by typing one or more prefixes of a file or folder name.
Enter the selected folder by typing a trailing /
or by pressing the Tab
key; if the selected entry is a file, Tab
completes the full path; if the entry is a symlinks or alias, it gets resolved to the target path; navigate back up to the current level by pressing ⇧
Tab
.
Press Ctrl
↵
to show an item in Finder; perform other file actions via Ctrl
K
.
Press Ctrl
P
within the Search Files command to filter by file type