Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new -cbh8 mode #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

perkint
Copy link

@perkint perkint commented Apr 6, 2016

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):

autocutsel -buttonup -fork -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:

autocutsel -buttonup -fork -selection PRIMARY
autocutsel -buttonup -fork -selection CLIPBOARD

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant