GNOME Bugzilla – Bug 636312
Double click fails to select entire word if it contains _ or digits
Last modified: 2010-12-05 06:02:30 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.
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.
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
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.