GNOME Bugzilla – Bug 388952
F2 selects all but extension, double F2 should toggle
Last modified: 2009-10-06 10:11:07 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.
I'm not sure. We already allow renaming with a selection of the entire filename using shift+F2.
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.
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.
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.