After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 400098 - Treat underscore as a word character when using key navigation
Treat underscore as a word character when using key navigation
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
3.2.x
Other All
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks: 665908
 
 
Reported: 2007-01-24 06:30 UTC by John Pye
Modified: 2015-01-06 12:15 UTC
See Also:
GNOME target: ---
GNOME version: 3.1/3.2



Description John Pye 2007-01-24 06:30:40 UTC
It would be a great usability boost when programming to have gedit treat an underscore as a character within a word. This would have to be user-configurable I guess; it could go into the preferences menu.


Other information:
Comment 1 darran 2010-08-09 23:06:33 UTC
This bug has also been reported in Ubuntu.

https://bugs.launchpad.net/gedit/+bug/615506
Comment 2 André Klapper 2012-07-31 16:14:16 UTC
Assuming that you refer to keyboard usage (Ctrl+left/rightarrows), this is still valid in 3.2.
Comment 3 Ignacio Casal Quinteiro (nacho) 2012-07-31 16:16:15 UTC
This is highly possible a duplicate.
Comment 4 John Pye 2012-08-01 08:47:24 UTC
Yes, I refer to the use of ctrl-arrow use.

In the case of TextPad (on Windows) I think there is a checkbox for "treat underscore as a word character".
Comment 5 Rubén Caro 2013-12-20 21:02:13 UTC
This would make the word 'all_my_variables' to be selected with a double click, right?  That would be nice.
Comment 6 Rubén Caro 2013-12-20 21:16:24 UTC
I guess there should be a regular expression that makes a word to be considered a word, and it should be configurable.
Comment 7 Sébastien Wilmet 2015-01-06 12:15:45 UTC
Done in gedit 3.15 (this will be available in the stable version 3.16).