-
-
Notifications
You must be signed in to change notification settings - Fork 953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vim: scrolling of the floating preview window of CocList doesn't work #4643
Comments
Yes, the scrolling of preview only works in normal mode. |
But it works just fine in insert mode when |
Do you mean scroll the preview window with |
If i'm not mistaken shows preview in floating window - preview scroll doesn't work in insert mode {
"list.floatPreview": true,
"list.insertMappings": {
"<C-n>": "do:previewdown",
"<C-p>": "do:previewup"
},
"list.normalMappings": {
"<C-n>": "do:previewdown",
"<C-p>": "do:previewup"
}
} shows preview in split - preview scroll works in both modes {
"list.floatPreview": false,
"list.insertMappings": {
"<C-n>": "do:previewdown",
"<C-p>": "do:previewup"
},
"list.normalMappings": {
"<C-n>": "do:previewdown",
"<C-p>": "do:previewup"
}
} Haven't tested it in neovim, only in vim it behaves as I described. |
Yes. From the mapping code, Lines 170 to 171 in 3014125
|
Reproduced with vim, nvim works as expected. |
Does scrolling work in normal mode with In my tests, when |
Oops. Sorry for confusion. Yes it doesn't work (my config just have some general floating window scroll mappings that are mapped to |
Closes #4643 use `coc#float#scroll_win` to scroll float/popup window, same as hover
Closes #4643 use `coc#float#scroll_win` to scroll float/popup window, same as hover
Closes #4643 use `coc#float#scroll_win` to scroll float/popup window, same as hover
Closes #4643 use `coc#float#scroll_win` to scroll float/popup window, same as hover
EDIT: because it doesn't work in normal mode too.
Result from CocInfo
vim version: VIM - Vi IMproved 9.0 9001506
node version: v19.9.0
coc.nvim version: 0.0.82-3014125 2023-04-11 14:28:54 +0800
coc.nvim directory: /home/monkoose/.vim/pack/minpac/opt/coc.nvim
term: dumb
platform: linux
Describe the bug
In vim when
"list.floatPreview": true
is set it is impossible to scroll preview window withdo:previewup
ordo:previewdown
.Reproduce the bug
Add to your
coc-settings.json
this codeOpen some list in insert mode that can have preview window like
:CocList outline
, toggle preview window and try your mappings to scroll it. Nothing happens.The text was updated successfully, but these errors were encountered: