Fix TOC
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Junegunn Choi · committed by Junegunn Choi · parent 57c066f · Browse files · 1 file·+26 added−26 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+26 added−26 removed
- other:+26 added−26 removed
Provenance
- Commit
acccf8a- Tree
4abcd8a- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
57c066f
1 file changed+26 added−26 removed
modified:README.md+26 added-26 removed
31 unmodified lines32 * [As Vim plugin](#as-vim-plugin)33 * [Upgrading fzf](#upgrading-fzf)34 * [Building fzf](#building-fzf)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 * [Examples](#examples)43 * [`fzf-tmux` script](#fzf-tmux-script)44 * [Key bindings for command-line](#key-bindings-for-command-line)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 * [Vim plugin](#vim-plugin)54 * [Advanced topics](#advanced-topics)55 * [Performance](#performance)56 * [Executing external programs](#executing-external-programs)144 unmodified lines201 ```sh202 vim $(fzf)203 ```204 205-#### Using the finder205+### Using the finder206 207 - `CTRL-K` / `CTRL-J` (or `CTRL-P` / `CTRL-N`) to move cursor up and down208 - `Enter` key to select the item, `CTRL-C` / `CTRL-G` / `ESC` to exit209 - On multi-select mode (`-m`), `TAB` and `Shift-TAB` to mark multiple items210 - Emacs style key bindings211 - Mouse: scroll, click, double-click; shift-click and shift-scroll on212 multi-select mode213 214-#### Layout214+### Layout215 216 fzf by default starts in fullscreen mode, but you can make it start below the217 cursor with `--height` option.218 14 unmodified lines233 ```sh234 export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'235 ```236 237-#### Search syntax237+### Search syntax238 239 Unless otherwise specified, fzf starts in "extended-search mode" where you can240 type in multiple search terms delimited by spaces. e.g. `^music .mp3$ sbtrkt241 !fire`19 unmodified lines261 ```262 ^core go$ | rb$ | py$263 ```264 265-#### Environment variables265+### Environment variables266 267 - `FZF_DEFAULT_COMMAND`268 - Default command to use when input is tty269 - e.g. `export FZF_DEFAULT_COMMAND='fd --type f'`7 unmodified lines277 - `FZF_DEFAULT_OPTS`278 - Default options279 - e.g. `export FZF_DEFAULT_OPTS="--layout=reverse --inline-info"`280 281-#### Options281+### Options282 283 See the man page (`man fzf`) for the full list of options.284 285-#### Demo285+### Demo286 If you learn by watching videos, check out this screencast by [@samoshkin](https://github.com/samoshkin) to explore `fzf` features.287 288 <a title="fzf - command-line fuzzy finder" href="https://www.youtube.com/watch?v=qgG5Jhi_Els">289 <img src="https://i.imgur.com/vtG8olE.png" width="640">80 unmodified lines370 371 Fuzzy completion for bash and zsh372 ---------------------------------373 374-#### Files and directories374+### Files and directories375 376 Fuzzy completion for files and directories can be triggered if the word before377 the cursor ends with the trigger sequence, which is by default `**`.378 20 unmodified lines399 # Directories under ~/github that match `fzf`400 cd ~/github/fzf**<TAB>401 ```402 403-#### Process IDs403+### Process IDs404 405 Fuzzy completion for PIDs is provided for kill command.406 407 ```sh408 # Can select multiple processes with <TAB> or <Shift-TAB> keys409 kill -9 **<TAB>410 ```411 412-#### Host names412+### Host names413 414 For ssh and telnet commands, fuzzy completion for hostnames is provided. The415 names are extracted from /etc/hosts and ~/.ssh/config.416 1 unmodified line418 ssh **<TAB>419 telnet **<TAB>420 ```421 422-#### Environment variables / Aliases422+### Environment variables / Aliases423 424 ```sh425 unset **<TAB>426 export **<TAB>427 unalias **<TAB>428 ```429 430-#### Settings430+### Settings431 432 ```sh433 # Use ~~ as the trigger sequence instead of the default **434 export FZF_COMPLETION_TRIGGER='~~'29 unmodified lines464 esac465 }466 ```467 468-#### Supported commands468+### Supported commands469 470 On bash, fuzzy completion is enabled only for a predefined set of commands471 (`complete | grep _fzf` to see the list). But you can enable it for other472 commands as well by using `_fzf_setup_completion` helper function.3 unmodified lines476 _fzf_setup_completion path ag git kubectl477 _fzf_setup_completion dir tree478 ```479 480-#### Custom fuzzy completion480+### Custom fuzzy completion481 482 _**(Custom completion API is experimental and subject to change)**_483 484 For a command named _"COMMAND"_, define `_fzf_complete_COMMAND` function using241 unmodified lines