Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363933 - [navigation] Allow user to specify word delimiters when selecting words via keyboard Ctrl Shift Arrow
Summary: [navigation] Allow user to specify word delimiters when selecting words via k...
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 11:05 EST by Steven InAz CLA
Modified: 2011-11-17 03:12 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven InAz CLA 2011-11-16 11:05:40 EST
Build Identifier: I20110613-1736

There are a couple of common conventions when naming things in code:

CamelCase
word_delimited

The behavior when double clicking on the above is identical, the entire word is selected.

When I try select using the keyboard (CTRL-SHIFT->) CamelCase is selected as expected.  The selection processor stops at _ when trying to select word_delimited.  _'s are treated as word delimiters, requiring my to hit > 3 times to do what should be a single keystroke.  It looks like _ is being treated as an operator.

I'd request that either adding "_" to the character list that is used to define variable names, or allowing users access to access this list would be helpful.

Reproducible: Always

Steps to Reproduce:
1.  Open any editor
2.  Type this_is_a_strange_variable_name
3.  Type Ctrl-Shift-< and you should see that just name is selected.  Hitting < a second time, will select the _ and hitting < a total of 11 times selects the entire variable name

It should be noted that simply double clicking the name selects the entire name, so therein lies the code difference.
Comment 1 Dani Megert CLA 2011-11-17 02:56:58 EST

*** This bug has been marked as a duplicate of bug 117888 ***
Comment 2 Dani Megert CLA 2011-11-17 02:58:48 EST
Didn't want to mark this as dup of 117888.
Comment 3 Dani Megert CLA 2011-11-17 03:12:08 EST
This works for me as expected in the Java editor. If you are using a different coding editor then please file the bug there. It's up to them to define semantics into things.