Created attachment 3727 add MiscUrlActivateButton property an use it Currently you can open links in terminal with middle click press. This brings a problem sometimes with pasting into terminal. If mouse hitting a link during paste it just opens hovered link. Attached patch brings an abbility to change url handler to left|middle button from hidden variable in config file.
Sorry, patch is kind of buggy. As we listening for button press events, that makes process of copying from terminal very hard. I will work it out latter then.
any ways to move this forward? thank you
Hi Alexander. First, thanks for the patch. But what is the problem with it? Will you be able to resolve it? Another thing that the patch was created against outdated upstream code. If you could also update it to the current version, that would be great.
Hey Igor, Here you go. This one includes a fix for a problem ive been talking about.
Created attachment 6747 url clicking fix v 2.0
Alexander, I have just tried your patch v2.0, and, if having text in the clipboard, it both inserts text and opens a link when middle-clicking. This is not happening on the git version.
indeed, problem exists on a MiscUrlActivateButton default value. Let me work it out
ok. i took a look on the issue one more time. Initial issue im trying to solve is to avoid links opening while pasting from buffer via middle click (button id = 2) On a clean master with a middle click on the URL terminal opens up a link in the browser, middle click not on the link -- pasting selection as expected With my patch and MiscUrlActivateButton = 2 (default) middle clicking on url pastes selection + opens an url in browser, middle click not on the link -- pastes selection With my patch and MiscUrlActivateButton = 1, middle clicking on url or outside pastes selection, left btn click opens up a URL. From all 3 options I like the last one the most as its making middle click consistent. Looks like making default scenario to work as 'open link or paste selection' is impossible. The only solution will be or to change the default or to keep things as is.
Alexander, thanks for your investigations. I don't think changing open-url action from middle click to e.g. left click by default would be good as middle click looks like a standard for that. So, unless it's possible to make the proposed configuration work properly, I'd prefer to not make any changes in this area, ok?
Yeh, lets keep it as is for now. Ill work out different not intrusive patch later on. Thank you for your time.
Ok, will keep this one open and ready to receive new patches.
What do you think about the solution proposed in bug 10621 ?
Yeh, i think that will be an easiest and more intuitive solution. Lets stick with it if you are ok with this solution.
Yeah, I've merged the solution, and marking this bug as duplicate to that one. Thanks! *** This bug has been marked as a duplicate of bug 10621 ***