Summary: | Filter support for exclude | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Kristen McWilliam <kristen> |
Component: | bars: filter | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | wishlist | CC: | elvis.angelaccio, kdedev, kfm-devel, redbulltrinker, rom1dep, smowtenshi |
Priority: | LO | ||
Version First Reported In: | 20.08.1 | ||
Target Milestone: | --- | ||
Platform: | Manjaro | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Kristen McWilliam
2020-10-05 14:20:37 UTC
Currently the filter bar uses the Qt regex engine which in turn is Perl regexes. This would require switching to another filter engine which supports that kind of syntax. > This would require switching to another filter engine which supports that kind of syntax.
Or could the feature perhaps look like a "mode" for the filter bar, where the same regex engine is being used, but its result are negated?
(In reply to Elvis Angelaccio from comment #1) > This would require switching to another filter engine which supports that > kind of syntax. For exclusion rather than inclusion of the regex, there is no need to switch the engine. You have the full list of files and the filtered one. You only need to remove the filtered ones from the full list, to get the exclude list. In example: 1. Unfiltered Filter: Folder ├── doc2.assets ├── doc2.md ├── doc.assets └── doc.md 2. Filtered Filter: *.assets Folder ├── doc2.assets └── doc.assets Take the Unfiltered list, then remove every file from the Filtered list. Voila you get the Excluded list: 3. Excluded Filter: !*.assets Folder ├── doc2.md └── doc.md This seems reasonable The code can be made to translate "-exclude" so that the Perl regex would do the right thing |