|
4 | 4 | let g:loaded_fall_mapping = 1
|
5 | 5 |
|
6 | 6 | " List
|
7 |
| -cnoremap <silent> <Plug>(fall-first) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor-at', cursor: 0})<CR> |
8 |
| -cnoremap <silent> <Plug>(fall-last) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor-at', cursor: '$'})<CR> |
9 |
| -cnoremap <silent> <Plug>(fall-prev) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor', amount: -1})<CR> |
10 |
| -cnoremap <silent> <Plug>(fall-next) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor', amount: 1})<CR> |
11 |
| -cnoremap <silent> <Plug>(fall-prev:scroll) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor', amount: -1, scroll: v:true})<CR> |
12 |
| -cnoremap <silent> <Plug>(fall-next:scroll) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor', amount: 1, scroll: v:true})<CR> |
13 |
| -cnoremap <silent> <Plug>(fall-left) <Cmd>call fall#internal#dispatch(#{type: 'list-component-execute', command: 'silent! normal! zh'})<CR> |
14 |
| -cnoremap <silent> <Plug>(fall-right) <Cmd>call fall#internal#dispatch(#{type: 'list-component-execute', command: 'silent! normal! zl'})<CR> |
15 |
| -cnoremap <silent> <Plug>(fall-left:scroll) <Cmd>call fall#internal#dispatch(#{type: 'list-component-execute', command: 'silent! normal! zH'})<CR> |
16 |
| -cnoremap <silent> <Plug>(fall-right:scroll) <Cmd>call fall#internal#dispatch(#{type: 'list-component-execute', command: 'silent! normal! zL'})<CR> |
| 7 | +cnoremap <silent> <Plug>(fall-list-first) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor-at', cursor: 0})<CR> |
| 8 | +cnoremap <silent> <Plug>(fall-list-last) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor-at', cursor: '$'})<CR> |
| 9 | +cnoremap <silent> <Plug>(fall-list-prev) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor', amount: -1})<CR> |
| 10 | +cnoremap <silent> <Plug>(fall-list-next) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor', amount: 1})<CR> |
| 11 | +cnoremap <silent> <Plug>(fall-list-prev:scroll) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor', amount: -1, scroll: v:true})<CR> |
| 12 | +cnoremap <silent> <Plug>(fall-list-next:scroll) <Cmd>call fall#internal#dispatch(#{type: 'move-cursor', amount: 1, scroll: v:true})<CR> |
| 13 | +cnoremap <silent> <Plug>(fall-list-left) <Cmd>call fall#internal#dispatch(#{type: 'list-component-execute', command: 'silent! normal! zh'})<CR> |
| 14 | +cnoremap <silent> <Plug>(fall-list-right) <Cmd>call fall#internal#dispatch(#{type: 'list-component-execute', command: 'silent! normal! zl'})<CR> |
| 15 | +cnoremap <silent> <Plug>(fall-list-left:scroll) <Cmd>call fall#internal#dispatch(#{type: 'list-component-execute', command: 'silent! normal! zH'})<CR> |
| 16 | +cnoremap <silent> <Plug>(fall-list-right:scroll) <Cmd>call fall#internal#dispatch(#{type: 'list-component-execute', command: 'silent! normal! zL'})<CR> |
17 | 17 |
|
18 | 18 | " Select
|
19 | 19 | cnoremap <silent> <Plug>(fall-select) <Cmd>call fall#internal#dispatch(#{type: 'select-item'})<CR>
|
@@ -60,20 +60,20 @@ cnoremap <silent> <Plug>(fall-action-select) <Cmd>call fall#action('@select')<CR
|
60 | 60 | if !get(g:, 'fall_disable_default_mapping')
|
61 | 61 | function! s:map_picker() abort
|
62 | 62 | " List
|
63 |
| - cnoremap <nowait> <C-t> <Plug>(fall-first) |
64 |
| - cnoremap <nowait> <C-g> <Plug>(fall-last) |
65 |
| - cnoremap <nowait> <C-p> <Plug>(fall-prev) |
66 |
| - cnoremap <nowait> <C-n> <Plug>(fall-next) |
67 |
| - cnoremap <nowait> <C-u> <Plug>(fall-prev:scroll) |
68 |
| - cnoremap <nowait> <C-d> <Plug>(fall-next:scroll) |
69 |
| - cnoremap <nowait> <PageUp> <Plug>(fall-left) |
70 |
| - cnoremap <nowait> <PageDown> <Plug>(fall-right) |
71 |
| - cnoremap <nowait> <S-PageUp> <Plug>(fall-left:scroll) |
72 |
| - cnoremap <nowait> <S-PageDown> <Plug>(fall-right:scroll) |
| 63 | + cnoremap <nowait> <C-t> <Plug>(fall-list-first) |
| 64 | + cnoremap <nowait> <C-g> <Plug>(fall-list-last) |
| 65 | + cnoremap <nowait> <C-p> <Plug>(fall-list-prev) |
| 66 | + cnoremap <nowait> <C-n> <Plug>(fall-list-next) |
| 67 | + cnoremap <nowait> <C-u> <Plug>(fall-list-prev:scroll) |
| 68 | + cnoremap <nowait> <C-d> <Plug>(fall-list-next:scroll) |
| 69 | + cnoremap <nowait> <PageUp> <Plug>(fall-list-left) |
| 70 | + cnoremap <nowait> <PageDown> <Plug>(fall-list-right) |
| 71 | + cnoremap <nowait> <S-PageUp> <Plug>(fall-list-left:scroll) |
| 72 | + cnoremap <nowait> <S-PageDown> <Plug>(fall-list-right:scroll) |
73 | 73 | cnoremap <nowait> <C-,> <Plug>(fall-select)
|
74 | 74 | cnoremap <nowait> <C-.> <Plug>(fall-select-all)
|
75 |
| - cnoremap <nowait> <C-j> <Plug>(fall-select)<Plug>(fall-next) |
76 |
| - cnoremap <nowait> <C-k> <Plug>(fall-prev)<Plug>(fall-select) |
| 75 | + cnoremap <nowait> <C-j> <Plug>(fall-select)<Plug>(fall-list-next) |
| 76 | + cnoremap <nowait> <C-k> <Plug>(fall-list-prev)<Plug>(fall-select) |
77 | 77 | " Preview
|
78 | 78 | cnoremap <nowait> <M-Home> <Plug>(fall-preview-first)
|
79 | 79 | cnoremap <nowait> <M-End> <Plug>(fall-preview-last)
|
|
0 commit comments