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 141153 - Support typed wildcard filters
Support typed wildcard filters
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.4.x
Other All
: Normal enhancement
: Medium feature
Assigned To: gtk-bugs
gtk-bugs
: 334100 340084 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-04-26 16:04 UTC by Hakon
Modified: 2012-10-09 15:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
picture (25.39 KB, image/png)
2006-04-06 21:21 UTC, Yevgen Muntyan
Details
Filter combo in GtkFileChooser (71.10 KB, image/png)
2006-06-19 21:40 UTC, Yevgen Muntyan
Details

Description Hakon 2004-04-26 16:04:20 UTC
This is something I know has been critizised, but I couldn't find any bug about
it in Bugzilla so...
This has two flaws:
a) you can't list hidden files or directories by any means
b) you can't filter the list with substrings and wildcard characters (e.g. '*.png').
Is it planned to add a text field to the file-chooser, like there was in the old
one?
Comment 1 Mikael Magnusson 2004-05-23 16:17:35 UTC
actually you can rightclick the files and select `show hidden files', but b) is
still very important to fix, a textfield that does tabcompletion like the
filepicker would be great.
Comment 2 Federico Mena Quintero 2004-07-09 01:13:28 UTC
Retitling for clarity, and changing product.
Comment 3 Antonio 2004-07-12 12:11:04 UTC
I think is a very important usability improvement to add a textentry with
autocompletition ability for quickly navigation. 
Comment 4 Dennis Gnad 2005-02-09 00:24:24 UTC
I'd also recommend to have this added... it's one of the things that is causing
me pain .. gtk2's file selection ...
Comment 5 Federico Mena Quintero 2005-02-11 20:47:04 UTC
User-specified wildcards should be simple to implement:

1. See if the entry's contents have wildcard characters
2. Create a GtkFileFilter on the fly and install it
3. Document that gtk_file_chooser_get_filter() may return a filter object which
the caller app didn't create.
Comment 6 Rick Stockton 2005-12-19 20:29:04 UTC
I strongly agree with the need for this. I am curious, however, about the panel layout... when a list of filters has already been provided, how do we indicate to the user that they may EITHER pull down from this list ("All files", "Image files", etc.) *OR* type their own filter into a text entry field (somewhere else)?

(Of course I'm thinking about an 'Open File' File Chooser, where there normally isn't any text entry field.)
Comment 7 Federico Mena Quintero 2006-03-10 15:45:52 UTC
*** Bug 334100 has been marked as a duplicate of this bug. ***
Comment 8 Dov Grobgeld 2006-03-11 21:32:23 UTC
I think that it should be noted that I described a different implementation suggestion in the bug #334100 that Federico classified as a duplicate of this one.
Comment 9 Yevgen Muntyan 2006-04-06 21:21:07 UTC
Created attachment 62880 [details]
picture

The GtkFileChooser filter combo would do just fine for this thing - list of filters added by application, like "All Files" or "Text Files (*.txt)", and whatever user wants to type in (it would need to be a ComboBoxEntry).
Typing filters into the name entry is not good: how do you remove filter, for example?
Comment 10 Federico Mena Quintero 2006-05-02 14:05:46 UTC
*** Bug 340084 has been marked as a duplicate of this bug. ***
Comment 11 Peter Eckersley 2006-05-03 00:14:28 UTC
Yevgen: typing filters into the name entry works really well.  See gtk1.  It's much better than having to move the focus to a new entry widget in order to filter.  The only possible improvement to that model would be something that hinted to new users that "tab" would filter for them.  That could just be text somewhere, perhaps a tooltip.
Comment 12 Yevgen Muntyan 2006-06-18 19:01:33 UTC
(In reply to comment #11)
> Yevgen: typing filters into the name entry works really well.

IMHO, it would be very confusing, because you enter two things into the entry - filename and filter. Completion thinks you enter filename; when you click a file, filename gets into the entry and should erase the filter, and what happens then? Etc. What I want to say, you can't just *add* filters functionality to the entry (good question is what happens when you enter "*.txt" and press Enter). While filters in the entry may or may not work well in general (e.g. in gtk-1?), they won't work well in the GtkFileChooser as it is now; and using filter combo for filters seems to be the most natural.
Comment 13 Yevgen Muntyan 2006-06-19 21:40:16 UTC
Created attachment 67655 [details]
Filter combo in GtkFileChooser
Comment 14 Federico Mena Quintero 2012-10-09 15:51:16 UTC
WONTFIX unless someone writes a patch.