Bug 186239 - string selection via double mouse click is broken in konsole
Summary: string selection via double mouse click is broken in konsole
Status: RESOLVED DUPLICATE of bug 186048
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.2.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 186675 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-05 17:42 UTC by Vadym Krevs
Modified: 2009-03-20 09:26 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vadym Krevs 2009-03-05 17:42:17 UTC
Version:           2.2.1 (using 4.2.1 (KDE 4.2.1) "release 108", KDE:KDE4:Factory:Desktop / openSUSE_11.1)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.27.19-3.2-default

Type "pwd" into konsole. Then attempt to double-click the produced output in order to select it. Either only one path component is selected or the entire line (including all whitespace to the right edge of konsole) is selected. 

Previously konsole allowed to select the entire path exclusive of whitespace to the right.
Comment 1 Daniel Dumitrache 2009-03-06 09:58:43 UTC
I can confirm this bug on KDE 4.2.1, Ubuntu packages, worked fine in 4.2.0.
Comment 2 Daniel Dumitrache 2009-03-06 10:13:47 UTC
and it seems the commits from #176273 are responsible for this one
Comment 3 Kurt Hindenburg 2009-03-10 04:12:03 UTC
*** Bug 186675 has been marked as a duplicate of this bug. ***
Comment 4 frank.dekervel 2009-03-10 11:14:49 UTC
*** This bug has been confirmed by popular vote. ***
Comment 5 frank.dekervel 2009-03-10 11:22:03 UTC
hmm, seems one can fix/workaround this by doing

* edit current profile
* advanced
* mouse interaction: remove the "/"

so maybe this is not a bug after all ?
i do find the description of the item in the profile confusing (on my system it is called "word characters", and i think it should be "word separator characters")
Comment 6 Daniel Dumitrache 2009-03-10 14:18:53 UTC
Removing '/' fixes the issue for paths, but the behavior is still not fully consistent with KDE 3.5 or 4.2.0, for that you'll need to reverse the string, remove everything and add everything else (which is a lot harder).
Comment 7 Marc Schoechlin 2009-03-13 10:26:22 UTC
From my point of view, the default value should be a single space character.
This is suitable for most of my cut and paste situations.

In my opinion this configuration option should be described in detail in the konsole manual.

Maybe regular expression provides better possibilities.
Comment 8 Alon Bar-Lev 2009-03-13 22:25:11 UTC
I agree that multiple regular expressions is the right choice.
Examples:

export X=http://a.b.c/ppp?llll&x=sss
If I select the URL the [:=&?] are not separators.
If I select the X = is a separator.

PATH=/bin:/usr/bin:
The [:] is a separator.

stat->st_mode
The - is a separator.

my-file-name.txt
The - is not a separator.

---

Does anyone know what was exactly the previous setting?
Comment 9 Vadym Krevs 2009-03-13 23:04:30 UTC
Konsole3 had a "Consider the following characters part of a word when double clicking" textbox with a default value of ":@-./_~" .
Comment 10 Andrey Cherepanov 2009-03-20 09:24:37 UTC
(In reply to comment #7)
> From my point of view, the default value should be a single space character.
> This is suitable for most of my cut and paste situations.
Not only. Possible ' and " should be used as word boundaies.

It seems this field label mislead and tooltip has opposite meaning to real behaviour.

I suggest to rename this field to 'Symbols for word boundaries on double click:" or 'Non-word characters for double-click selection:'

What do you think?
Comment 11 Andrey Cherepanov 2009-03-20 09:26:32 UTC

*** This bug has been marked as a duplicate of bug 186048 ***