Filtering hidden elements with --file-filter?

43 views
Skip to first unread message

Fabio

unread,
May 17, 2012, 3:01:31 AM5/17/12
to yad-common
Hi there,

I'm looking for a way to filter hidden folders and files when browsing
with the --file YAD function. Despite some tests and google searches I
haven't found a proper way :(
Any suggestions?

Thanks in advance,

Fabio

ps: I'm using the last svn-ed version.

Victor Ananjevsky

unread,
May 17, 2012, 3:33:08 AM5/17/12
to yad-c...@googlegroups.com
On Thu, 17 May 2012 00:01:31 -0700 (PDT)
Fabio <fabio.m...@gmail.com> wrote:

> Hi there,
>
> I'm looking for a way to filter hidden folders and files when browsing
> with the --file YAD function. Despite some tests and google searches I
> haven't found a proper way :(
> Any suggestions?
>
> Thanks in advance,
>
> Fabio
>
> Delivered-To: anan...@gmail.com
> Rece

yad --file --file-filter "no hidden | [^.]*"

or simply right-click in file list for context menu and uncheck "show hidden files"

--
Victor Ananjevsky <anan...@gmail.com>

Fabio Mizzotti

unread,
May 17, 2012, 3:53:10 AM5/17/12
to yad-c...@googlegroups.com
Hi Victor,
thanks for reply, I've tested right now and the [^.]* filter is working for files, but still let visible hidden folders.

By right-click option is good, but I would like to make it already-on when the script starts :)

Bye,

Fabio

Victor Ananjevsky

unread,
May 17, 2012, 3:59:17 AM5/17/12
to yad-c...@googlegroups.com
On Thu, 17 May 2012 09:53:10 +0200
Fabio Mizzotti <fabio.m...@gmail.com> wrote:

> Hi Victor,
> thanks for reply, I've tested right now and the [^.]* filter is working for
> files, but still let visible hidden folders.
>
> By right-click option is good, but I would like to make it already-on when
> the script starts :)
>

this setting is internally in gtk. just check for ShowHidden=false in ~/.config/gtk-2.0/gtkfilechooser.ini

> Bye,
>
> Fabio
>
>
> On Thu, May 17, 2012 at 9:33 AM, Victor Ananjevsky <anan...@gmail.com>wrote:
>
> > On Thu, 17 May 2012 00:01:31 -0700 (PDT)
> > Fabio <fabio.m...@gmail.com> wrote:
> >
> > > Hi there,
> > >
> > > I'm looking for a way to filter hidden folders and files when browsing
> > > with the --file YAD function. Despite some tests and google searches I
> > > haven't found a proper way :(
> > > Any suggestions?
> > >
> > > Thanks in advance,
> > >
> > > Fabio
> > >
> > > Delivered-To: anan...@gmail.com
> > > Rece
> >
> > yad --file --file-filter "no hidden | [^.]*"
> >
> > or simply right-click in file list for context menu and uncheck "show
> > hidden files"
> >
> > --
> > Victor Ananjevsky <anan...@gmail.com>
> >


--
Victor Ananjevsky <anan...@gmail.com>

Fabio Mizzotti

unread,
May 17, 2012, 4:23:24 AM5/17/12
to yad-c...@googlegroups.com
Great, thanks!

Fabio
Reply all
Reply to author
Forward
0 new messages