Project Filtering

Milian Wolff mail at milianw.de
Mon Jul 29 11:53:43 UTC 2013


On Monday 29 July 2013 03:31:50 Aleix Pol wrote:
> On Sun, Jul 28, 2013 at 2:07 AM, Milian Wolff <mail at milianw.de> wrote:
> > On Sunday 28 July 2013 01:55:14 Milian Wolff wrote:
> > > On Saturday 27 July 2013 22:52:50 Andreas Pakulat wrote
> > 
> > <snip>
> > 
> > > > Unfortunately I still see the same behaviour after removing the old
> > 
> > kcm. I
> > 
> > > > can't find a way to filter out a subdir or the contents of a subdir by
> > > > either specifying the directory (with or without trailing slash) or
> > > > directory name + /*.
> > > 
> > > You don't have a leading slash, do you? I don't remember why I added
> > > that
> > > back then... Maybe to make it possible to disambiguate between
> > > something,
> > > but I can't remember what exactly.
> > > 
> > > If that's still not it, please show me the output of "find" in a project
> > > folder and paste the contents of .kdev4/*.kdev4 [Filters] section.
> > 
> > Ah, I think it's required in order to write something like the following
> > to
> > hide dot files:
> > 
> > */.*
> > 
> > without the leading / we'd need two rules, one for the project root, and
> > one
> > for the child folders:
> > 
> > .*
> > */.*
> > 
> > Alternatives I see would be
> > 
> > a) regular expressions
> > b) improved UI which can say: only operate on files, folders, both
> > 
> > Imo, b) allows for many more useful features to be implemented. Such as
> > 
> > - optimizations (only operate on filename, not relative path)
> > - better usability (your issues shows that, but also stuff like "hide any
> > folder/file named X" should become much simpler)
> > - pattern syntax selection (the useful stuff of QRegExp::PatternSyntax)
> > - ...
> > 
> > So yeah, maybe we should just improve the dialog to improve this
> > situation.
> > 
> > Cheers
> > --
> > Milian Wolff
> > mail at milianw.de
> > http://milianw.de
> > _______________________________________________
> > KDevelop-devel mailing list
> > KDevelop-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/kdevelop-devel
> 
> Hi,
> Good to see you working on this, sorry I've been AFK, couldn't answer
> before.
> 
> Regarding the syntax, I'd suggest to use the same git uses for
> .git/info/exclude. If it's good for git, it's probably good for KDevelop
> too...

Very good idea indeed. Thanks! That might be a good idea for a short-term 
"fix" to this useability problem. Then a proper GUI could be added later.

Cheers
-- 
Milian Wolff
mail at milianw.de
http://milianw.de


More information about the KDevelop-devel mailing list