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

Boolean queries in Dolphin's filter bar?

Tags: None
(comma "," separated)
molecule-eye
Registered Member
Posts
402
Karma
0
OS
Does Dolphin's filter bar support boolean queries? Say I want to show all *.mp4 and *.m4v files in a folder. Could I enter a string in the filter bar that would effectively give what one would expect by "mp4 OR m4v"?

If this is not implemented, it definitely should be!
luebking
Karma
0
try
Code: Select all
*.m[p4][4v]

it supports globbing (http://doc.qt.io/qt-4.8/qregexp.html#PatternSyntax-enum - QRegExp::WildcardUnix)

What you want is "true" RegExp matching
Code: Select all
.*\.(mp4|m4v)\b
which is probably not considered "idiot proof" enough - or commonly expected ;-)
molecule-eye
Registered Member
Posts
402
Karma
0
OS
Genius! Thanks!
luebking
Karma
0
To prevent misconceptions, mp4 & m4v is a very specific char combination, leading to an ambigious
Code: Select all
*.m[p4][4v]


So, for disambiguation:
Code: Select all
*.[ma][pv][4i]


matches *.mp4 and *.avi (and some more combinations ;-)


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, mesutakcan, sandyvee, Sogou [Bot]