Update the prompt based on a key or event.
Section: Bind actions
Change the prompt dynamically
bash
bash
printf '%s\n' files dirs | fzf --bind 'ctrl-f:change-prompt(Files> ),ctrl-d:change-prompt(Dirs> )'Explanation
Useful in advanced menus that switch modes.
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
Select all items with a key binding
Bind a key to select all results in multi-select mode.
Run a command on the current item
Open the selected file without leaving fzf permanently.
Replace fzf with another process
Turn the selection directly into a new foreground program.
Update the header dynamically
Modify informational text in response to events.