Skip to content
Myr

Typo & grammar fixes in README (#1413)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Muehlhaeuser · committed by Junegunn Choi · parent b46227d · Browse files · 1 file+13 added−13 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+13 added−13 removed

  • other:+13 added−13 removed

1 file+13 added−13 removed

modified:README.md+13 added-13 removed
125 unmodified lines
126"git clone") and enabling it on Vim (adding it to `&runtimepath`), you can use127vim-plug to do both.128129```vim130" PlugInstall and PlugUpdate will clone fzf in ~/.fzf and run install script130" PlugInstall and PlugUpdate will clone fzf in ~/.fzf and run the install script131Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }132 " Both options are optional. You don't have to install fzf in ~/.fzf133 " and you don't have to run install script if you use fzf only in Vim.133 " and you don't have to run the install script if you use fzf only in Vim.134```135136### Arch Linux137
173 unmodified lines
311```sh312fzf --height 40%313```314315Key bindings for command line315Key bindings for command-line316-----------------------------317318The install script will setup the following key bindings for bash, zsh, and319fish.320321- `CTRL-T` - Paste the selected files and directories onto the command line321- `CTRL-T` - Paste the selected files and directories onto the command-line322 - Set `FZF_CTRL_T_COMMAND` to override the default command323 - Set `FZF_CTRL_T_OPTS` to pass additional options324- `CTRL-R` - Paste the selected command from history onto the command line324- `CTRL-R` - Paste the selected command from history onto the command-line325 - If you want to see the commands in chronological order, press `CTRL-R`326 again which toggles sorting by relevance327 - Set `FZF_CTRL_R_OPTS` to pass additional options328- `ALT-C` - cd into the selected directory
43 unmodified lines
372```373374#### Process IDs375376Fuzzy completion for PIDs is provided for kill command. In this case376Fuzzy completion for PIDs is provided for kill command. In this case,377there is no trigger sequence, just press tab key after kill command.378379```sh380# Can select multiple processes with <TAB> or <Shift-TAB> keys
44 unmodified lines
425#### Supported commands426427On bash, fuzzy completion is enabled only for a predefined set of commands428(`complete | grep _fzf` to see the list). But you can enable it for other429commands as well like follows.429commands as well as follows.430431```sh432complete -F _fzf_path_completion -o default -o bashdefault ag433complete -F _fzf_dir_completion -o default -o bashdefault tree
8 unmodified lines
442---------------443444### Performance445446fzf is fast, and is [getting even faster][perf]. Performance should not be446fzf is fast and is [getting even faster][perf]. Performance should not be447a problem in most use cases. However, you might want to be aware of the448options that affect the performance.449450- `--ansi` tells fzf to extract and parse ANSI color codes in the input and it
2 unmodified lines
453- `--nth` makes fzf slower as fzf has to tokenize each line.454- `--with-nth` makes fzf slower as fzf has to tokenize and reassemble each455 line.456- If you absolutely need better performance, you can consider using457 `--algo=v1` (the default being `v2`) to make fzf use faster greedy457 `--algo=v1` (the default being `v2`) to make fzf use a faster greedy458 algorithm. However, this algorithm is not guaranteed to find the optimal459 ordering of the matches and is not recommended.460461[perf]: https://junegunn.kr/images/fzf-0.17.0.png
12 unmodified lines
474See *KEY BINDINGS* section of the man page for details.475476### Preview window477478When `--preview` option is set, fzf automatically starts external process with478When `--preview` option is set, fzf automatically starts an external process with479the current line as the argument and shows the result in the split window.480481```bash482# {} is replaced to the single-quoted string of the focused line483fzf --preview 'cat {}'484```485486Since preview window is updated only after the process is complete, it's486Since the preview window is updated only after the process is complete, it's487important that the command finishes quickly.488489```bash490# Use head instead of cat so that the command doesn't take too long to finish
90 unmodified lines
581fzf -m | while read -l r; set result $result $r; end; and vim $result582```583584The globbing system is different in fish and thus `**` completion will not work.585However, the `CTRL-T` command will use the last token on the commandline as the585However, the `CTRL-T` command will use the last token on the command-line as the586root folder for the recursive search. For instance, hitting `CTRL-T` at the end587of the following commandline587of the following command-line588589```sh590ls /var/591```
22 unmodified lines