Bug 321016 - Make project filter patterns configurable
Summary: Make project filter patterns configurable
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: project (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: 1.3.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-11 05:37 UTC by email200202
Modified: 2013-09-02 22:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch to disable this feature (718 bytes, patch)
2013-06-11 06:37 UTC, email200202
Details
correct version of the previous patch (564 bytes, patch)
2013-06-11 22:52 UTC, email200202
Details

Note You need to log in before you can comment on or make changes to this bug.
Description email200202 2013-06-11 05:37:17 UTC
After updating to KDevelop version 4.5.1 and Kdevplatform version 1.5.1, the folders names in Projects views displays the text (xx Filtered) next to the folder names if a filter mask is entered.

The information is redundant and it obscure the folder name. Looking at the source there is no configuration to disable this new feature.

Reproducible: Always

Steps to Reproduce:
1. Open a project
2. Selects Projects view
3. Enter filter masks
Actual Results:  
folder_names (xx Filtered)

Expected Results:  
Previous versions used to display only folder names.
Comment 1 email200202 2013-06-11 06:37:22 UTC
Created attachment 80441 [details]
patch to disable this feature

The attached patch disabled this feature but it will be better if a configuration parameter to enable/disable this feature and the user will decide what is best.
Comment 2 email200202 2013-06-11 22:52:21 UTC
Created attachment 80463 [details]
correct version of the previous patch
Comment 3 Aleix Pol 2013-06-11 22:55:18 UTC
Hi,
As you will understand this behavior didn't happen by chance, but it's meant on purpose.

Maybe it would help if the text was by the side in gray instead of between parenthesis?
Comment 4 email200202 2013-06-12 23:39:30 UTC
Hi,

Thank you for the reply.

I understand it is a new feature. My proposal is to make it configurable. It can be a configuration parameter to enable/disable it in kdeveloprc file.

I use the filters all the time and having  the filtered count obscure the folders names and does not provide new information. If the text is gray, it will help but still it is static information in an important window.

Other people may select filters occasionally and find the visible filtered count useful.
Comment 5 Aleix Pol 2013-06-12 23:55:05 UTC
Personally I'd really like to find a middle ground instead of adding a configuration option. We are already quite cluttered with options so far.

Now that I have you here, can you explain why you always need the filter, so that I can better understand?
Comment 6 email200202 2013-06-13 23:59:58 UTC
The filter is to exclude intermediate files, the files generated by the version control system, and the make targets.

The make targets fills the top part of the files list and force us to scroll down to open a file. We use ClearCase for version control and it generates files when it is doing operations like merging or un-checking etc. The intermediate files generated by the compiler, latex, and other tools fills the file list as well.

Normally, I work on multiple projects at the same time so navigation within the Project View is critical to me.

I hope this helps.

Thank you very much.
Comment 7 Milian Wolff 2013-07-22 19:08:17 UTC
Imo instead of using the project manager view filter for that, we should finally get a properly configurable include/exclude feature into _all_ project managers. I'm speaking about the feature that the generic manager has since a long time.

The filter in the view should only be for that - filtering items there. The files you mention though should be completely excluded from KDevelop - you do not want to see them in quickopen e.g. This also saves resources and should speed up project management for you if you have many of such files.

Thus, let me change the title of this bug report. I'll also look into the codebase now and see whether I can hack it all together for the next KDevelop release.

Cheers
Comment 8 Milian Wolff 2013-07-23 00:37:41 UTC
I've now implemented this in the projectfilter branches of kdevelop and kdevplatform, awaiting feedback.

So yeah, expect this feature in KDevelop 4.6!

Cheers
Comment 9 Milian Wolff 2013-09-02 22:26:58 UTC
Merged the projectfilter branches into master. Please test! See also: http://milianw.de/blog/kdevelop-project-filters