From 4ad69d663d2690a580a9cd54a271f3e923c84d8b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 9 Oct 2016 04:18:31 +0900 Subject: [PATCH] Updated Configuring shell key bindings (markdown) --- Configuring-shell-key-bindings.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Configuring-shell-key-bindings.md b/Configuring-shell-key-bindings.md index 1576ca2..cabc126 100644 --- a/Configuring-shell-key-bindings.md +++ b/Configuring-shell-key-bindings.md @@ -13,15 +13,15 @@ export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat ### Sorting and exact matching -Sorting is disabled by default to respect chronological ordering. You can dynamically enable sorting by pressing `CTRL-R` again, but if you like it to be enabled by default you can add `--sort` to `FZF_CTRL_R_OPTS`. Also, if you prefer to use exact (non-fuzzy) matching, add `--exact`. +Sorting is disabled by default to respect chronological ordering. You can dynamically enable sorting by pressing `CTRL-R` again, but if you like it to be enabled by default, add `--sort` to `FZF_CTRL_R_OPTS`. Likewise, if you prefer to use exact (non-fuzzy) matching, add `--exact`. ```sh export FZF_CTRL_R_OPTS='--sort --exact' ``` -### Preview +### 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 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 export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden --bind '?:toggle-preview'" @@ -54,7 +54,7 @@ There is an open issue for this; [#477](https://github.com/junegunn/fzf/issues/4 ### Preview -Use `tree` command to show the content of the directory on the preview window. +The following example uses `tree` command to show the entries of the directory. ```sh export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"