Bug 503096

Summary: Remember selection after using a Filter
Product: [Applications] dolphin Reporter: Tuncay <redbulltrinker>
Component: bars: filterAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: felixernst, kfm-devel
Priority: NOR    
Version First Reported In: 25.04.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tuncay 2025-04-21 09:48:44 UTC
SUMMARY
Using the "Filter" (`Ctrl-i`) when in "Selection Mode", will remove any selection. It would be so much more useful if the selection would be remembered between multiple filtering. Not only would an accidentally use of filter (either you don't know or forgot like me) delete the current complex selection, this would also enable us to actually use the filter in the selection mode.

STEPS TO REPRODUCE
1. Enter "Selection Mode" (`Space`).
2. Click a few different files.
3. Open the "Filter" bar (`Ctrl-i`).
4. Type a few letters to filter the current view in a way, that the previously selected files are not longer visible.
5. Clear the filter (`ESC`).

OBSERVED RESULT
The previously selected files are no longer selected.

EXPECTED RESULT
Remember the previous selected items/files that were hidden because of use of filter.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: EndeavourOS x86_64 Linux 6.14.3-arch1-1
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0

```
kinfo
Operating System: EndeavourOS 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0
Kernel Version: 6.14.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7700X 8-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor 1: AMD Radeon RX 7600
Graphics Processor 2: AMD Radeon Graphics
```
Comment 1 Felix Ernst 2025-04-21 21:23:55 UTC
I moved this bug to the "bars: filter" component from "Selection Mode" because this bug also occurs when using the filter bar outside selection mode.