mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -05:00
Updated Configuring shell key bindings (markdown)
@@ -13,15 +13,15 @@ export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat
|
|||||||
|
|
||||||
### Sorting and exact matching
|
### 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
|
```sh
|
||||||
export FZF_CTRL_R_OPTS='--sort --exact'
|
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
|
```sh
|
||||||
export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden --bind '?:toggle-preview'"
|
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
|
### 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
|
```sh
|
||||||
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
|
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
|
||||||
|
|||||||
Reference in New Issue
Block a user