Changing the display mode
The key bindings use --height 40% option to display fzf finder below your cursor, but it's configurable.
If you prefer to run fzf in fullscreen mode, add --no-height to your $FZF_DEFAULT_OPTS like follows:
CTRL-T
Preview
You can preview the content of the file under the cursor by setting --preview option.
Using --select-1 and/or --exit-0
--select-1 automatically selects the item if there's only one so that you don't have to press enter key. Likewise, --exit-0 automatically exits when the list is empty. These options are also useful in FZF_ALT_C_OPTS.
CTRL-R
Sorting and exact matching
Sorting by relevance is enabled by default. You can dynamically switch to chronological order by pressing CTRL-R again, but if you like it to be enabled by default, add --no-sort to FZF_CTRL_R_OPTS. Likewise, if you prefer to use exact (non-fuzzy) matching, add --exact.
Full command on preview window
Commands that are too long are not fully visible on screen. We can use --preview option to display the full command on the preview window. In the following example, we bind ? key for toggling the preview window.
Directly executing the command (CTRL-X CTRL-R)
zsh
bash
Dynamically choose to execute or edit
There is an open issue for this; #477. We have a solution for zsh, but not for bash.
ALT-C
Preview
The following example uses tree command to show the entries of the directory.