This forum has been archived. All content is frozen. Please use KDE Discuss instead.

WHT the Dolphin Filter bar regex, directories gone?

Tags: None
(comma "," separated)
rparree
Registered Member
Posts
2
Karma
0
OS
Hi,

I am pretty sure that not too long ago i was able to type a regular expression filter in Dolphin's filter bar (i think i was even using the pipe symbol to match multiple expressions).

Secondly i believe that suddenly a great feature turned up which matched folders regardless of the filter expression. In the "details" view you could then expand a folder and see if there were any matches to expression in that folder.

I am running KDE 4.4/Linux and believe the above was either during 4.4 or otherwise 4.3. Of course i could have just been dreaming, but i am pretty sure the above worked.

Did something happen there, am i missing something?

tx.,

Raphael
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
I just checked on my KDE 4.3 installation of Dolphin, and indeed, regular expressions are supported to a degree in the filter bar. I couldn't verify the folder content matching though.

This doesn't work in trunk though.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
iskendar
Registered Member
Posts
48
Karma
0
OS
So what happened here? Are regexps possible? One thing I would like to do in the filter bar is frex to filter all .py files, but not the .pyc or .py~ files. In a regexp you would search for py$, IIRC, but that doesn't work in the filter bar (dolphin 1.4, kde 4.4.4, fedora 13).


iskendar, proud to be a member of KDE forums since 2008-Dec.
User avatar
Vovochka
Registered Member
Posts
7
Karma
0
OS
Looks like this is fixed in 4.8.
But i'm using kde 4.10 (opensuse 12.3) and still can't use re in filter bar.

Is there any option to enable this? Or it's just not fixed?
User avatar
Vovochka
Registered Member
Posts
7
Karma
0
OS
By looking at source i can see that current implementation of RegEx support is almost usless :(
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Indeed, that is quite unusual.
I suspect this was done to minimize the performance impact (as QRegExp can be quite expensive compared with basic string comparison).

If you have ideas on how to improve this, I would suggest mentioning them in a bug report, or creating a patch and publishing that on Reviewboard ( at https://git.reviewboard.kde.org )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
freininghaus
Moderator
Posts
224
Karma
1
OS
Regular expressions are not supported at all. The code just checks if the filter contains *, ?, or [ and then uses "Wildcard matching", see

http://qt-project.org/doc/qt-4.8/qregex ... d-matching

I don't know why the wish report about regular expressions has been closed. But anyway, I don't see how we could implement regular expression matching without getting into conflicts with wildcards. * and ? also have a special meaning in regular expressions, so we cannot tell if the user wants to use wildcard or regular expression matching just by looking at the contents of the filter string.
User avatar
oracle2b
Registered Member
Posts
78
Karma
0
OS
Shouldn't it be possible to incorporate some two character symbol to indicate/enable a regexp filter similar to shebang(#!)? find an uncommon combo to start it off and if need be escape(\) it for regular wildcard filtering.


All answers are all replies, but not all replies are answers.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Sogou [Bot], Yahoo [Bot]