[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnome-devel-list
Subject:    Re: configure the file chooser
From:       Emmanuele Bassi <ebassi () gmail ! com>
Date:       2018-05-10 14:09:35
Message-ID: CALnHYQEQoD1B8yaCbyJ67LDeG=MRaKuhQHn0H+_AWGNRJ_ULOA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #3 (multipart/alternative)]


On 10 May 2018 at 14:53, Stefan Klinger <mail.gnome.org@stefan-klinger.de>
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]

[Attachment #6 (text/html)]

<div dir="ltr">On 10 May 2018 at 14:53, Stefan Klinger <span dir="ltr">&lt;<a \
href="mailto:mail.gnome.org@stefan-klinger.de" \
target="_blank">mail.gnome.org@stefan-klinger.de</a>&gt;</span> wrote:<br><div \
class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" \
style="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.   But I guess<br> you developers would know:<br>
<br>
How can I configure the file chooser?<br></blockquote><div><br></div>The general \
answer is: you don&#39;t. The file chooser is not an application.<br><br></div><div \
class="gmail_quote">GtkFileChooser does have a few settings, but are mostly for \
storing state.<br>  <blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">   * Always open in a \
mode where I can paste a file name into a text<br>  field, or can start typing a path \
(with tab-completion)<br> <br>
      Currently (e.g., with GIMP 2.10.0) it always opens in Recently<br>
      Used mode, so I have to switch to one of the other &quot;Places&quot; and<br>
      then hit Ctrl-L.   I don&#39;t even want to hit \
Ctrl-L.<br></blockquote><div><br></div><div>You can set the default location on \
open:<br><br>   gsettings set org.gtk.Settings.FileChooser \
startup-mode<br><br></div><div>&#39;recent&#39; will use the recently opened files; \
&#39;cwd&#39; 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 values.<br></div><div>  \
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px \
                solid rgb(204,204,204);padding-left:1ex">
   * When entering a path (Firefox), sometimes I see completion happen<br>
      only when I hit Tab, and sometimes it just happens automatically<br>
      (which is extremely annoying).   This behaviour seems to change<br>
      &quot;automatically&quot;.   At least I don&#39;t know how to fix this to<br>
      complete only when I hit Tab.<br></blockquote><div><br></div><div>Completion \
will happen if there&#39;s only one result; the Tab key is necessary if there&#39;s \
ambiguity.<br></div><div>  </div><blockquote class="gmail_quote" style="margin:0px \
                0px 0px 0.8ex;border-left:1px solid \
                rgb(204,204,204);padding-left:1ex">
   * When I change the File Chooser&#39;s window size, or toggle visibility<br>
      of hidden files, please don&#39;t remember these settings.   I want<br>
      them temporary.<br></blockquote><div><br></div><div>That&#39;s not \
possible.<br></div><div>  </div><blockquote class="gmail_quote" style="margin:0px 0px \
                0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
   * I cannot remove some entries from the &quot;Places&quot; list.   How can I<br>
      change this?   Even better: Is there a way to show a nice file<br>
      system tree instead of this &quot;places&quot; thing?<br>
</blockquote><div><br></div><div>You can&#39;t change the Places, and you can&#39;t \
have a file system tree.<br></div><br>Ciao,<br></div>  Emmanuele.<br \
clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature"><a \
href="https://www.bassi.io" target="_blank">https://www.bassi.io</a><br>[@] ebassi \
[@<a href="http://gmail.com" target="_blank">gmail.com</a>]</div> </div></div>



_______________________________________________
gnome-devel-list mailing list
gnome-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-devel-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic