Support autocompletion of values - T1455
Open, Needs TriagePublic

Description

As a user writing a search query
I can write keywords, operators and values
In order to create a valid query.

Scenario 1
Given I have the list of email

SUBJECT DATE NAME STATE
KDE : Dynamics Project2016/02/16Johnunread
KDE : Dynamics PAQL KMail2016/02/17Franckunread
Qt : Assasin project2016/03/15Francisunread

When I write "receiver is" a value list appear :

John
Franck
Francis

and if i press enter the first value is selected
Then the query "receiver is John" is written.

Scenario 2
Given I have the list of email

SUBJECT DATE NAME STATE
KDE : Dynamics Project2016/02/16Johnunread
KDE : Dynamics PAQL KMail2016/02/17Franckunread
Qt : Assasin project2016/03/15Francisunread

When I write "receiver is f" a value list appear :

Franck
Francis

and if i press enter the first value is selected
Then the query "receiver is Franck" is written.

Scenario 3
Given I have the list of email

SUBJECT DATE NAME STATE
KDE : Dynamics Project2016/02/16Johnunread
KDE : Dynamics PAQL KMail2016/02/17Franckunread
Qt : Assasin project2016/03/15Francisunread

When I write "Date=" a value list appear :

2016/02/16
2016/02/17
2016/03/15

and if i press enter the first value is selected
Then the query "Date=2016/02/16" is written.

Scenario 4
Given I'm writing a query
When I write "Date>" a calendar appear and if i select a date like for example 2014/05/20
Then the query "Date>2014/05/20" is written.

Scenario 5
Given I have the list of email

SUBJECT DATE NAME STATE
KDE : Dynamics Project2016/02/16Johnunread
KDE : Dynamics PAQL KMail2016/02/17Franckunread
Qt : Assasin project2016/03/15Francisunread

When I write "State=" a value list appear :

read
unread

and if i press enter the first value is selected
Then the query "State=read" is written.

Scenario 6
Given I have the list of email

SUBJECT DATE NAME STATE
KDE : Dynamics Project2016/02/16Johnunread
KDE : Dynamics PAQL KMail2016/02/17Franckunread
Qt : Assasin project2016/03/15Francisunread

When I write "Subject=" a value list appear :

KDE : Dynamics Project
KDE : Dynamics PAQL
Qt : Assasin project

and if i press enter the first value is selected
Then the query "Subject=KDE : Dynamics Project" is written.

hrouis created this task.Mar 10 2016, 4:09 PM
grebois updated the task description. (Show Details)Mar 15 2016, 11:01 PM
grebois updated the task description. (Show Details)Mar 15 2016, 11:07 PM
grebois updated the task description. (Show Details)Mar 16 2016, 10:15 AM
grebois updated the task description. (Show Details)Mar 16 2016, 10:31 AM
grebois updated the task description. (Show Details)Mar 16 2016, 10:49 AM

Despite from the phrasing the task meets the expectations. As I suggested in the other thread it makes sense to adjust the required number of characters to how many items the dropdown would have. Given a large list of email with
sender from AAA... to ZZZ and you type A it is of no use to show all senders.
And I suppose your dropdown list reduces further when it is open with every entered charcter (e.g. "receiver is F" ... "receiver is Franci"). Also it has to be possible to navigate through the list with cursor keys as well as home/end and to select an item with the mouse.

grebois moved this task from Maturation to Ready on the KDE PIM: KMail board.Mar 18 2016, 6:22 PM