diff --git a/autoload/SpaceVim/layers/fzf.vim b/autoload/SpaceVim/layers/fzf.vim index b230d12a5..005576320 100644 --- a/autoload/SpaceVim/layers/fzf.vim +++ b/autoload/SpaceVim/layers/fzf.vim @@ -140,7 +140,9 @@ function! s:defind_fuzzy_finder() abort \ 'Definition: ' . s:file . ':' . lnum, \ ] \ ] + nnoremap f :FzfMenu CustomKeyMaps + let lnum = expand('') + s:unite_lnum - 4 let g:_spacevim_mappings.f['[SPC]'] = ['FzfMenu CustomKeyMaps', \ 'fuzzy find custom key bindings', \ [ @@ -149,6 +151,17 @@ function! s:defind_fuzzy_finder() abort \ 'Definition: ' . s:file . ':' . lnum, \ ] \ ] + + nnoremap fp :FzfMenu AddedPlugins + let lnum = expand('') + s:unite_lnum - 4 + let g:_spacevim_mappings.f.p = ['FzfMenu AddedPlugins', + \ 'fuzzy find vim packages', + \ [ + \ '[Leader f p] is to fuzzy find vim packages installed in SpaceVim', + \ '', + \ 'Definition: ' . s:file . ':' . lnum, + \ ] + \ ] endfunction command! FzfColors call colors() diff --git a/docs/documentation.md b/docs/documentation.md index fa8e69c6c..b102471ae 100644 --- a/docs/documentation.md +++ b/docs/documentation.md @@ -765,16 +765,24 @@ endfunction ### Fuzzy finder -SpaceVim provides five kinds of fuzzy finder, each of them is configured in a layer(`unite`, `denite`, `leaderf`, `ctrlp` and `fzf` layer). +SpaceVim provides five fuzzy find tools, each of them is configured in a layer(`unite`, `denite`, `leaderf`, `ctrlp` and `fzf` layer). These layers have the same key bindings and features. But they need different dependencies. Users only need to load one of these layers, they will be able to get these features. +for example, load the denite layer: + +```toml +[[layers]] + name = "denite" +``` + **Key bindings** | Key bindings | Discription | | -------------------- | ----------------------------- | | ` f ` | Fuzzy find menu:CustomKeyMaps | +| ` f p` | Fuzzy find menu:AddedPlugins | | ` f e` | Fuzzy find register | | ` f h` | Fuzzy find history/yank | | ` f j` | Fuzzy find jump, change | @@ -784,20 +792,21 @@ Users only need to load one of these layers, they will be able to get these feat | ` f q` | Fuzzy find quick fix | | ` f r` | Resumes Unite window | -But in current version of SpaceVim, leaderf/ctrlp and fzf layer have not be finished. +**Differences between these layers** -| Feature | unite | denite | leaderf | ctrlp | fzf | -| ------------------ | ----- | ------ | ------- | ----- | --- | -| menu CustomKeyMaps | yes | yes | no | no | no | -| register | yes | yes | no | yes | yes | -| file | yes | yes | yes | yes | yes | -| yank history | yes | yes | no | no | yes | -| jump | yes | yes | no | yes | yes | -| location list | yes | yes | no | no | yes | -| outline | yes | yes | yes | yes | yes | -| message | yes | yes | no | no | yes | -| quickfix list | yes | yes | no | yes | yes | -| resume windows | yes | yes | no | no | no | +| Feature | denite | unite | leaderf | ctrlp | fzf | +| ------------------ | :----: | :---: | :-----: | :---: | --- | +| CustomKeyMaps menu | yes | yes | no | no | no | +| AddedPlugins menu | yes | yes | no | no | no | +| register | yes | yes | no | yes | yes | +| file | yes | yes | yes | yes | yes | +| yank history | yes | yes | no | no | yes | +| jump | yes | yes | no | yes | yes | +| location list | yes | yes | no | no | yes | +| outline | yes | yes | yes | yes | yes | +| message | yes | yes | no | no | yes | +| quickfix list | yes | yes | no | yes | yes | +| resume windows | yes | yes | no | no | no | **Key bindings within fuzzy finder buffer** diff --git a/docs/layers/denite.md b/docs/layers/denite.md index 0a0a73e4a..9b0d6d8a1 100644 --- a/docs/layers/denite.md +++ b/docs/layers/denite.md @@ -24,19 +24,19 @@ To use this configuration layer, add it to your configuration file. ```toml [[layers]] -name = "denite" + name = "denite" ``` - ## Configuration -SpaceVim use `F` as the default customized key bindings prefix for denite layer. +SpaceVim use ` f` as the default key bindings prefix for denite layer. ## Key bindings | Key bindings | Discription | | -------------------- | ----------------------------- | | ` f ` | Fuzzy find menu:CustomKeyMaps | +| ` f p` | Fuzzy find menu:AddedPlugins | | ` f e` | Fuzzy find register | | ` f h` | Fuzzy find history/yank | | ` f j` | Fuzzy find jump, change | diff --git a/docs/layers/fzf.md b/docs/layers/fzf.md index cb2668f17..27b3c2cfd 100644 --- a/docs/layers/fzf.md +++ b/docs/layers/fzf.md @@ -31,6 +31,7 @@ name = "fzf" | Key bindings | Discription | | -------------------- | ----------------------------- | | ` f ` | Fuzzy find menu:CustomKeyMaps | +| ` f p` | Fuzzy find menu:AddedPlugins | | ` f e` | Fuzzy find register | | ` f h` | Fuzzy find history/yank | | ` f j` | Fuzzy find jump, change | @@ -38,5 +39,4 @@ name = "fzf" | ` f m` | Fuzzy find output messages | | ` f o` | Fuzzy find outline | | ` f q` | Fuzzy find quick fix | -| ` f r` | Resumes Unite window | -| ` b b` | List all buffers | +| `SPC b b` | List all buffers |