rickyrockrat / parcellite

GNU General Public License v3.0
229 stars 30 forks source link

Synchronize only clipboard to primary #9

Open boris-petrov opened 7 years ago

boris-petrov commented 7 years ago

Hello, is it possible to synchronize only clipboard to primary and not the other way around? I want this as I don't want selecting some text in the browser to destroy my clipboard for example.

Another thing I want to ask - if I copy some text in gVim and then close it, I can paste the text in a terminal with a middle click or SHIFT+INSERT but I cannot paste it in chromium with CTRL+V. I'm not sure I understand why. How can this be fixed?

rickyrockrat commented 7 years ago

Parcellite works by creating a list of entries separate from the system clip boards. It may be possible to have a read-only clipboard, I would need to look at it.

I'm not sure I understand why, either. I know I have a bug somewhere that occasionally happens, and it drives me crazy, but I can't duplicate it. It shows as the active entry, yet it is not the one in the clip board. It could be this is what you are seeing. Try selecting another entry in the clipboard, then going back and selecting the entry you want. Does the condition still exist? More importantly, can you duplicate it?

boris-petrov commented 7 years ago

Hi, sorry for the delay.

About the first point - please do, I definitely think most people are like me and want a "normal" Windows-like clipboard - i.e. I don't want selecting text in the browser to overwrite my clipboard. :)

The second point - I think I can reproduce the problem pretty much every time. Open gVim, copy something to the system clipboard (in the "+y register - please tell me if you're not sure what I'm talking about). Close gVim (quickly?). Go to chromium, open a new tab, CTRL+V doesn't work, SHIFT+INSERT doesn't work. If you don't close gVim, both work fine.

P.S. I'm on Arch Linux, everything is up-to-date.

rickyrockrat commented 6 years ago

Sorry for a much bigger delay ;) I should be able to sync just one way or the other, but I have little time these days. The sync mechanism gets a little dicey. There may be something interesting here: https://unix.stackexchange.com/questions/11889/pasting-x-selection-not-clipboard-contents-with-keyboard

proxy-m commented 5 years ago

Did somebody fix this already?

This may helps you: https://unix.stackexchange.com/questions/178070/why-does-shiftinsert-paste-from-clipboard-in-some-applications-and-primary-in-o/ .