Bug 405308

Summary: Can't find file which starts with "+"
Product: [Applications] dolphin Reporter: dagobertram
Component: searchAssignee: yushuoqi <yusq77>
Status: RESOLVED FIXED    
Severity: normal CC: akselmo, bugseforuns, dagobertram, justin.zobel, kdedev, tagwerk19, yusq77
Priority: NOR    
Version First Reported In: 22.08.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description dagobertram 2019-03-10 12:32:25 UTC
SUMMARY
Can't find file called "+ test"

STEPS TO REPRODUCE
1. create new file in folder called "+ test"
2. search for "+" using CTRL+F
3. search for "test" instead

OBSERVED RESULT
file not found via 2 but found via 3

EXPECTED RESULT
file always found

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
Comment 1 Patrick Silva 2019-04-26 17:53:32 UTC
I can confirm on my system.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.3
Comment 2 Justin Zobel 2020-11-02 06:10:19 UTC
Confirmed on Dolphin from git master.
Comment 3 Justin Zobel 2022-10-05 08:25:36 UTC
Still valid on git master.
Comment 4 yushuoqi 2025-07-14 09:28:51 UTC
I think this is normal. The search box uses regular expression search. If you want to search for text +, you can use the following format \+
Comment 5 yushuoqi 2025-07-14 09:31:37 UTC
I think this is normal. The search box uses regular expression search. If you want to search for text +, you can use the following format \+
Comment 6 TraceyC 2025-07-16 17:23:42 UTC
I'm reopening this at Justin's request. While the behavior might be technically correct and working as designed, this is not a great UX. 

A regular user has no way of knowing about this limitation. Also, a regular user has the expectation that their search term will be treated as-is (aka as plain text). Other applications such as Kate, VS Code and Obsidian Notes have this behavior. Searches will be treated as plain text unless you enable regex mode.

As such, we can make this report about improving the search UX to better align with user expectations and provide some flexibility with plain text vs regex searches.
Comment 7 TraceyC 2025-07-16 17:24:50 UTC
cc'ing Aks who was discussing this in Matrix
Comment 8 Bug Janitor Service 2025-07-17 18:47:12 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kio-extras/-/merge_requests/453
Comment 9 yushuoqi 2025-07-28 07:51:05 UTC
The pr has been merged, so this issue can be closed.