Bug 260004

Summary: possiblity to match fields exactly
Product: [Applications] amarok Reporter: Silver Salonen <silver.salonen>
Component: Playlists/Dynamic PlaylistsAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: wishlist CC: lfranchi
Priority: NOR    
Version: 2.4-GIT   
Target Milestone: 2.4.0   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 2.5

Description Silver Salonen 2010-12-15 22:38:37 UTC
Version:           2.4-GIT (using KDE 4.5.4) 
OS:                Linux

Currently the comparison in dynamic playlist for artists or album is "contains", which could be a bit inexact when I want to match some artists, but one of them has a very short name, eg. I have artists "Foo" and "Foo Bar", but want to match only "Foo".

Reproducible: Didn't try
Comment 1 Matěj Laitl 2011-11-05 19:40:47 UTC
Git commit 3e7122a2879260b531f9b2df4bdeaf0710ae303f by Matěj Laitl, on behalf of Daniel Faust.
Committed on 05/11/2011 at 20:12.
Pushed by laitl into branch 'master'.

Add new collection filter to find exact matches

Searching for label:=pop finds songs labeled with 'pop' but not with
'electro pop'. While searching for label:pop finds songs labeled with
'pop' and 'electro pop'.

GUI is also updated.

REVIEW: 102252
BUG: 260004
GUI: edit collection search and edit dynamic playlist dialogs changed
     slightly
DIGEST: Feature: new "exact" field:=value match in collection search
FIXED-IN: 2.5

M  +2    -0    ChangeLog
M  +7    -2    src/core-impl/collections/support/Expression.cpp
M  +1    -1    src/core-impl/collections/support/Expression.h
M  +10   -8    src/core-impl/collections/support/TextualQueryFilter.cpp
M  +12   -4    src/dialogs/EditFilterDialog.cpp
M  +33   -16   src/widgets/MetaQueryWidget.cpp
M  +2    -2    src/widgets/MetaQueryWidget.h

http://commits.kde.org/amarok/3e7122a2879260b531f9b2df4bdeaf0710ae303f