Bug 357713

Summary: Filter feature for project view
Product: [Applications] lokalize Reporter: Karl Ove Hufthammer <karl>
Component: project managementAssignee: Simon Depiets <sdepiets>
Status: REPORTED ---    
Severity: wishlist CC: sdepiets
Priority: NOR    
Version First Reported In: 2.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Karl Ove Hufthammer 2016-01-08 21:44:23 UTC
It would be nice if it would be possible to define a per-project (regexp) filter for hiding folders and files in the project view. Use cases:

Use case 1: Hiding all ‘playground-*’ folders for a KDE translation project. Since it is usually no reason to translate them, having them (and their bad translations statistics) shown in the project view only adds noise.

Use case 2: For projects that keep translation files for all languages together in the *same* folder (one or several folders), one could hide all files not belonging to the target language. Typically, the files would be named appname.langcode.po (e.g. foo.nn.po, foo.da.po, bar.nn.po, bar.da.po). So by adding a filter for showing only files ending in langcode.po(t), one would have a list of files to translate.

Base on the two use cases, I think two types of filters are needed, one for ‘Hide folders/files matching:’ and one for ‘Only show folders/files matching:’ (and it would be possible to use both filter types at the same time). To deactivate a filter one would leave it empty.

Reproducible: Always
Comment 1 Karl Ove Hufthammer 2018-05-16 20:06:18 UTC
Some additional info: I think it would be best to have the filters being text boxes (i.e. multi-line fields), so that one can easily enter multiple regexps to match on.