Re: configure the file chooser
Emmanuele Bassi <[email protected]> Thu, 10 May 2018 15:09:35 +0100
| Newsgroups | gmane.comp.gnome.devel |
|---|---|
| Message-ID | <CALnHYQEQoD1B8yaCbyJ67LDeG=MRaKuhQHn0H+_AWGNRJ_ULOA@mail.gmail.com> |
--===============1796480867770429912== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1796480867770429912== Content-Type: multipart/alternative; boundary="000000000000c212d0056bda915f" --000000000000c212d0056bda915f Content-Type: text/plain; charset="UTF-8" On 10 May 2018 at 14:53, Stefan Klinger <[email protected]> wrote: > > Hi, few question that I could not find an answer for via Google or > Stack Overflow, nor via the provided Gnome documentation. But I guess > you developers would know: > > How can I configure the file chooser? > The general answer is: you don't. The file chooser is not an application. GtkFileChooser does have a few settings, but are mostly for storing state. > > * Always open in a mode where I can paste a file name into a text > field, or can start typing a path (with tab-completion) > > Currently (e.g., with GIMP 2.10.0) it always opens in Recently > Used mode, so I have to switch to one of the other "Places" and > then hit Ctrl-L. I don't even want to hit Ctrl-L. > You can set the default location on open: gsettings set org.gtk.Settings.FileChooser startup-mode 'recent' will use the recently opened files; 'cwd' will use the current work directory of the process that launched the file chooser dialog. If the application sets a location programmatically, the location will be preferred to either values. > * When entering a path (Firefox), sometimes I see completion happen > only when I hit Tab, and sometimes it just happens automatically > (which is extremely annoying). This behaviour seems to change > "automatically". At least I don't know how to fix this to > complete only when I hit Tab. > Completion will happen if there's only one result; the Tab key is necessary if there's ambiguity. > * When I change the File Chooser's window size, or toggle visibility > of hidden files, please don't remember these settings. I want > them temporary. > That's not possible. > * I cannot remove some entries from the "Places" list. How can I > change this? Even better: Is there a way to show a nice file > system tree instead of this "places" thing? > You can't change the Places, and you can't have a file system tree. Ciao, Emmanuele. -- https://www.bassi.io [@] ebassi [@gmail.com] --000000000000c212d0056bda915f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">On 10 May 2018 at 14:53, Stefan Klinger <span dir=3D"ltr">= <<a href=3D"mailto:[email protected]" target=3D"_blank">m= [email protected]</a>></span> wrote:<br><div class=3D"gmai= l_extra"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex"><br> Hi, few question that I could not find an answer for via Google or<br> Stack Overflow, nor via the provided Gnome documentation.=C2=A0 But I guess= <br> you developers would know:<br> <br> How can I configure the file chooser?<br></blockquote><div><br></div>The ge= neral answer is: you don't. The file chooser is not an application.<br>= <br></div><div class=3D"gmail_quote">GtkFileChooser does have a few setting= s, but are mostly for storing state.<br>=C2=A0<blockquote class=3D"gmail_qu= ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20= 4);padding-left:1ex">=C2=A0 * Always open in a mode where I can paste a fil= e name into a text<br> =C2=A0 =C2=A0 field, or can start typing a path (with tab-completion)<br> <br> =C2=A0 =C2=A0 Currently (e.g., with GIMP 2.10.0) it always opens in Recentl= y<br> =C2=A0 =C2=A0 Used mode, so I have to switch to one of the other "Plac= es" and<br> =C2=A0 =C2=A0 then hit Ctrl-L.=C2=A0 I don't even want to hit Ctrl-L.<b= r></blockquote><div><br></div><div>You can set the default location on open= :<br><br>=C2=A0 gsettings set org.gtk.Settings.FileChooser startup-mode<br>= <br></div><div>'recent' will use the recently opened files; 'cw= d' will use the current work directory of the process that launched the= file chooser dialog.<br></div><div><br></div><div>If the application sets = a location programmatically, the location will be preferred to either value= s.<br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"mar= gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1= ex"> =C2=A0 * When entering a path (Firefox), sometimes I see completion happen<= br> =C2=A0 =C2=A0 only when I hit Tab, and sometimes it just happens automatica= lly<br> =C2=A0 =C2=A0 (which is extremely annoying).=C2=A0 This behaviour seems to = change<br> =C2=A0 =C2=A0 "automatically".=C2=A0 At least I don't know ho= w to fix this to<br> =C2=A0 =C2=A0 complete only when I hit Tab.<br></blockquote><div><br></div>= <div>Completion will happen if there's only one result; the Tab key is = necessary if there's ambiguity.<br></div><div>=C2=A0</div><blockquote c= lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli= d rgb(204,204,204);padding-left:1ex"> =C2=A0 * When I change the File Chooser's window size, or toggle visibi= lity<br> =C2=A0 =C2=A0 of hidden files, please don't remember these settings.=C2= =A0 I want<br> =C2=A0 =C2=A0 them temporary.<br></blockquote><div><br></div><div>That'= s not possible.<br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote"= style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);p= adding-left:1ex"> =C2=A0 * I cannot remove some entries from the "Places" list.=C2= =A0 How can I<br> =C2=A0 =C2=A0 change this?=C2=A0 Even better: Is there a way to show a nice= file<br> =C2=A0 =C2=A0 system tree instead of this "places" thing?<br> </blockquote><div><br></div><div>You can't change the Places, and you c= an't have a file system tree.<br></div><br>Ciao,<br></div>=C2=A0Emmanue= le.<br clear=3D"all"></div><div class=3D"gmail_extra"><br>-- <br><div class= =3D"gmail_signature"><a href=3D"https://www.bassi.io" target=3D"_blank">htt= ps://www.bassi.io</a><br>[@] ebassi [@<a href=3D"http://gmail.com" target= =3D"_blank">gmail.com</a>]</div> </div></div> --000000000000c212d0056bda915f-- --===============1796480867770429912== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gnome-devel-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-devel-list --===============1796480867770429912==--