Bug 64416 - File mask in grep dialog is wrong for PHP
Summary: File mask in grep dialog is wrong for PHP
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: grepview (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 1.3.0
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-17 09:40 UTC by Simon Ejsing
Modified: 2013-03-31 01:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.