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#var('file_rec/git', 'command',
|
||||
\ ['git', 'ls-files', '-co', '--exclude-standard'])
|
||||
\ ['git', 'ls-files', '-co', '--exclude-standard'])
|
||||
|
||||
" FIND and GREP COMMANDS
|
||||
if executable('rg')
|
||||
@ -105,29 +105,36 @@ call denite#custom#var('menu', 'unite_source_menu_compatibility', 1)
|
||||
|
||||
" KEY 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'],
|
||||
\ ['<C-j>', '<denite:move_to_next_line>', 'noremap'],
|
||||
\ ['<S-tab>', '<denite:move_to_previous_line>', 'noremap'],
|
||||
\ ['<C-k>', '<denite:move_to_previous_line>', 'noremap'],
|
||||
\ ['<Esc>', '<denite:enter_mode:normal>', 'noremap'],
|
||||
\ ['<C-N>', '<denite:assign_next_matched_text>', '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'],
|
||||
\ ['<C-t>', '<denite:do_action:tabopen>', 'noremap'],
|
||||
\ ['<C-v>', '<denite:do_action:vsplit>', 'noremap'],
|
||||
\ ['<C-s>', '<denite:do_action:split>', 'noremap'],
|
||||
\ ['<Esc>', '<denite:enter_mode:normal>', 'noremap'],
|
||||
\ ['<C-N>', '<denite:assign_next_matched_text>', '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 = [
|
||||
\ ["'", '<denite:toggle_select_down>', 'noremap'],
|
||||
\ ['<C-n>', '<denite:jump_to_next_source>', 'noremap'],
|
||||
\ ['<C-p>', '<denite:jump_to_previous_source>', 'noremap'],
|
||||
\ ['gg', '<denite:move_to_first_line>', 'noremap'],
|
||||
\ ['st', '<denite:do_action:tabopen>', 'noremap'],
|
||||
\ ['sg', '<denite:do_action:vsplit>', 'noremap'],
|
||||
\ ['sv', '<denite:do_action:split>', 'noremap'],
|
||||
\ ['q', '<denite:quit>', 'noremap'],
|
||||
\ ['r', '<denite:redraw>', 'noremap'],
|
||||
\ ["'", '<denite:toggle_select_down>', 'noremap'],
|
||||
\ ['<C-n>', '<denite:jump_to_next_source>', 'noremap'],
|
||||
\ ['<C-p>', '<denite:jump_to_previous_source>', 'noremap'],
|
||||
\ ['<Tab>', '<denite:move_to_next_line>', 'noremap'],
|
||||
\ ['<C-j>', '<denite:move_to_next_line>', 'noremap'],
|
||||
\ ['<S-tab>', '<denite:move_to_previous_line>', 'noremap'],
|
||||
\ ['<C-k>', '<denite:move_to_previous_line>', 'noremap'],
|
||||
\ ['gg', '<denite:move_to_first_line>', '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
|
||||
|
@ -743,8 +743,8 @@ all source marked as `no` will roll back to unite extension.
|
||||
| `jk` | Insert | Leave Insert mode (Only for denite/unite) |
|
||||
| `Ctrl`+`w` | Insert | Delete backward path |
|
||||
| `Enter` | - | Run default action |
|
||||
| `Ctrl`+`v` | - | Open in a split |
|
||||
| `Ctrl`+`s` | - | Open in a vertical split |
|
||||
| `Ctrl`+`s` | - | Open in a split |
|
||||
| `Ctrl`+`v` | - | Open in a vertical split |
|
||||
| `Ctrl`+`t` | - | Open in a new tab |
|
||||
| `Ctrl`+`g` | - | Exit unite |
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user