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 388952 - F2 selects all but extension, double F2 should toggle
F2 selects all but extension, double F2 should toggle
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.23.x
Other All
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-23 16:09 UTC by Pascal De Vuyst
Modified: 2009-10-06 10:11 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Selects all text on second F2 keypress (1.19 KB, patch)
2009-09-21 21:28 UTC, Marcus Carlson
none Details | Review

Description Pascal De Vuyst 2006-12-23 16:09:29 UTC
Reported in Ubuntu: https://launchpad.net/distros/ubuntu/+source/nautilus/+bug/55996

F2 selects the filename minus the extension of a file to be renamed,

While that rocks, it could be improved upon a bit more by allowing the user to press F2 again.

Pressing F2 on a already selected filename, should reselect the entire filename including the extensions.

Pressing F2 again on an already selected filename should deselect the extension.

I find myself using the rename tool to copy a filename so that i can use it in code a lot.

It also helps when i need to change the extension and filename together.

More modes might be supported, eg, only the extension, one extension at a time, etc etc, but that might throw off newbie users.
Comment 1 Christian Neumair 2006-12-23 18:10:00 UTC
I'm not sure. We already allow renaming with a selection of the entire filename using shift+F2.
Comment 2 Marcus Carlson 2009-09-20 21:50:54 UTC
Christian, would it hurt to add such a feature? If not I might be up for the task to add a patch - otherwise I'd say close this as a wontfix.
Comment 3 Marcus Carlson 2009-09-21 21:28:15 UTC
Created attachment 143638 [details] [review]
Selects all text on second F2 keypress

This patch will always select all text if already in rename mode. Works for both listview and icon view.

Please review and comment.
Comment 4 Alexander Larsson 2009-10-06 10:11:07 UTC
Its kinda undiscoverable, but a nice feature that helps some and gets in nobodys way (users or maintainers). It would perhaps be nicer if repeated F2 presses toggled between select-all and select-non-extension, but that is an incremental fix that could be done later.

Commited.