Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I love autocutsel... Thanks!
It fixed my VNC problem. I've recently hacked it to fix a different problem that has been bugging me for a while. Here's a description of the problem:
I mostly use Xterm and Firefox. I will frequently use the mouse to select some text in an Xterm that I want to Google for in Firefox. However, the selected text is not a perfectly formed Google query. Maybe I want to prepend 'inurl:' or enclose it in quotes (or whatever). So...
I set cursor focus in to the text field of the browser and do a little typing. When I'm ready to paste the text, I use Firefox's hotkey for paste (so that I do not need to grab the mouse again).
Sacré bleu!! 😸
Firefox has pasted the wrong thing! I get whatever was lingering around in the CLIPBOARD selection...
I hate the CLIPBOARD and wish it would just go away!
That's what my diff (attached) takes care of.
Now I just run autocutsel with a new option (-cbh8):
... and Voilà!
Bye bye CLIPBOARD! Don't let the door hit you on the way out!
I'm happy now but I thought maybe other people would enjoy this as well so I'm sending the diff to you for your consideration. Perhaps you are willing to include it "upstream"...
Thanks again,
PS - I initially tried running two instances like so:
But running this way had a pesky side affect of clearing my Xterm selection immediately after making it because autocutsel would take ownership of the PRIMARY and Xterm clears its selection when it loses ownership. Plus running that way is a "heavier" solution...