Update README.md (#2321)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- Correct spelling/grammar
authored by Vlad Doster · committed by GitHub · parent 9ddf5c7 · Browse files · 1 file·+16 added−16 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+16 added−16 removed
- other:+16 added−16 removed
Provenance
- Commit
c611573- Tree
1a8c7f5- Author
Vlad Doster <mvdoster@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
9ddf5c7
1 file changed+16 added−16 removed
modified:README.md+16 added-16 removed
15 unmodified lines16 - Blazingly fast17 - The most comprehensive feature set18 - Flexible layout19 - Batteries included20- - Vim/Neovim plugin, key bindings and fuzzy auto-completion20+ - Vim/Neovim plugin, key bindings, and fuzzy auto-completion21 22 Table of Contents23 -----------------24 140 unmodified lines165 166 Upgrading fzf167 -------------168 169-fzf is being actively developed and you might want to upgrade it once in a169+fzf is being actively developed, and you might want to upgrade it once in a170 while. Please follow the instruction below depending on the installation171 method used.172 173 - git: `cd ~/.fzf && git pull && ./install`42 unmodified lines216 ```sh217 vim $(fzf --height 40%)218 ```219 220-Also check out `--reverse` and `--layout` options if you prefer220+Also, check out `--reverse` and `--layout` options if you prefer221 "top-down" layout instead of the default "bottom-up" layout.222 223 ```sh224 vim $(fzf --height 40% --reverse)105 unmodified lines330 - `ALT-C` - cd into the selected directory331 - Set `FZF_ALT_C_COMMAND` to override the default command332 - Set `FZF_ALT_C_OPTS` to pass additional options333 334-If you're on a tmux session, you can start fzf in a tmux split pane or in334+If you're on a tmux session, you can start fzf in a tmux split-pane or in335 a tmux popup window by setting `FZF_TMUX_OPTS` (e.g. `-d 40%`).336 See `fzf-tmux --help` for available options.337 338 More tips can be found on [the wiki page](https://github.com/junegunn/fzf/wiki/Configuring-shell-key-bindings).3 unmodified lines342 343 #### Files and directories344 345 Fuzzy completion for files and directories can be triggered if the word before346-the cursor ends with the trigger sequence which is by default `**`.346+the cursor ends with the trigger sequence, which is by default `**`.347 348 - `COMMAND [DIRECTORY/][FUZZY_PATTERN]**<TAB>`349 350 ```sh351-# Files under current directory351+# Files under the current directory352 # - You can select multiple items with TAB key353 vim **<TAB>354 355 # Files under parent directory15 unmodified lines371 372 #### Process IDs373 374 Fuzzy completion for PIDs is provided for kill command. In this case,375-there is no trigger sequence, just press tab key after kill command.375+there is no trigger sequence; just press the tab key after the kill command.376 377 ```sh378 # Can select multiple processes with <TAB> or <Shift-TAB> keys379 kill -9 <TAB>380 ```381 382 #### Host names383 384-For ssh and telnet commands, fuzzy completion for host names is provided. The384+For ssh and telnet commands, fuzzy completion for hostnames is provided. The385 names are extracted from /etc/hosts and ~/.ssh/config.386 387 ```sh388 ssh **<TAB>79 unmodified lines468 ```469 470 - The arguments before `--` are the options to fzf.471 - After `--`, simply pass the original completion arguments unchanged (`"$@"`).472-- Then write a set of commands that generates the completion candidates and472+- Then, write a set of commands that generates the completion candidates and473 feed its output to the function using process substitution (`< <(...)`).474 475 zsh will automatically pick up the function using the naming convention but in476-bash you have to manually associate the function with the command using476+bash you have to manually associate the function with the command using the477 `complete` command.478 479 ```sh480 [ -n "$BASH" ] && complete -F _fzf_complete_doge -o default -o bashdefault doge27 unmodified lines508 ### Performance509 510 fzf is fast and is [getting even faster][perf]. Performance should not be511 a problem in most use cases. However, you might want to be aware of the512-options that affect the performance.512+options that affect performance.513 514-- `--ansi` tells fzf to extract and parse ANSI color codes in the input and it514+- `--ansi` tells fzf to extract and parse ANSI color codes in the input, and it515 makes the initial scanning slower. So it's not recommended that you add it516 to your `$FZF_DEFAULT_OPTS`.517-- `--nth` makes fzf slower as fzf has to tokenize each line.517+- `--nth` makes fzf slower because it has to tokenize each line.518 - `--with-nth` makes fzf slower as fzf has to tokenize and reassemble each519 line.520 - If you absolutely need better performance, you can consider using521 `--algo=v1` (the default being `v2`) to make fzf use a faster greedy40 unmodified lines562 563 #### 3. Interactive ripgrep integration564 565 The following example uses fzf as the selector interface for ripgrep. We bound566-`reload` action to `change` event, so every time you type on fzf, ripgrep566+`reload` action to `change` event, so every time you type on fzf, the ripgrep567 process will restart with the updated query string denoted by the placeholder568 expression `{q}`. Also, note that we used `--phony` option so that fzf doesn't569 perform any secondary filtering.570 17 unmodified lines588 Your `$SHELL` is used to execute the command with `$SHELL -c COMMAND`.589 The window can be scrolled using the mouse or custom key bindings.590 591 ```bash592-# {} is replaced to the single-quoted string of the focused line592+# {} is replaced with the single-quoted string of the focused line593 fzf --preview 'cat {}'594 ```595 596 Preview window supports ANSI colors, so you can use any program that63 unmodified lines660 # To apply the command to CTRL-T as well661 export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"662 ```663 664-If you want the command to follow symbolic links, and don't want it to exclude664+If you want the command to follow symbolic links and don't want it to exclude665 hidden files, use the following command:666 667 ```sh668 export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'33 unmodified lines