fzf Preview Windows, Key Bindings, and Actions/Replace fzf with another process

Turn the selection directly into a new foreground program.

Section: Bind actions

Replace fzf with another process

bash
bash
find . -type f | fzf --bind 'enter:become(vim {})'
Explanation

become is ideal when fzf is only a launcher and should hand control to the next process.

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 Bind actions
Run a command on the current item
Open the selected file without leaving fzf permanently.
OpenIn sheetbashsame section
Select all items with a key binding
Bind a key to select all results in multi-select mode.
OpenIn sheetbashsame section
Clear all selections
Bind a key to deselect all marked entries.
OpenIn sheetbashsame section
Change the prompt dynamically
Update the prompt based on a key or event.
OpenIn sheetbashsame section
Update the header dynamically
Modify informational text in response to events.
OpenIn sheetbashsame section
Preview file contents with bat
Render a syntax-highlighted preview for files.