[vimdoc] Replace unicode figure space (U+2007) with regular space
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Related: https://github.com/junegunn/fzf.vim/pull/1507 Thanks to @balki
authored by Junegunn Choi · committed by Junegunn Choi · parent 4490b2d · Browse files · 1 file·+18 added−18 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+18 added−18 removed
- other:+18 added−18 removed
Provenance
- Commit
3982c9a- Tree
0085a1e- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
4490b2d
1 file changed+18 added−18 removed
modified:doc/fzf.txt+18 added-18 removed
1-fzf.txt fzf Last change: Aug 12 20231+fzf.txt fzf Last change: September 17 20232 FZF - TABLE OF CONTENTS *fzf* *fzf-toc*3 ==============================================================================4 5 FZF Vim integration |fzf-vim-integration|67 unmodified lines73 74 The Vim plugin of fzf provides two core functions, and `:FZF` command which is75 the basic file selector command built on top of them.76 77- 1. `fzf#run([spec dict])`77+ 1. `fzf#run([spec dict])`78 - Starts fzf inside Vim with the given spec79- - `:call fzf#run({'source': 'ls'})`80- 2. `fzf#wrap([spec dict]) -> (dict)`79+ - `:call fzf#run({'source': 'ls'})`80+ 2. `fzf#wrap([spec dict]) -> (dict)`81 - Takes a spec for `fzf#run` and returns an extended version of it with82 additional options for addressing global preferences (`g:fzf_xxx`)83- - `:echo fzf#wrap({'source': 'ls'})`83+ - `:echo fzf#wrap({'source': 'ls'})`84 - We usually wrap a spec with `fzf#wrap` before passing it to `fzf#run`85- - `:call fzf#run(fzf#wrap({'source': 'ls'}))`86- 3. `:FZF [fzf_options string] [path string]`85+ - `:call fzf#run(fzf#wrap({'source': 'ls'}))`86+ 3. `:FZF [fzf_options string] [path string]`87 - Basic fuzzy file selector88 - A reference implementation for those who don't want to write VimScript to89 implement custom commands90 - If you're looking for more such commands, check out {fzf.vim}{2} project.136 unmodified lines227 `info` | Info line (match counters)228 `spinner` | Streaming input indicator229 `query` | Query string230 `disabled` | Query string when search is disabled231- `prompt` | Prompt before query ( `> ` )231+ `prompt` | Prompt before query ( `> ` )232 `pointer` | Pointer to the current line ( `>` )233 ----------------------------+------------------------------------------------------234 - `component` specifies the component (`fg` / `bg`) from which to extract the235 color when considering each of the following highlight groups236- - `group1 [, group2, ...]` is a list of highlight groups that are searched (in236+ - `group1 [, group2, ...]` is a list of highlight groups that are searched (in237 order) for a matching color definition238 239 For example, consider the following specification:240 >32 unmodified lines273 call fzf#run({'sink': 'tabedit'})274 <275 Instead of using the default find command, you can use any shell command as276 the source. The following example will list the files managed by git. It's277-equivalent to running `git ls-files | fzf` on shell.277+equivalent to running `git ls-files | fzf` on shell.278 >279 call fzf#run({'source': 'git ls-files', 'sink': 'e'})280 <281 fzf options can be specified as `options` entry in spec dictionary.19 unmodified lines301 302 ---------------------------+---------------+----------------------------------------------------------------------303 Option name | Type | Description ~304 ---------------------------+---------------+----------------------------------------------------------------------305- `source` | string | External command to generate input to fzf (e.g. `find .` )305+ `source` | string | External command to generate input to fzf (e.g. `find .` )306 `source` | list | Vim list as input to fzf307 `sink` | string | Vim command to handle the selected item (e.g. `e` , `tabe` )308 `sink` | funcref | Reference to function to process each selected item309 `sinklist` (or `sink*` ) | funcref | Similar to `sink` , but takes the list of output lines at once310 `options` | string/list | Options to fzf311 `dir` | string | Working directory312 `up` / `down` / `left` / `right` | number/string | (Layout) Window position and size (e.g. `20` , `50%` )313 `tmux` | string | (Layout) fzf-tmux options (e.g. `-p90%,60%` )314- `window` (Vim 8 / Neovim) | string | (Layout) Command to open fzf window (e.g. `vertical aboveleft 30new` )315- `window` (Vim 8 / Neovim) | dict | (Layout) Popup window settings (e.g. `{'width': 0.9, 'height': 0.6}` )314+ `window` (Vim 8 / Neovim) | string | (Layout) Command to open fzf window (e.g. `vertical aboveleft 30new` )315+ `window` (Vim 8 / Neovim) | dict | (Layout) Popup window settings (e.g. `{'width': 0.9, 'height': 0.6}` )316 ---------------------------+---------------+----------------------------------------------------------------------317 318 `options` entry can be either a string or a list. For simple cases, string319 should suffice, but prefer to use list type to avoid escaping issues.28 unmodified lines348 So how can we make our custom `fzf#run` calls also respect those variables?349 Simply by "wrapping" the spec dictionary with `fzf#wrap` before passing it to350 `fzf#run`.351 352- - `fzf#wrap([name string], [spec dict], [fullscreen bool]) -> (dict)`352+ - `fzf#wrap([name string], [spec dict], [fullscreen bool]) -> (dict)`353 - All arguments are optional. Usually we only need to pass a spec354 dictionary.355 - `name` is for managing history files. It is ignored if `g:fzf_history_dir`356 is not defined.25 unmodified lines382 " On :LS!, <bang> evaluates to '!', and '!0' becomes 1383 command! -bang LS call fzf#run(fzf#wrap({'source': 'ls'}, <bang>0))384 <385 Our `:LS` command will be much more useful if we can pass a directory argument386-to it, so that something like `:LS /tmp` is possible.386+to it, so that something like `:LS /tmp` is possible.387 >388 command! -bang -complete=dir -nargs=? LS389 \ call fzf#run(fzf#wrap({'source': 'ls', 'dir': <q-args>}, <bang>0))390 <10 unmodified lines401 *fzf-global-options-supported-by-fzf#wrap*402 403 - `g:fzf_layout`404 - `g:fzf_action`405- - Works only when no custom `sink` (or `sink*`) is provided405+ - Works only when no custom `sink` (or `sinklist`) is provided406 - Having custom sink usually means that each entry is not an ordinary407 file path (e.g. name of color scheme), so we can't blindly apply the408- same strategy (i.e. `tabedit some-color-scheme` doesn't make sense)408+ same strategy (i.e. `tabedit some-color-scheme` doesn't make sense)409 - `g:fzf_colors`410 - `g:fzf_history_dir`411 412 80 unmodified lines493 < Hide statusline >___________________________________________________________~494 *fzf-hide-statusline*495 496 When fzf starts in a terminal buffer, the file type of the buffer is set to497-`fzf`. So you can set up `FileType fzf` autocmd to customize the settings of497+`fzf`. So you can set up `FileType fzf` autocmd to customize the settings of498 the window.499 500 For example, if you open fzf on the bottom on the screen (e.g. `{'down':501 '40%'}`), you might want to temporarily disable the statusline for a cleaner17 unmodified lines