file name wildcard match

David Faure david at mandrakesoft.com
Wed Apr 10 13:11:53 BST 2002


On Wednesday 10 April 2002 07:09, Dawit A. wrote:
> On Tuesday 09 April 2002 18:01, Erik Sjölund wrote:
> > I installed konqueror from the KDE_3_0_BRANCH cvstag.
> >
> > If I write /home/erik/*wav in the urlbar
> > no directories are hidden by the filter,
> > just file names not having the substring wav
> > are hidden.
> >
> > For example foobar.wav.ews is shown.
> 
> Hmm... how is this supposed to match *wav ?  *wav means something that ends 
> with wav but containing 0 or more characters infront of it .

That's exactly what Erik is reporting and fixing ;)

> This is exactly why there is a mime-type based filter plugin 
> (kdeaddons/konqplugins/dirfilter) :)  There is a much better chance of 
> filtering something by using its mime-type rather than a simple wildcard 
> macthing scheme.  This is specially true in light of the fact that a file of 
> any type (eg: text/plain) can be named anything making it impossibe for you 
> to filter all such files in/out.

Dawit, this isn't about the dirfilter, it's about the support for wildcards in the
location bar, which was requested and implemented long ago.

Can someone who knows about search() vs exactMatch() comment on
this and commit if ok?

The patch also removes the "accept all dirs" test which is a behavior
change... I don't know which way is best.... The original code
in KDirLister intended to filter files only, not dirs.

-- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today





More information about the kfm-devel mailing list