mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-09-13 02:02:59 +08:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a0068127a |
@@ -201,6 +201,27 @@ let g:fzf_vim.show_key = 'ctrl-o'
|
|||||||
let g:fzf_vim.show_key = 'ctrl-o,double-click'
|
let g:fzf_vim.show_key = 'ctrl-o,double-click'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Key hints
|
||||||
|
|
||||||
|
Most commands show a footer listing the keys they bind, so you can see what
|
||||||
|
`Show`, `Open`, `HSplit` and the rest are without leaving fzf. It is fzf's
|
||||||
|
footer, so `--no-footer` hides it:
|
||||||
|
|
||||||
|
```vim
|
||||||
|
let g:fzf_vim.options = '--no-footer'
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Global fzf options
|
||||||
|
|
||||||
|
You can set fzf options for all commands with `g:fzf_vim.options`.
|
||||||
|
`g:fzf_vim.{command}_options` takes precedence over it.
|
||||||
|
|
||||||
|
For example, add `--no-footer` to hide the key hints.
|
||||||
|
|
||||||
|
```vim
|
||||||
|
let g:fzf_vim.options = '--no-footer'
|
||||||
|
```
|
||||||
|
|
||||||
#### Command-level options
|
#### Command-level options
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
|
|||||||
@@ -400,6 +400,9 @@ function! s:fzf(name, opts, extra)
|
|||||||
let extra = copy(extra)
|
let extra = copy(extra)
|
||||||
let eopts = has_key(extra, 'options') ? remove(extra, 'options') : ''
|
let eopts = has_key(extra, 'options') ? remove(extra, 'options') : ''
|
||||||
let merged = extend(copy(a:opts), extra)
|
let merged = extend(copy(a:opts), extra)
|
||||||
|
" Global fzf options
|
||||||
|
call s:merge_opts(merged, s:conf('options', []))
|
||||||
|
|
||||||
call s:merge_opts(merged, eopts)
|
call s:merge_opts(merged, eopts)
|
||||||
|
|
||||||
" Command-level fzf options
|
" Command-level fzf options
|
||||||
|
|||||||
@@ -13,6 +13,10 @@ FZF-VIM - TABLE OF CONTENTS *fzf-vim* *fzf-vim-to
|
|||||||
Configuration options of the base plugin |fzf-vim-configuration-options-of-the-base-plugin|
|
Configuration options of the base plugin |fzf-vim-configuration-options-of-the-base-plugin|
|
||||||
Configuration options for fzf.vim |fzf-vim-configuration-options-for-fzf-vim|
|
Configuration options for fzf.vim |fzf-vim-configuration-options-for-fzf-vim|
|
||||||
Preview window |fzf-vim-preview-window|
|
Preview window |fzf-vim-preview-window|
|
||||||
|
Paste key |fzf-vim-paste-key|
|
||||||
|
Show key |fzf-vim-show-key|
|
||||||
|
Key hints |fzf-vim-key-hints|
|
||||||
|
Global fzf options |fzf-vim-global-fzf-options|
|
||||||
Command-level options |fzf-vim-command-level-options|
|
Command-level options |fzf-vim-command-level-options|
|
||||||
Command-level fzf options |fzf-vim-command-level-fzf-options|
|
Command-level fzf options |fzf-vim-command-level-fzf-options|
|
||||||
List type to handle multiple selections |fzf-vim-list-type-to-handle-multiple-selections|
|
List type to handle multiple selections |fzf-vim-list-type-to-handle-multiple-selections|
|
||||||
@@ -269,6 +273,28 @@ another key or turn it off to keep a binding of your own.
|
|||||||
let g:fzf_vim.show_key = 'ctrl-o,double-click'
|
let g:fzf_vim.show_key = 'ctrl-o,double-click'
|
||||||
<
|
<
|
||||||
|
|
||||||
|
Key hints~
|
||||||
|
*fzf-vim-key-hints*
|
||||||
|
|
||||||
|
Most commands show a footer listing the keys they bind, so you can see what
|
||||||
|
Show, Open, HSplit and the rest are without leaving fzf. It is fzf's footer,
|
||||||
|
so `--no-footer` hides it:
|
||||||
|
>
|
||||||
|
let g:fzf_vim.options = '--no-footer'
|
||||||
|
<
|
||||||
|
|
||||||
|
Global fzf options~
|
||||||
|
*fzf-vim-global-fzf-options*
|
||||||
|
*g:fzf_vim.options*
|
||||||
|
|
||||||
|
You can set fzf options for all commands with `g:fzf_vim.options`.
|
||||||
|
`g:fzf_vim.{command}_options` takes precedence over it.
|
||||||
|
|
||||||
|
For example, add `--no-footer` to hide the key hints.
|
||||||
|
>
|
||||||
|
let g:fzf_vim.options = '--no-footer'
|
||||||
|
<
|
||||||
|
|
||||||
Command-level options~
|
Command-level options~
|
||||||
*fzf-vim-command-level-options*
|
*fzf-vim-command-level-options*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user