Skip to content

Commit

Permalink
feat(list): support <C-space> and <C-_> mappings (#4863)
Browse files Browse the repository at this point in the history
  • Loading branch information
YongJieYongJie authored Jan 18, 2024
1 parent 3de02d7 commit ddf40ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/coc/prompt.vim
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ let s:char_map = {
\ "\<LeftDrag>": '<LeftDrag>',
\ "\<LeftRelease>": '<LeftRelease>',
\ "\<2-LeftMouse>": '<2-LeftMouse>',
\ "\<C-space>": '<C-space>',
\ "\<C-_>": '<C-_>',
\ "\<C-a>": '<C-a>',
\ "\<C-b>": '<C-b>',
\ "\<C-c>": '<C-c>',
Expand Down
2 changes: 2 additions & 0 deletions doc/coc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3711,6 +3711,8 @@ Configurations `"list.normalMappings"` and `"list.insertMappings"` are used
for customizing the list key-mappings, example: >
"list.insertMappings": {
"<C-space>": "do:previewtoggle",
"<C-_>": "do:help"
"<C-r>": "do:refresh",
"<C-f>": "feedkeys:\\<C-f>",
"<C-b>": "feedkeys:\\<C-b>",
Expand Down
2 changes: 2 additions & 0 deletions src/list/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export const validKeys = [
'<LeftDrag>',
'<LeftRelease>',
'<2-LeftMouse>',
'<C-space>',
'<C-_>',
'<C-a>',
'<C-b>',
'<C-c>',
Expand Down

0 comments on commit ddf40ce

Please sign in to comment.