From fa9a072e2133163e7fc53e96183f813ed26c1aeb Mon Sep 17 00:00:00 2001 From: Raghuvir Kasturi Date: Fri, 1 Sep 2017 20:56:04 +1200 Subject: [PATCH] Enhance FZF_CTRL_R_OPTS full command on preview window example --- Configuring-shell-key-bindings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuring-shell-key-bindings.md b/Configuring-shell-key-bindings.md index bc951a2..03ad2fc 100644 --- a/Configuring-shell-key-bindings.md +++ b/Configuring-shell-key-bindings.md @@ -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)