Skip to main content
Yazi provides multiple search methods for finding files and content, with deep integration into popular command-line tools.

Quick Find

Find files by name in the current directory:
1

Start search

Press / (forward) or ? (backward)
2

Type pattern

Enter the search pattern (smart case matching)
3

Navigate matches

  • Press n to go to next match
  • Press N to go to previous match
  • Matches are highlighted with indicators
4

Cancel search

Press <Esc> or <C-s> to exit search mode

Smart Case Matching

The --smart flag enables smart case sensitivity:
  • Lowercase pattern: Case-insensitive matching
    • /readme matches “README”, “readme”, “ReadMe”
  • Mixed case pattern: Case-sensitive matching
    • /ReadMe only matches “ReadMe”

Filter

Filter files in the current directory to show only matches:
Filter vs Find:
Hides non-matching files
  • Changes what files are displayed
  • Useful for focusing on specific file types
  • Affects operations like select all
Filtered files are temporarily hidden but not deleted. Clear the filter with <Esc> to show all files again.

Search with fd

Search for files using fd (faster alternative to find):
The search --via=fd command:
  • Recursively searches from the current directory
  • Respects .gitignore by default
  • Supports regex patterns
  • Much faster than traditional find
Example patterns:

fd Features

  • Fast: Uses parallel directory traversal
  • Smart: Ignores hidden files and .gitignore patterns
  • Colorful: Syntax-highlighted results
  • Regex: Full regular expression support

Search with ripgrep

Search file contents using ripgrep:
The search --via=rg command:
  • Searches inside file contents
  • Extremely fast, even on large codebases
  • Respects .gitignore
  • Returns files containing the pattern
Example searches:
Use when you:
  • Know the filename
  • Want to find specific file types
  • Need path-based matching

Jump with fzf

Fuzzy find files and directories using fzf:
The fzf integration provides:
  • Fuzzy matching: Type partial names in any order
  • Interactive preview: See file contents as you search
  • Fast filtering: Real-time results as you type
  • Multi-select: Select multiple files with <Tab>

fzf Workflow

1

Launch fzf

Press z to open the fzf interface
2

Type query

Enter fuzzy search terms (spaces for AND logic)
3

Navigate results

  • <Up>/<Down> or <C-j>/<C-k> to move
  • <Tab> to select multiple files
  • <Enter> to confirm
4

Result action

  • Single file: Navigates to it or opens it
  • Directory: Changes to that directory
  • Multiple selections: Toggles them in Yazi

fzf with Selection

If files are already selected when launching fzf:
This lets you:
  • Further filter your selection
  • Remove specific files from selection
  • Add to existing selection
The fzf plugin is implemented in /home/daytona/workspace/source/yazi-plugin/preset/plugins/fzf.lua:11. It uses multi-select mode (-m flag) by default.

Jump with zoxide

Jump to frequently used directories with zoxide:
zoxide features:
  • Frecency algorithm: Ranks by frequency and recency
  • Smart matching: Type partial directory names
  • Learning: Automatically tracks your navigation patterns
Example:
Stop ongoing searches:

Search Methods Comparison

Search Tips

  • fd and ripgrep are extremely fast even on large directories
  • Filter is instant since it only processes visible files
  • fzf builds an index on-demand for responsive searching

Advanced Search Examples

Example 1: Find and Select All Markdown Files

Example 2: Search Code for TODOs

Example 4: Multi-Tool Workflow

Make sure fd, ripgrep, fzf, and zoxide are installed on your system for their respective search features to work.