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 367427 - Retain Existing (default) Filename in GtkFileChooser
Retain Existing (default) Filename in GtkFileChooser
Status: RESOLVED DUPLICATE of bug 314873
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.10.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2006-10-30 06:13 UTC by Ira Snyder
Modified: 2007-11-30 18:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ira Snyder 2006-10-30 06:13:24 UTC
When choosing a filename to save as in a GtkFileChooser, you can press Ctrl+L to enter a path to save as.

In gtk+ <2.10 pressing Ctrl+L allowed you to enter a directory. Pressing Enter after entering a directory took you to that directory, but left the filename as it was. This was very useful as a fast way to switch directories without the mouse, but not change the filename.

Starting with gtk+ 2.10, pressing Ctrl+L wipes out the existing filename, and lets you enter a directory as before. Unfortunately, you must either remember the filename that was there, or choose a new one.

I am suggesting that if the user presses Ctrl+L (or the "/" or "~" variants) that the filename is saved. If the user presses Enter after typing a directory into the textbox, then append the filename that was originally there to the user's entry.

This improves usability greatly for me, since I often want to change directories in the file chooser, but not the filename.

Other information:
Comment 1 Federico Mena Quintero 2007-11-30 18:50:23 UTC
I'm going to mark this as a duplicate of the bug about not being able to do filename completion when the text cursor is not at the beginning of the location entry.

If that were working, you would have this (% is the cursor)

  Name:  [%suggested-filename.txt_________________________________]

Then you could simply type the directory name *there* using Tab to complete path components, and eventually get

  Name:  [~/the/directory/I/want/%suggested-filename.txt__________]

(Note that pressing Control-L doesn't wipe the filename anymore.)

*** This bug has been marked as a duplicate of 314873 ***