Bug 375552

Summary: Search in files does not show results when search string ends with parenthese
Product: [Frameworks and Libraries] kio-extras Reporter: Teunizz <teuniz>
Component: defaultAssignee: Plasma Development Mailing List <plasma-devel>
Status: CONFIRMED ---    
Severity: normal CC: elvis.angelaccio, nate
Priority: NOR Keywords: usability
Version: 5.8.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Teunizz 2017-01-25 16:02:13 UTC
I have a directory with some source files. A couple of files contains
function headers like "filter(int)".

In Dolphin, I press Ctrl-f, select "content", "From Here ...",
and enter: filter(

No results. When I enter: filter

it shows a list of files that contains the search string.
Comment 1 Elvis Angelaccio 2017-01-25 18:39:26 UTC
That's because the filenamesearch ioslave uses regular expressions.
If you type "filter\(" (without quotes) you will see the expected list of files.

This is not user-friendly, indeed. We could add an additional query item to the filenamesearch URL that tells the ioslave whether the user wants to use regexes.

Re-assigning to kio-extras for now, even though we'll also need a "Use regex" checkbox or toolbutton on the Dolphin side.