Bug 427363 - Filter support for exclude
Summary: Filter support for exclude
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: bars: filter (show other bugs)
Version: 20.08.1
Platform: Manjaro Linux
: LO wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-05 14:20 UTC by Kristen McWilliam
Modified: 2023-01-28 15:08 UTC (History)
3 users (show)

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 Kristen McWilliam 2020-10-05 14:20:37 UTC
SUMMARY
When using the filter in Dolphin `Ctrl` + `I`, it should support a simple exclude like many are used to in search, like `-exclude_term`.


Example directory:

    Folder
    ├── doc2.assets
    ├── doc2.md
    ├── doc.assets
    └── doc.md


STEPS TO REPRODUCE
1. Filter: `-*.assets`


OBSERVED RESULT
Actual: blank results (all items filtered)


EXPECTED RESULT
    Folder
    ├── doc2.md
    └── doc.md


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.4.67-1-MANJARO
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1


ADDITIONAL INFORMATION
This is the form many are already used to from searching with things like Google and would be very nice to support in Dolphin.
Comment 1 Elvis Angelaccio 2020-10-05 20:55:56 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.
Comment 2 Romain D. 2023-01-28 15:08:58 UTC
> 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?