stable-windows icon indicating copy to clipboard operation
stable-windows copied to clipboard

Bad interaction with coc

Open iago-lito opened this issue 4 years ago • 3 comments

I use this plugin to not bounce around when I need to read hovertext with coc.nvim and CocAction("doHover").

However, coc is designed to automatically close the preview as soon as the cursor moves in the main window, with setting

"coc.preferences.previewAutoClose": true

enabled by default.

This interacts badly with stable-windows, for the cursor sometimes needs to be moved on preview open not to get overriden, resulting in that the preview closes as soon it is open, with no time to read it.

A workaround is to disable default coc behaviour by setting this value to false. But would it be possible to avoid the bad interaction? Would it be possible to have the cursor position escape the preview area without this move being interpreted by coc as a close signal?


BTW should I crosspost the issue to Coc?

iago-lito avatar Dec 17 '19 08:12 iago-lito

I don't know about crossposting this to coc (it seems more an issue for this repo, than for theirs). I haven't had much time lately to deal with the issues here, but hopefully I'll soon get to this. Thanks for reporting! :)

gillyb avatar Dec 23 '19 15:12 gillyb

I made some small changes to the plugin, so it won't make any movements inside a preview window or a list window. I think this might solve the problem you're talking about here. If you can verify this, and let me know it would be great! Thanks! :)

gillyb avatar Dec 25 '19 13:12 gillyb

Hm, no luck after a :PlugUpdate, or even after a fresh install. How can I help you narrow down the problem? :\

iago-lito avatar Jan 05 '20 18:01 iago-lito