| Summary: | Ignore end word @ when selecting symbolic links with mouse double click | ||
|---|---|---|---|
| Product: | [Applications] konsole | Reporter: | Albert Astals Cid <aacid> |
| Component: | general | Assignee: | Konsole Bugs <konsole-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Albert Astals Cid
2005-06-25 12:24:48 UTC
Go to Settings->Configure Konsole; at the bottom of the General tab you'll see 'Double click'; remove the @ from the text box. I think that the @ is there to pick up email addresses.... Well, that's not what i meant, i only want to remove @ when it's at the end, i want to keep it when it's in the middle of a word. If you give me some pointer where that accept/reject thing is done i can try to code it myself. If you want to hack, look in TEWidget.cpp for word_characters and charClass. Basically check to see if @ is at the end and if so, ignore it. SVN commit 432870 by hindenburg:
Don't select @ at the end of a word when double-clicking; helpful for symbolic links in dir listings.
BUG: 108107
M +5 -0 TEWidget.cpp
--- trunk/KDE/kdebase/konsole/konsole/TEWidget.cpp #432869:432870
@@ -1594,6 +1594,11 @@
while( ((x<columns-1) || (endSel.y()<lines-1 && m_line_wrapped[endSel.y()])) && charClass(image[i+1].c) == selClass )
{ i++; if (x<columns-1) x++; else {x=0; endSel.ry()++; } }
endSel.setX(x);
+
+ // In word selection mode don't select @ (64) if at end of word.
+ if ( ( QChar( image[i].c ) == '@' ) && ( ( endSel.x() - bgnSel.x() ) > 0 ) )
+ endSel.setX( x - 1 );
+
actSel = 2; // within selection
emit extendSelectionSignal( endSel.x(), endSel.y() );
emit endSelectionSignal(preserve_line_breaks);
|