@@ -33,23 +33,23 @@ Table of Contents
33
33
* [ Upgrading fzf] ( #upgrading-fzf )
34
34
* [ Building fzf] ( #building-fzf )
35
35
* [ Usage] ( #usage )
36
- * [ Using the finder] ( #using-the-finder )
37
- * [ Layout] ( #layout )
38
- * [ Search syntax] ( #search-syntax )
39
- * [ Environment variables] ( #environment-variables )
40
- * [ Options] ( #options )
41
- * [ Demo] ( #demo )
36
+ * [ Using the finder] ( #using-the-finder )
37
+ * [ Layout] ( #layout )
38
+ * [ Search syntax] ( #search-syntax )
39
+ * [ Environment variables] ( #environment-variables )
40
+ * [ Options] ( #options )
41
+ * [ Demo] ( #demo )
42
42
* [ Examples] ( #examples )
43
43
* [ ` fzf-tmux ` script] ( #fzf-tmux-script )
44
44
* [ Key bindings for command-line] ( #key-bindings-for-command-line )
45
45
* [ Fuzzy completion for bash and zsh] ( #fuzzy-completion-for-bash-and-zsh )
46
- * [ Files and directories] ( #files-and-directories )
47
- * [ Process IDs] ( #process-ids )
48
- * [ Host names] ( #host-names )
49
- * [ Environment variables / Aliases] ( #environment-variables--aliases )
50
- * [ Settings] ( #settings )
51
- * [ Supported commands] ( #supported-commands )
52
- * [ Custom fuzzy completion] ( #custom-fuzzy-completion )
46
+ * [ Files and directories] ( #files-and-directories )
47
+ * [ Process IDs] ( #process-ids )
48
+ * [ Host names] ( #host-names )
49
+ * [ Environment variables / Aliases] ( #environment-variables--aliases )
50
+ * [ Settings] ( #settings )
51
+ * [ Supported commands] ( #supported-commands )
52
+ * [ Custom fuzzy completion] ( #custom-fuzzy-completion )
53
53
* [ Vim plugin] ( #vim-plugin )
54
54
* [ Advanced topics] ( #advanced-topics )
55
55
* [ Performance] ( #performance )
@@ -202,7 +202,7 @@ files excluding hidden ones. (You can override the default command with
202
202
vim $( fzf)
203
203
```
204
204
205
- #### Using the finder
205
+ ### Using the finder
206
206
207
207
- ` CTRL-K ` / ` CTRL-J ` (or ` CTRL-P ` / ` CTRL-N ` ) to move cursor up and down
208
208
- ` Enter ` key to select the item, ` CTRL-C ` / ` CTRL-G ` / ` ESC ` to exit
@@ -211,7 +211,7 @@ vim $(fzf)
211
211
- Mouse: scroll, click, double-click; shift-click and shift-scroll on
212
212
multi-select mode
213
213
214
- #### Layout
214
+ ### Layout
215
215
216
216
fzf by default starts in fullscreen mode, but you can make it start below the
217
217
cursor with ` --height ` option.
@@ -234,7 +234,7 @@ default. For example,
234
234
export FZF_DEFAULT_OPTS=' --height 40% --layout=reverse --border'
235
235
```
236
236
237
- #### Search syntax
237
+ ### Search syntax
238
238
239
239
Unless otherwise specified, fzf starts in "extended-search mode" where you can
240
240
type in multiple search terms delimited by spaces. e.g. `^music .mp3$ sbtrkt
@@ -262,7 +262,7 @@ or `py`.
262
262
^core go$ | rb$ | py$
263
263
```
264
264
265
- #### Environment variables
265
+ ### Environment variables
266
266
267
267
- ` FZF_DEFAULT_COMMAND `
268
268
- Default command to use when input is tty
@@ -278,11 +278,11 @@ or `py`.
278
278
- Default options
279
279
- e.g. ` export FZF_DEFAULT_OPTS="--layout=reverse --inline-info" `
280
280
281
- #### Options
281
+ ### Options
282
282
283
283
See the man page (` man fzf ` ) for the full list of options.
284
284
285
- #### Demo
285
+ ### Demo
286
286
If you learn by watching videos, check out this screencast by [ @samoshkin ] ( https://github.com/samoshkin ) to explore ` fzf ` features.
287
287
288
288
<a title =" fzf - command-line fuzzy finder " href =" https://www.youtube.com/watch?v=qgG5Jhi_Els " >
@@ -371,7 +371,7 @@ More tips can be found on [the wiki page](https://github.com/junegunn/fzf/wiki/C
371
371
Fuzzy completion for bash and zsh
372
372
---------------------------------
373
373
374
- #### Files and directories
374
+ ### Files and directories
375
375
376
376
Fuzzy completion for files and directories can be triggered if the word before
377
377
the cursor ends with the trigger sequence, which is by default `**`.
@@ -400,7 +400,7 @@ cd **<TAB>
400
400
cd ~/github/fzf**<TAB>
401
401
```
402
402
403
- #### Process IDs
403
+ ### Process IDs
404
404
405
405
Fuzzy completion for PIDs is provided for kill command.
406
406
@@ -409,7 +409,7 @@ Fuzzy completion for PIDs is provided for kill command.
409
409
kill -9 **<TAB>
410
410
```
411
411
412
- #### Host names
412
+ ### Host names
413
413
414
414
For ssh and telnet commands, fuzzy completion for hostnames is provided. The
415
415
names are extracted from /etc/hosts and ~/.ssh/config.
@@ -419,15 +419,15 @@ ssh **<TAB>
419
419
telnet **<TAB>
420
420
```
421
421
422
- #### Environment variables / Aliases
422
+ ### Environment variables / Aliases
423
423
424
424
```sh
425
425
unset **<TAB>
426
426
export **<TAB>
427
427
unalias **<TAB>
428
428
```
429
429
430
- #### Settings
430
+ ### Settings
431
431
432
432
```sh
433
433
# Use ~~ as the trigger sequence instead of the default **
@@ -465,7 +465,7 @@ _fzf_comprun() {
465
465
}
466
466
```
467
467
468
- #### Supported commands
468
+ ### Supported commands
469
469
470
470
On bash, fuzzy completion is enabled only for a predefined set of commands
471
471
(`complete | grep _fzf` to see the list). But you can enable it for other
@@ -477,7 +477,7 @@ _fzf_setup_completion path ag git kubectl
477
477
_fzf_setup_completion dir tree
478
478
```
479
479
480
- #### Custom fuzzy completion
480
+ ### Custom fuzzy completion
481
481
482
482
_**(Custom completion API is experimental and subject to change)**_
483
483
0 commit comments