m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

Enhance FZF_CTRL_R_OPTS full command on preview window example

Raghuvir Kasturi
2017-09-01 20:56:04 +12:00
parent 9e6c436d54
commit fa9a072e21

@@ -48,7 +48,7 @@ export FZF_CTRL_R_OPTS='--sort --exact'
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. 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.
```sh ```sh
export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden --bind '?:toggle-preview'" export FZF_CTRL_R_OPTS="--preview 'echo {} | fold -w $(tput cols)' --preview-window down:3:hidden --bind '?:toggle-preview'"
``` ```
### Directly executing the command (CTRL-X CTRL-R) ### Directly executing the command (CTRL-X CTRL-R)