mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -05:00
Updated Configuring shell key bindings (markdown)
@@ -9,6 +9,14 @@ You can preview the content of the file under the cursor by setting `--preview`
|
|||||||
export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
|
export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Using `--select-1` and/or `--exit-0`
|
||||||
|
|
||||||
|
```sh
|
||||||
|
export FZF_CTRL_T_OPTS="--select-1 --exit-0"
|
||||||
|
```
|
||||||
|
|
||||||
|
`--select-1` automatically selects the item if there's only one so that you don't have to press enter key. Likewise, `--exit-0` automatically exits when the list is empty. These options are also useful in `FZF_ALT_C_OPTS`.
|
||||||
|
|
||||||
## `CTRL-R`
|
## `CTRL-R`
|
||||||
|
|
||||||
### Sorting and exact matching
|
### Sorting and exact matching
|
||||||
|
|||||||
Reference in New Issue
Block a user