Bug 176273 - word characters for double click selection does not appear to work
Summary: word characters for double click selection does not appear to work
Status: RESOLVED DUPLICATE of bug 186048
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.1
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-27 22:04 UTC by Mike Frysinger
Modified: 2009-03-20 09:31 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 Mike Frysinger 2008-11-27 22:04:48 UTC
Version:           2.1 (using KDE 4.1.3)
Compiler:          gcc 4.3.2 x86_64
OS:                Linux
Installed from:    Gentoo Packages

the profile has the option to declare characters which will be used as word breaks when double clicking text.  the default setting defines these as word breaks:
:@-./_~?&=%+#
which is fine except that none of these appear to work

for example, i type this string into my konsole:
aaa:bbb@ccc-ddd.eee/fff_ggg~hhh?iii&jjj=kkk%lll+mmm#nnn

double clicking anywhere in that string results in the entire string being selected

testing with konsole from kde-3.5.10 shows expected behavior: only individual char strings are select (like "hhh" and "iii" rather than the whole thing)

i dont think my locale settings should matter, but i'm using LANG=en_US.UTF8
Comment 1 Jeff Long 2009-01-13 23:07:33 UTC
*** This bug has been confirmed by popular vote. ***
Comment 2 Kurt Hindenburg 2009-02-23 00:24:18 UTC
SVN commit 930286 by hindenburg:

Allow double-click selection to check for word boundaries.

BUG: 176273


 M  +11 -3     TerminalDisplay.cpp  
 M  +3 -0      TerminalDisplay.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=930286
Comment 3 Kurt Hindenburg 2009-02-23 03:37:56 UTC
SVN commit 930327 by hindenburg:

Allow double-click selection to check for word boundaries.

Backport
CCBUG: 176273


 M  +11 -3     TerminalDisplay.cpp  
 M  +3 -0      TerminalDisplay.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=930327
Comment 4 Kurt Hindenburg 2009-03-04 18:29:06 UTC
SVN commit 935236 by hindenburg:

Revert 930327.  Patch actually does word separation.

CCBUG: 176273
CCBUG: 186048


 M  +3 -11     TerminalDisplay.cpp  
 M  +0 -3      TerminalDisplay.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=935236
Comment 5 Kurt Hindenburg 2009-03-05 05:12:58 UTC
I thought that the entries in the 'mouse interaction' were for chars that were meant to break words.  However, if you read the mouse-over comment, it says 'Characters which are considered part of a word when double-clicking to select whole words in the terminal'

So in the posters example the result is correct.

Unfortunately this patch made it into KDE 4.2.1 before I realized my mistake.
Comment 6 Mike Frysinger 2009-03-05 07:36:49 UTC
indeed, the behavior was correct.  kde-4.x made this situation confusing because it changed the label.  in kde-3, the label was explicit (if verbose):
"Consider the following characters part of a word when double clicking"

other terminals typically define the optional chars as things that *break up* the word, not *join* them.  so simply describing it as "word characters" is too ambiguous.

perhaps adding "join" in there would be better ?  "word join characters" ?
Comment 7 Andrey Cherepanov 2009-03-20 09:31:38 UTC

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