mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 07:43:39 -05:00
Enhance FZF_CTRL_R_OPTS full command on preview window example
@@ -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.
|
||||
|
||||
```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)
|
||||
|
||||
Reference in New Issue
Block a user