mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 15:53:39 -05:00
Updated Configuring shell key bindings (markdown)
@@ -13,7 +13,7 @@ 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 dynamically toggle sorting by pressing `CTRL-R` again, but if you like to enable sorting by default you can add `--sort` to `FZF_CTRL_R_OPTS`. Also, if you prefer to use exact 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 you can add `--sort` to `FZF_CTRL_R_OPTS`. Also, if you prefer to use exact (non-fuzzy) matching, add `--exact`.
|
||||
|
||||
```sh
|
||||
export FZF_CTRL_R_OPTS='--sort --exact'
|
||||
@@ -21,7 +21,7 @@ export FZF_CTRL_R_OPTS='--sort --exact'
|
||||
|
||||
### Preview
|
||||
|
||||
Commands that are too long are not fully visible on screen. You can use `--preview` option to see the full command on the preview window. In the following example, we bind `?` key to toggle 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.
|
||||
|
||||
```sh
|
||||
export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden --bind '?:toggle-preview'"
|
||||
|
||||
Reference in New Issue
Block a user