fzf Basics: Search, Select, and Script Output/Open the selected file in an editor

Capture the selected value and open it with $EDITOR.

Section: Core usage

Open the selected file in an editor

bash
bash
vim "$(find . -type f | fzf)"
Explanation

Classic pattern for launching your editor on a fuzzy-selected file.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Core usage
Select files from a pipeline
Pipe any list into fzf and interactively pick a line.
OpenIn sheetbashsame section
Enable multi-select
Pick multiple lines instead of a single match.
OpenIn sheetbashsame section
Use exact matching
Turn off fuzzy matching and only match the query literally.
OpenIn sheetbashsame section
Match on specific fields
Restrict matching to selected delimited fields.
OpenIn sheetbashsame section
Transform what is displayed
Hide or reorder fields in the list without changing the selected line.
OpenIn sheetbashsame section
Set a custom field delimiter
Parse colon- or tab-delimited input cleanly.
OpenIn sheetbashsame section