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 314889 - Expand "browse for other folders" when typing a folder name in a Save dialog
Expand "browse for other folders" when typing a folder name in a Save dialog
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.8.x
Other All
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 331313
 
 
Reported: 2005-08-30 22:53 UTC by Carl Worth
Modified: 2014-03-22 20:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Carl Worth 2005-08-30 22:53:14 UTC
In the absence of a fix for bug #314873 I'm trying a workaround suggested
by federico.

The goal I'm trying to achieve is to use the "Name" text entry to enter a
complete directory path and filename for a "save as" operation. The suggested
workaround is:

  1. Select "save as" in application
  2. C-x to cut filename
  3. Type directory path using auto-completion
  4. C-v to paste filename
  5. Save

When I was trying this I hit Enter after step 3. I was very surprised to
see the directory path I had just carefully typed disappear on me, and
I started typing it over again.

It took me multiple iterations before I realized that the directory was not
being lost but that it was being absorbed into the state of the dialog box,
as (partially) indicated by the contents of the "Save in folder" button.

I think the current behavior is a bug in that although no information is
actually lost, (it's still in the internal state of the dialog), the visible
state change does not reflect the fact that the information is saved. The
visible effect is that a (potentially very long) directory path disappears
while only a single word changes, (which was subtle enough that I missed it
multiple times).

(I think the state change would have been much less confusing if the entire
path had instead been copied somewhere nearby in the dialog. But I also get
the feeling that displaying directory paths in out of mode in current GNOME.)

There's a separate use case of this dialog where the connection between
internal and external dialog state is much more apparent. If the user enters
one portion of the path at a time and presses Enter between each, then the
directory names are copied one at a time from the Name entry to the "save in
folder" button. In this case, I think it's much easier to follow what is going
on.

One solution that would allow for the use case I naturally tried would be
to not move the state out of the Name entry if there is a slash in it.
Perhaps that would feel like too special of a case in the implementation
but it would have the desirable effect of not making carefully-user-created
state (apparently) disappear from the dialog.

Another datapoint in this decision is to note the behavior when selecting
a directory name from the autocompletion drop-down list. In this case, the
behavior is to add the directory name and a / to the text in the Name field,
and _not_ to move any data from visible to internal state.

Other information:
Comment 1 Federico Mena Quintero 2005-11-11 20:23:34 UTC
You did this:

1. File/Save as
2. C-x (this cut the suggested filename to the clipboard)
3. foo/bar Tab Enter
4. "where did my folder name go?"

The problem is hitting Enter in step 3.  You could have hit "foo/bar Tab C-v"
and it would have done what you expect.

The real solution is to expand the "browse for other folders" section when you
type just a folder name in a Save dialog and hit Enter.  This would make it
obvious that you changed the folder.

Retitling for clarity.
Comment 2 Matthias Clasen 2014-03-22 20:42:07 UTC
closing out old bugs