rcarriga / nvim-notify

A fancy, configurable, notification manager for NeoVim
MIT License
2.97k stars 78 forks source link

Can't use mouse (via terminal) to highlight and copy text from the notification popup #179

Open asgeo1 opened 1 year ago

asgeo1 commented 1 year ago

Sometimes I want to copy the text that is in the popup.

I usually use the mouse for this, and will try to highlight it and then yank and/or copy.

I've tried this using a regular mouse select in Vim, select text, then y to yank. Seems to work (though is a bit awkward as the content in the popup moves around a bit).

But my preferred method when using the mouse, is to hold down shift whilst selecting text. And this seems to use kitty (my terminal) to directly select the text (not nvim), and when I let go of the mouse button, it's usually already copied. (I just find it faster that way, and works outside of Vim too).

But for some reason, this 2nd method does not work with nvim-notify?

The thing is, I can use shift + mouse select to copy any other text in the Neovim UI without issue (including popups like Telescope produces). It's just the text in the nvim-notify popups that can't be selected & copied using this method, and I don't get why.

Is there some setting that prevents text in the nvim-notify popups from being selectable by kitty perhaps?

rcarriga commented 1 year ago

I'm not sure why kitty can't select it, it might be something to do with the window being rerendered but I'm not at all confident on that. You can use the kitty show_scrollback mapping to open the pager (which I have set to nvim but I believe defaults to less) and then mouse select text with that