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 153213 - "~" should bring up the location dialog
"~" should bring up the location dialog
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
unspecified
Other Linux
: Normal normal
: Small feature
Assigned To: gtk-bugs
Federico Mena Quintero
: 171709 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-09-20 22:40 UTC by Bastien Nocera
Modified: 2006-01-20 19:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (3.30 KB, patch)
2005-08-06 15:29 UTC, Dan Winship
accepted-commit_now Details | Review

Description Bastien Nocera 2004-09-20 22:40:16 UTC
Typing "/" or "~" in the chooser dialog should bring up the completion dialog,
as file the user typed "Ctrl+L" before she typed those characters.
Comment 1 Vincent Noel 2004-09-21 00:18:12 UTC
I think the "/" part is already taken of on HEAD...
Comment 2 Bastien Nocera 2004-09-21 07:52:47 UTC
I'm just a (gtk+) user, and I have a 2.4 here ;)
Comment 3 Daniel Borgmann 2004-09-21 08:38:31 UTC
Well "~" could also be the beginning of a file, but it would probably be cool if
"~/" would work. :)
Comment 4 Federico Mena Quintero 2005-04-28 23:05:12 UTC
Retitling; we are only lacking "~" now.
Comment 5 Federico Mena Quintero 2005-04-28 23:50:46 UTC
*** Bug 171709 has been marked as a duplicate of this bug. ***
Comment 6 Vincent Noel 2005-07-05 17:06:21 UTC
Still present in gtk+ 2.7.1
Comment 7 Dan Winship 2005-08-06 15:29:53 UTC
Created attachment 50320 [details] [review]
patch

This makes "~" pop up the dialog, #ifdef G_OS_UNIX.
Comment 8 Gustavo Carneiro 2005-12-13 22:55:00 UTC
Please note that ~ makes no sense for this on many non-US keyboards.  For
example, in portuguese keyboard ~ is a dead key used for accents and is located
to the left of the 'enter' key.  At the top-left corner we have the backslash
key instead.
Comment 9 Murray Cumming 2006-01-19 14:12:42 UTC
> Please note that ~ makes no sense for this on many non-US keyboards.

So, is ~ never used in bash in Portugal to mean $HOME?
Comment 10 Gustavo Carneiro 2006-01-19 18:13:58 UTC
Yeah, those who use command prompts know what ~ means.  But to type it we need to press the ~ key then space, because it's a dead key.  But I think ~ means nothing to the average user.  The only advantage of ~, in US keyboards, is that it is located near the top-left of the keyboard, below esc, left to '1'.  In PT keyboards, in the same location we have the '\' key.

Erm.. actually, reading more carefully the bug report, forget what I said! :P  This whole feature is to be used by users knowledgeable of the command line, so nothing other than ~ makes sense.  Sorry for the noise :P
Comment 11 Murray Cumming 2006-01-19 22:03:13 UTC
> But to type it we need to press the ~ key then space, because it's a dead key.

So, the same character is used. It's just that the keyboard layout makes it harder to type. So this patch is likely to work in the Portugese locale too.
Comment 12 Federico Mena Quintero 2006-01-20 16:41:26 UTC
I'd just like to point out that DanW is da man.  The patch seems to work really well.  Thanks for figuring out how to make completion work :)

Can you please commit this to gtk-2-8 and HEAD?
Comment 13 Dan Winship 2006-01-20 19:12:08 UTC
committed
Comment 14 Federico Mena Quintero 2006-01-20 19:26:19 UTC
Kick ass.  Thanks, Dan :)