GNOME Bugzilla – Bug 153213
"~" should bring up the location dialog
Last modified: 2006-01-20 19:26:19 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.
I think the "/" part is already taken of on HEAD...
I'm just a (gtk+) user, and I have a 2.4 here ;)
Well "~" could also be the beginning of a file, but it would probably be cool if "~/" would work. :)
Retitling; we are only lacking "~" now.
*** Bug 171709 has been marked as a duplicate of this bug. ***
Still present in gtk+ 2.7.1
Created attachment 50320 [details] [review] patch This makes "~" pop up the dialog, #ifdef G_OS_UNIX.
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.
> Please note that ~ makes no sense for this on many non-US keyboards. So, is ~ never used in bash in Portugal to mean $HOME?
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
> 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.
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?
committed
Kick ass. Thanks, Dan :)