daa84 / neovim-gtk

gtk ui for neovim
GNU General Public License v3.0
718 stars 56 forks source link

Add RPC/GTK clipboard provider #40

Closed valpackett closed 6 years ago

valpackett commented 6 years ago

Hi, just discovered this project recently, ligatures and native completion popups are great, I'm actually looking into switching from tmux + neovim in terminal to this + terminals in neovim :)

To avoid xclip usage on Wayland and to improve potential remote usage, it would be nice to have native gtk clipboard support. Here's my attempt :)

daa84 commented 6 years ago

Does this clipboard provider will be enabled by default? Is it possible to disable it?

valpackett commented 6 years ago

Added g:GuiExternalClipboard, a variable that disables it.

daa84 commented 6 years ago

Thank you :+1:

daa84 commented 6 years ago

Hm, but problem is PRIMARY clipboard does not supported by this patch

valpackett commented 6 years ago

They're typically synchronized by modern desktop environments? (And there's only one clipboard on Wayland, Windows and macOS)

Shouldn't be hard to add though.

daa84 commented 6 years ago

Ok, i disable this clipboard implementation by default so it is possible to use g:GuiInternalClipboard = 1 to enable it You can create separate pull request to add support for primary. I use ubuntu with xorg and use this feature :smile: