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 636312 - Double click fails to select entire word if it contains _ or digits
Double click fails to select entire word if it contains _ or digits
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: editor: gtksourceview
2.30.x
Other Linux
: Normal major
: ---
Assigned To: Johannes Schmid
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2010-12-02 17:57 UTC by msvilans
Modified: 2010-12-05 06:02 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description msvilans 2010-12-02 17:57:08 UTC
In other source editors, I am used to having the ability to select an entire word by double clicking it. In Anjuta, it does not work this way. Here are some examples:

"update_device_status" -- Double clicking on this word will only select "update", "device" or "status". Anjuta seems to treat the _ characters as spaces. This is wrong, I need it to select the entire word.

"CollectStream2Params" -- Double clicking on this word will only select "CollectStream" or "Params". Again, Anjuta seems to treat the 2 and other digits as spaces. This is also wrong.

Altogether, this unwanted behaviour makes code editing with Anjuta somewhat annoying. It's a waste of time to have to drag the mouse to select a word containing underscores or digits. Sadly I find I can be more productive using other source editors on Windows.

The behaviour seems to be common to all GTK text editing widgets, since it also occurs in text fields in other programs.

GEdit has a plugin to correct this behaviour:
http://code.google.com/p/gedit-click-config/

It would be great if Anjuta also had such a plugin, because for source code editing it is something that comes up many, many times when working.

Regards,
Markus.
Comment 1 Johannes Schmid 2010-12-03 17:02:32 UTC
Looks useful, I will try to implement that but I doubt we need as many options as the gedit plugin, just selecting the full word should be enough.
Comment 2 Johannes Schmid 2010-12-04 11:29:31 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. 

It selects alphanumeric + _ now and that works fine for me. Hope that's ok for you!

Thank you for your bug report.

http://git.gnome.org/browse/anjuta/commit/?id=c3751c944cb552df003f6af3e0ba2f3a189b3eac
Comment 3 msvilans 2010-12-05 06:02:30 UTC
Hi Johannes,

That sounds like it will be exactly what I was looking for. Thank you for looking after it so quickly.

I have been a daily Anjuta user for a year now, and I know this will help me work more efficiently.

Best regards & greetings from Northern Ontario,
Markus.