Underscore must be a part of the word
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gedit |
Fix Released
|
Wishlist
|
|||
gedit (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: gedit
Any known to me text editor (not a text processor) would treat underscore character '_' as a part of the word it's attached to, but gedit does not. This causes all word-related actions to be limited to only part of the word, e.g.:
create_
where 'create_
This is incorrect and undesirable in many cases. There must be at least an option to make underscore one of the word chars (like \w in regexes).
NB: This is not a duplicate of https:/
The above entry only refers to selecting words with double-click.
Mine is more general: the problem applies to all operations supposed to affect whole words:
- Double-click selection
- Next/Prev Word (Ctrl+Left/Right)
- Find and Replace with Match entire word only turned on
- Title Case command from Change Case plugin
- Spell-checking
One of the most often recommended solutions is Click_Config plugin at http://
However I think it's a wrong way of resolving this issue. The problem isn't about clicks, it's about determining what is a part of the word, and what isn't. Fixing clicks does not root the cause.
That wouldn't help replacing whole words, for example, nor would it act as expected in other cases, eg. when a plugin scans for identifiers in the text.
Originally posted as a question: https:/
gedit 2.30.3, Ubuntu 10.04.1 LTS 32-bit.
Changed in gedit: | |
status: | Unknown → Confirmed |
Changed in gedit: | |
importance: | Unknown → Wishlist |
Changed in gedit: | |
status: | Confirmed → Fix Released |
I attached the upstream bug.
Note: I am able to use Find and Replace with Match entire word only turned on correctly.