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 344657 - Ctrl-H doesn't toggle "Show Hidden Files" setting
Ctrl-H doesn't toggle "Show Hidden Files" setting
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.9.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2006-06-12 13:23 UTC by Wouter Bolsterlee (uws)
Modified: 2007-03-23 05:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtkfilechooser-show-hidden-on-keypress.patch (2.01 KB, patch)
2006-07-06 21:15 UTC, Priit Laes (IRC: plaes)
none Details | Review
Updated patch which also removes some formfeed characters from the file (2.56 KB, patch)
2007-03-22 22:48 UTC, Jaap A. Haitsma
none Details | Review

Description Wouter Bolsterlee (uws) 2006-06-12 13:23:45 UTC
Hitting Ctrl-H in a file chooser dialog doesn't toggle the display of hidden files.
Comment 1 Priit Laes (IRC: plaes) 2006-07-06 21:15:04 UTC
Created attachment 68498 [details] [review]
gtkfilechooser-show-hidden-on-keypress.patch

This adds CTRL+H support for gtkfilechooser.
Comment 2 Matthias Clasen 2006-07-06 22:44:39 UTC
The problem with making this a (changeable) binding is that we 
always have the H underlined in the menu item, even if the user 
changes it to something else. 
Also, it is problematic for translations. E.g in German, the 
menu item is "_Verborgene Dateien anzeigen".
Comment 3 Priit Laes (IRC: plaes) 2006-07-07 04:52:05 UTC
Doesn't menu accelerators use alt+letter? And what menu are are you talking about, because I do not see any menus in filechooser :(
Comment 4 Matthias Clasen 2006-07-07 12:55:27 UTC
The context menu on the file list
Comment 5 Andrew Conkling 2006-09-08 14:16:42 UTC
(In reply to comment #2)
> The problem with making this a (changeable) binding is that we 
> always have the H underlined in the menu item, even if the user 
> changes it to something else. 

So if I understand you correctly, Shift+F10, H would access it.  So why would Ctrl+H be a problem?

> Also, it is problematic for translations. E.g in German, the 
> menu item is "_Verborgene Dateien anzeigen".

I can see this being a problem for many keybindings.  Would Ctrl+L be a problem, or e.g. Ctrl+F for Find (German 'Suchen', IIRC)?  Having Ctrl+H here seems no different.
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2006-12-25 09:41:35 UTC
Since nautilus uses control+H, you expect to see hidden files with control+H on the chooser too.
Comment 7 Erdal Ronahi 2007-02-08 13:47:03 UTC
I strongly support this: CTRL+h should toggle the hidden files view. I cannot see any problem with accesskeys in this.
Comment 8 Jaap A. Haitsma 2007-03-22 22:48:31 UTC
Created attachment 85144 [details] [review]
Updated patch which also removes some formfeed characters from the file

I updated the patch such that it applies cleanly against current SVN. Please give all the credit to Priit when it gets applied. 

Matthias (or one of the other maintainers) if you agree with the other people please apply the patch. I like the other people also do not see any reason why Ctrl+H cannot be used to show the hidden files in the filechooser.

Thanks
Comment 9 Matthias Clasen 2007-03-23 05:19:04 UTC
Retracting my objection.

2007-03-23  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilechooserdefault.c: Add a keybinding (C-h) to
        toggle whether to show hidden files.  (#344657,
        Wouter Bolsterlee, Priit Laes, et al)