Bug 64416

Summary: File mask in grep dialog is wrong for PHP
Product: [Developer tools] kdevplatform Reporter: Simon Ejsing <simon>
Component: grepviewAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: 1.3.0   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Simon Ejsing 2003-09-17 09:40:04 UTC
Version:           3.0.0 Alpha5 (using KDE KDE 3.1.3)
Installed from:    Gentoo Packages

When you grep in project you only have 4 static filemasks to select from. These are not enough for every project type, especially not PHP. I look in the source code and found that they are static CStrings so adding new ones should not be a problem.

However they correct solution (in my view) would be to extend the grep dialog so that projects can add types dynamicaly so when I have my PHP project opened file mask defaults to

1) *.php, *.php3, *.php4
2) *.html, *.htm

And only those. C++ projects would then register the default filemask.
Comment 1 Jens Dagerbo 2003-11-25 14:05:34 UTC
Changing to grep frontend. This is a general problem, not just related to PHP. We'll have to have a look at it after the freeze.
Comment 2 Jens Dagerbo 2005-01-07 19:57:03 UTC
I just made the "trivial fix" to this in CVS. It simply adds the PHP file suffixes to the grep dialog (as well as any other suffixes I could think of relevant in KDevelop).

Yes, this isn't the best solution and I resisted it for some time, but it's the one available and it's better to have the next release a bit better than to keep waiting for the plumbing to improve.

Fixed, for now.