mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
Improve denite layer
This commit is contained in:
parent
dc23b36e30
commit
95d46554b5
@ -58,7 +58,7 @@ endif
|
|||||||
|
|
||||||
call denite#custom#alias('source', 'file_rec/git', 'file_rec')
|
call denite#custom#alias('source', 'file_rec/git', 'file_rec')
|
||||||
call denite#custom#var('file_rec/git', 'command',
|
call denite#custom#var('file_rec/git', 'command',
|
||||||
\ ['git', 'ls-files', '-co', '--exclude-standard'])
|
\ ['git', 'ls-files', '-co', '--exclude-standard'])
|
||||||
|
|
||||||
" FIND and GREP COMMANDS
|
" FIND and GREP COMMANDS
|
||||||
if executable('rg')
|
if executable('rg')
|
||||||
@ -105,29 +105,36 @@ call denite#custom#var('menu', 'unite_source_menu_compatibility', 1)
|
|||||||
|
|
||||||
" KEY MAPPINGS
|
" KEY MAPPINGS
|
||||||
let s:insert_mode_mappings = [
|
let s:insert_mode_mappings = [
|
||||||
\ ['jk', '<denite:enter_mode:normal>', 'noremap'],
|
\ ['jk', '<denite:enter_mode:normal>', 'noremap'],
|
||||||
\ ['<Tab>', '<denite:move_to_next_line>', 'noremap'],
|
\ ['<Tab>', '<denite:move_to_next_line>', 'noremap'],
|
||||||
\ ['<C-j>', '<denite:move_to_next_line>', 'noremap'],
|
\ ['<C-j>', '<denite:move_to_next_line>', 'noremap'],
|
||||||
\ ['<S-tab>', '<denite:move_to_previous_line>', 'noremap'],
|
\ ['<S-tab>', '<denite:move_to_previous_line>', 'noremap'],
|
||||||
\ ['<C-k>', '<denite:move_to_previous_line>', 'noremap'],
|
\ ['<C-k>', '<denite:move_to_previous_line>', 'noremap'],
|
||||||
\ ['<Esc>', '<denite:enter_mode:normal>', 'noremap'],
|
\ ['<C-t>', '<denite:do_action:tabopen>', 'noremap'],
|
||||||
\ ['<C-N>', '<denite:assign_next_matched_text>', 'noremap'],
|
\ ['<C-v>', '<denite:do_action:vsplit>', 'noremap'],
|
||||||
\ ['<C-P>', '<denite:assign_previous_matched_text>', 'noremap'],
|
\ ['<C-s>', '<denite:do_action:split>', 'noremap'],
|
||||||
\ ['<Up>', '<denite:assign_previous_text>', 'noremap'],
|
\ ['<Esc>', '<denite:enter_mode:normal>', 'noremap'],
|
||||||
\ ['<Down>', '<denite:assign_next_text>', 'noremap'],
|
\ ['<C-N>', '<denite:assign_next_matched_text>', 'noremap'],
|
||||||
\ ['<C-Y>', '<denite:redraw>', 'noremap'],
|
\ ['<C-P>', '<denite:assign_previous_matched_text>', 'noremap'],
|
||||||
|
\ ['<Up>', '<denite:assign_previous_text>', 'noremap'],
|
||||||
|
\ ['<Down>', '<denite:assign_next_text>', 'noremap'],
|
||||||
|
\ ['<C-Y>', '<denite:redraw>', 'noremap'],
|
||||||
\ ]
|
\ ]
|
||||||
|
|
||||||
let s:normal_mode_mappings = [
|
let s:normal_mode_mappings = [
|
||||||
\ ["'", '<denite:toggle_select_down>', 'noremap'],
|
\ ["'", '<denite:toggle_select_down>', 'noremap'],
|
||||||
\ ['<C-n>', '<denite:jump_to_next_source>', 'noremap'],
|
\ ['<C-n>', '<denite:jump_to_next_source>', 'noremap'],
|
||||||
\ ['<C-p>', '<denite:jump_to_previous_source>', 'noremap'],
|
\ ['<C-p>', '<denite:jump_to_previous_source>', 'noremap'],
|
||||||
\ ['gg', '<denite:move_to_first_line>', 'noremap'],
|
\ ['<Tab>', '<denite:move_to_next_line>', 'noremap'],
|
||||||
\ ['st', '<denite:do_action:tabopen>', 'noremap'],
|
\ ['<C-j>', '<denite:move_to_next_line>', 'noremap'],
|
||||||
\ ['sg', '<denite:do_action:vsplit>', 'noremap'],
|
\ ['<S-tab>', '<denite:move_to_previous_line>', 'noremap'],
|
||||||
\ ['sv', '<denite:do_action:split>', 'noremap'],
|
\ ['<C-k>', '<denite:move_to_previous_line>', 'noremap'],
|
||||||
\ ['q', '<denite:quit>', 'noremap'],
|
\ ['gg', '<denite:move_to_first_line>', 'noremap'],
|
||||||
\ ['r', '<denite:redraw>', 'noremap'],
|
\ ['<C-t>', '<denite:do_action:tabopen>', 'noremap'],
|
||||||
|
\ ['<C-v>', '<denite:do_action:vsplit>', 'noremap'],
|
||||||
|
\ ['<C-s>', '<denite:do_action:split>', 'noremap'],
|
||||||
|
\ ['q', '<denite:quit>', 'noremap'],
|
||||||
|
\ ['r', '<denite:redraw>', 'noremap'],
|
||||||
\ ]
|
\ ]
|
||||||
|
|
||||||
for s:m in s:insert_mode_mappings
|
for s:m in s:insert_mode_mappings
|
||||||
|
@ -743,8 +743,8 @@ all source marked as `no` will roll back to unite extension.
|
|||||||
| `jk` | Insert | Leave Insert mode (Only for denite/unite) |
|
| `jk` | Insert | Leave Insert mode (Only for denite/unite) |
|
||||||
| `Ctrl`+`w` | Insert | Delete backward path |
|
| `Ctrl`+`w` | Insert | Delete backward path |
|
||||||
| `Enter` | - | Run default action |
|
| `Enter` | - | Run default action |
|
||||||
| `Ctrl`+`v` | - | Open in a split |
|
| `Ctrl`+`s` | - | Open in a split |
|
||||||
| `Ctrl`+`s` | - | Open in a vertical split |
|
| `Ctrl`+`v` | - | Open in a vertical split |
|
||||||
| `Ctrl`+`t` | - | Open in a new tab |
|
| `Ctrl`+`t` | - | Open in a new tab |
|
||||||
| `Ctrl`+`g` | - | Exit unite |
|
| `Ctrl`+`g` | - | Exit unite |
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user