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 634956 - Gedit word select doesn't include space
Gedit word select doesn't include space
Status: RESOLVED WONTFIX
Product: gedit
Classification: Applications
Component: general
2.30.x
Other Linux
: Normal minor
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2010-11-15 23:52 UTC by toml.hurd
Modified: 2015-02-07 15:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
drag & drop word patch (4.67 KB, patch)
2012-02-10 15:34 UTC, Alexandru Guduleasa
none Details | Review

Description toml.hurd 2010-11-15 23:52:29 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."
Comment 1 Alexandru Guduleasa 2012-02-10 15:34:09 UTC
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).
Comment 2 Sébastien Wilmet 2015-02-07 15:44:12 UTC
(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.