Skip to content

Commit 5ae7a5e

Browse files
committed
feat!: rename mappings for list
1 parent e048d52 commit 5ae7a5e

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

plugin/fall/mapping.vim

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ endif
44
let g:loaded_fall_mapping = 1
55

66
" 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>
1717
1818
" Select
1919
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
6060
if !get(g:, 'fall_disable_default_mapping')
6161
function! s:map_picker() abort
6262
" 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)
7373
cnoremap <nowait> <C-,> <Plug>(fall-select)
7474
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)
7777
" Preview
7878
cnoremap <nowait> <M-Home> <Plug>(fall-preview-first)
7979
cnoremap <nowait> <M-End> <Plug>(fall-preview-last)

0 commit comments

Comments
 (0)