Bug 46503 - I'd like ctrl-left/right to stop at underscores
Summary: I'd like ctrl-left/right to stop at underscores
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-14 20:33 UTC by Clan Lambda
Modified: 2012-11-21 09:33 UTC (History)
0 users

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 Clan Lambda 2002-08-14 20:25:57 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kate
Version:           KDE 3.0.1 
Severity:          wishlist
Installed from:    Unspecified
Compiler:          Not Specified
OS:                Linux
OS/Compiler notes: Not Specified

If there was an option to make ctrl-left/right (skip by word) stop at underscores it would make programming with long_underscore_separated_variable_names slightly easier.  Thanks.


(Submitted via bugs.kde.org)
Comment 1 Nick Shaforostoff 2006-07-15 00:06:29 UTC
see also #130842. i think they are related
Comment 2 Joseph Wenninger 2012-10-28 21:50:13 UTC
Git commit 0601b8e1cdaeb1361a3aa902c142d3a731264d76 by Joseph Wenninger.
Committed on 28/10/2012 at 22:42.
Pushed by jowenn into branch 'master'.

Programmer's word left/right

Navigation: CTRL+META+Left/Right
Selection: SHIFT+CTRL+META+Left/Right

This features is like the normal word Navigation, except that it handles a fixed set of separators (highlighting independent)
" ' ` - _ and it also navigates within CamelCaseWords

Somehow related to bug 	46503

M  +44   -0    part/view/kateview.cpp
M  +4    -0    part/view/kateview.h
M  +95   -0    part/view/kateviewinternal.cpp
M  +2    -0    part/view/kateviewinternal.h

http://commits.kde.org/kate/0601b8e1cdaeb1361a3aa902c142d3a731264d76
Comment 3 Dominik Haumann 2012-11-21 09:33:12 UTC
Git commit d956d2856350aea69e106ea29c75356cd5810f3e by Dominik Haumann.
Committed on 21/11/2012 at 10:30.
Pushed by dhaumann into branch 'master'.

Revert "Programmer's move left/right" again

First of all, the feature does not work at all correctly at the moment.
Just try it, and it behaves rather non-deterministic, rendering it useless.

Next, the correct fix is to add an option in the "Editing > Navigation" config
tab, where the user can choose whether the cursor should stop at camelCaseNaming
and underscore.

Ideally, the implementation should be in our Cursor classes (WrappingCursor, ...)
and not copied twice without even really testing it. Sorry.

M  +4    -61   part/view/kateview.cpp
M  +0    -4    part/view/kateview.h
M  +0    -95   part/view/kateviewinternal.cpp
M  +0    -2    part/view/kateviewinternal.h

http://commits.kde.org/kate/d956d2856350aea69e106ea29c75356cd5810f3e