Bug 228378

Summary: Tag filtering is bugged
Product: [Applications] digikam Reporter: Tenno Seremel <mystra.x64>
Component: Albums-FiltersAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 1.1.0   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In: 1.2.0

Description Tenno Seremel 2010-02-24 22:15:09 UTC
Version:           1.1.0 (using KDE 4.3.4)
OS:                Linux
Installed from:    Debian testing/unstable Packages

I have many tags and often use right sidebar to apply them. However filter text box in it seems to be bugged.

Simple example: I type 'a' (without quotes) and all I'm getting is 'guilty gear/a.b.a' tag even though I expect it to show all other tags to me with a letter 'a'. Such as 'awesome', 'armor', etc.

If I type more letters it's the same thing. I only get only one of the tags that begins with what I typed even if I typed a whole word.
Comment 1 Johannes Wienke 2010-02-24 22:35:40 UTC
This is the automatic completion mode which is taken from the kde globals as a default. You can change it eg. to "dropdown list" via a right click on the filter bar -> completion mode.
Comment 2 Tenno Seremel 2010-02-24 23:23:48 UTC
Those items in completion mode always didn't quite make sense to me (name are somewhat counter-intuitive). However it seems using 'semi-automatic' (translated from my language here) does the trick.

I'm not sure how is that it have any relation to the tag tree but it works. Maybe it should set sane default or is it not possible / against KDE HIG?
Comment 3 Johannes Wienke 2010-02-24 23:30:53 UTC
The completion and their settings are directly provided by the KLineEdit that is used for this filtering. So we cannot do much about this. You could open a bug report for the kdelibs if you think this needs a usability improvement.

What is the confusion about the relation to the tag tree? Right now every tag title in the tree is used as a suggestion for the completion.
Comment 4 Tenno Seremel 2010-02-24 23:46:55 UTC
The confusion was mostly because this option appears on KLineEdit however it affects tag tree. To me they looked liked separate widgets so I haven't expected then to work that way.

Maybe I should suggest to rename 'Automatic' and 'semi-automatic' (completion mode menu items) to something else in kdelibs but what should they be called I'm not sure.
Comment 5 Johannes Wienke 2010-02-24 23:49:35 UTC
Well it affects tag tree in the moment the line edit completes the first match. This completed text is then used to filter the tag tree. Or are you experiencing other symptoms?
Comment 6 Tenno Seremel 2010-02-25 00:12:11 UTC
No. It's just I thought KLineEdit's completion options works only for KLineEdit itself not for the tag tree. Apparently they are connected to each other in such a way that if it's set to 'automatic' I have only 1 item in the result tree. 

BTW 'Manual' seems to work as I epxect from a filter too, so what's difference is between semi-automatic and manual I don't know.

(I'm using direct links below. I don't know if they allow hotlinking. Copy/paste if it is not so.)

Hmm… weird thing is if I'm typing with 'automatic' it's wrong:
http://img641.imageshack.us/img641/8048/d1098.png

however if I paste it from clipboard (still with automatic) it works normally:
http://img641.imageshack.us/img641/2088/d1099.png

Should I blame kdelibs or digikam's completion? (seen as grey letters in the 1st image)
Comment 7 Tenno Seremel 2010-02-25 00:15:42 UTC
Err... seems 'manual' (and semi-automatic does not... at least not always) does what I need. So many completion options that does something I don't quite understand...
Comment 8 Johannes Wienke 2010-02-26 18:44:03 UTC
Don't hesitate to open a bug report for the kdelibs requesting a usability improvement for this.

I will close this bug as as invalid as the filtering is working as expected. Reopen if you really find a problem in the filtering.