Bug 165558 - Allow double click for URL detection
Summary: Allow double click for URL detection
Status: RESOLVED REMIND
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-02 10:30 UTC by Bernd Steinhauser
Modified: 2009-10-20 19:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Steinhauser 2008-07-02 10:30:26 UTC
Version:            (using Devel)
Installed from:    Compiled sources

If I for example run git config -l and want to select one of the git urls, it will select the whole line, instead of the git://...

remote.origin.url=git://repo.or.cz/kdebase.git

Now this seems to be reproducable with other urls, like svn://, if they are behind a "=".
So, the problem seems to be the equals sign.

Now there is a setting in konsole named "Word characters for double-click selection" which affects this, the setting there is: :@-./_~?&=%+#

If I remove the = there, it works.
I still think, that it is a bug, because:
a) It correctly works for the highlighting of the url (the correct part gets underlined)
b) Other chars in that setting (for example : or /) are not affected
Comment 1 Robert Knight 2008-07-13 02:51:07 UTC
> If I remove the = there, it works. 

Double-clicking does not attempt any sort of URL detection.  It just scans left and right from the current character, stopping when it finds a non-word character and then selects that region.

If you want to copy a URL you can just right-click on it and click "Copy Link Address"
Comment 2 Bernd Steinhauser 2008-07-13 07:40:49 UTC
Hm, thanks, that works.

So what about introducing url detection for double click?
Comment 3 hanno 2009-09-04 22:09:33 UTC
I just wanted to report the same thing. This worked in kde 3.5, so it's a regression.
Comment 4 Kurt Hindenburg 2009-10-20 02:27:08 UTC
Double-clicking works for what it is suppose to do.  If you want the link, right-click on it.
Comment 5 hanno 2009-10-20 19:40:29 UTC
Are you serious? The current behaviour is completely unintentional. It already visually marks the url and everyone would expect double-clicking on it to mark it.
And, as I said, it worked fine before.
Comment 6 Robert Knight 2009-10-20 19:51:26 UTC
I agree it would be useful if the double-click was smart enough to detect URLs and highlight them - one problem though is that it would then not follow the rules in the 'word characters for double click selection' setting - which might frustrate some users.
Comment 7 hanno 2009-10-20 19:53:07 UTC
Yeah, the options should be changed then. Optimal solution: Add some "Autodetect URLs on doubleclick" that is default on.