Docs

File Search

The File Search extension is a powerful tool officially provided by Sliprail that integrates file search functionality directly into Sliprail's shortcut command system. No need to open file browsers or navigate complex search interfaces—just a few keystrokes to quickly find the files you need.

Core Features

Smart Search

Supports quick searching through keywords and file names, helping you efficiently find documents, photos, and other files. Whether it's partial file names or complete paths, it provides precise matching.

Wildcard Support

The extension supports rich glob wildcard syntax for more flexible searching:

  • *: Matches any number of characters (e.g., *.jpg finds all jpg images).
  • ?: Matches a single character (e.g., photo?.jpg matches photo1.jpg or photoA.jpg).
  • {a,b}: Matches one of multiple options (e.g., {vacation,family}.jpg matches vacation.jpg or family.jpg).

How to Use

Basic Search

  1. Press Sliprail's global hotkey to open the launcher
  2. Enter the file search command: SearchFiles
  3. Press the spacebar
  4. Type the filename or pattern you want to search for (optional - if no input is provided, the file search window will open directly)
  5. Press Enter to execute the search

Wildcard Search Examples

Find all image files:

*.jpg

This will find all files with the .jpg extension.

Find files with specific naming patterns:

photo?.jpg

This will match files like photo1.jpg, photoA.jpg, etc.

Find multiple possible files:

{vacation,family}.jpg

This will simultaneously search for vacation.jpg and family.jpg.

Exclusion list

To improve performance and reduce noise, you can configure an exclusion list for File Search using .gitignore syntax.

  • Location: Settings > Extensions > File Search > Exclusion list
  • Syntax: the same as .gitignore; supports wildcards, directories, and negation rules

Common examples:

node_modules/
dist/
*.log
.env
**/build/
!keep.log

Rule notes:

  • A trailing "/" denotes a directory
  • "!" negates a previous pattern (whitelists)
  • "**" matches across directories; "*" matches any characters; "?" matches a single character
  • Patterns are evaluated relative to the search root (working directory)

Tip: a well‑tuned exclusion list can significantly improve search speed and relevance.

Tips

  1. Use wildcards to improve efficiency: Mastering *, ?, {} can significantly boost search efficiency
  2. Combine search patterns: Different wildcards can be combined for more precise matching
  3. Memorize common patterns: Keep frequently used search patterns in mind to form your own search habits
  4. Quick location: Using key parts of filenames for searching is often more efficient than complete filenames
  5. Direct search window access: If you don't input any filename or pattern, simply press Enter to open the file search window directly, allowing you to perform search operations more flexibly.