Skip to content

Commit 60fddf4

Browse files
committed
feat!: change default mappings for preview
Home/End/Up/Down/Left/Right are usually used to moving cursor in Command mode so we should keep it otherwise users won't be able to move cursor.
1 parent 97d1a5a commit 60fddf4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

plugin/fall/mapping.vim

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ if !get(g:, 'fall_disable_default_mapping')
7070
cnoremap <nowait> <C-j> <Plug>(fall-select)<Plug>(fall-next)
7171
cnoremap <nowait> <C-k> <Plug>(fall-prev)<Plug>(fall-select)
7272
" Preview
73-
cnoremap <nowait> <Home> <Plug>(fall-preview-first)
74-
cnoremap <nowait> <End> <Plug>(fall-preview-last)
75-
cnoremap <nowait> <Up> <Plug>(fall-preview-prev)
76-
cnoremap <nowait> <Down> <Plug>(fall-preview-next)
73+
cnoremap <nowait> <M-Home> <Plug>(fall-preview-first)
74+
cnoremap <nowait> <M-End> <Plug>(fall-preview-last)
75+
cnoremap <nowait> <M-Up> <Plug>(fall-preview-prev)
76+
cnoremap <nowait> <M-Down> <Plug>(fall-preview-next)
7777
cnoremap <nowait> <S-Up> <Plug>(fall-preview-prev:scroll)
7878
cnoremap <nowait> <S-Down> <Plug>(fall-preview-next:scroll)
79-
cnoremap <nowait> <Left> <Plug>(fall-preview-left)
80-
cnoremap <nowait> <Right> <Plug>(fall-preview-right)
79+
cnoremap <nowait> <M-Left> <Plug>(fall-preview-left)
80+
cnoremap <nowait> <M-Right> <Plug>(fall-preview-right)
8181
cnoremap <nowait> <S-Left> <Plug>(fall-preview-left:scroll)
8282
cnoremap <nowait> <S-Right> <Plug>(fall-preview-right:scroll)
8383
" Action

0 commit comments

Comments
 (0)