← Back to team overview

unity-dev team mailing list archive

Re: Bug #1154364

 

Marco,

Right now, there is pause of 40 ms , which is reset after each keystroke. To check is user is still typing in. 
My suggestion is a bit different.
Depending on no of characters in search box, it should wait decresing no of ms before doing actual search. 

If user presses 'P', it's single character, so wait for 500 ms(or 250 ms), and there are more chances of use typing in more characters.
Then user presses 'r'. We have 2 characters.(then wait for 250 ms(or 125 ms). Keep on reducing wait time as no of characters grows, and keep existing 40 ms as floor .
So user may be able to do actual search 'prasad', without having to do search 'p' or 'pr' or 'pra'.
So it will avoid effect of displaying result for non intended search words.

In case of bug reporter, it will wait for ( 500 ms or 250 ms) after typing in 'l', 250 ms or 125  ms after typing in 'ly' and 125 ms or 52 ms after typing in 'lyx'.
It will delay queries and avoid unnecessary searches.

regards,
Prasad
 
 

Sent: Wednesday, November 04, 2015 at 2:16 PM
From: "Marco Trevisan" <marco.trevisan@xxxxxxxxxxxxx>
To: "Prasad Somwanshi" <prasad.s@xxxxxxxx>, unity-dev@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Unity-dev] Bug #1154364
Hi Prasad,

Il 04/11/2015 14:42, Prasad Somwanshi ha scritto:
> Hi,
>
> I'm new unity code user. And I've some idea about fixing this bug.
> Is this right list to discuss ? I can use IRC only after work hours.

This is indeed the right place, together with IRC; but if you can't join
our channels (and mostly #ubuntu-desktop), this place is fine.
l
So, let us know what you'd prefer to do.
I've been trying to reproduce that issue for long time, but I've never
been able to (and I neither have the fastest machine here).

So, the suggested solution of adding a tiny (1x1) input window that is
loaded as soon as you release Super key is a good workaround.


Follow ups

References