GNOME Bugzilla – Bug 634956
Gedit word select doesn't include space
Last modified: 2015-02-07 15:44:12 UTC
This bug has been reported here: https://bugs.launchpad.net/hundredpapercuts/+bug/638503 When I select a word from a sentence by double clicking, it should include the nearest space and or non letter character (trailing if I click near the last letter and leading if I click near the first letter). Then when I drag or delete, I don't have to go back and delete the extra space from where the word was taken and type one in where the word is dropped off. Not everyone wants this, so select behavior should be set in a preferences menu. "OpenOffice.org Writer handles this a better way: selecting the word does not select the nearest space, but deleting or dragging automatically deletes or moves the adjacent space as well. That works for the retyping and formatting cases as well as the deleting and dragging cases, and even with OOo's vast array of options, it doesn't have -- or need -- an option for it."
Created attachment 207265 [details] [review] drag & drop word patch This patch checks the source and destination of the drag. If both source and destination have a space near them it will try to extend the select to a space near the source to preserve the tokens (words).
(In reply to comment #0) > OpenOffice.org Writer handles this a better way: selecting the word does not > select the nearest space, but deleting or dragging automatically deletes or > moves the adjacent space as well. It's a much better solution than selecting explicitly the space. But since such a behavior can be annoying and not always what we want, it should be an option, as you said. It should also be possible to write a plugin for that. There is already probably a feature request about that idea (i.e. intelligent cut and paste), so I close this bug.