Author Topic: auto completion bug in the find dialog?  (Read 151 times)

Offline swu

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
auto completion bug in the find dialog?
« on: July 22, 2011, 10:21:27 pm »
When I type a lower case letter into the search field, HE pops up another word with upper case, that's strange assuming there is not a match, the upper case letter remains.

For example, in the search history, HE remembered 'Upper'.  Next time I search for 'use', HE insists 'Use' as I type.  There seems to too much work as I have to click U, delete then retype lower case u.  I did know that 'match case' option is cleared so it shouldn't matter the search result, but ...

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: auto completion bug in the find dialog?
« Reply #1 on: July 23, 2011, 02:30:15 am »
Hi swu,

I would not say this is a bug... This consequence of newly added auto complete feature...
And only happens if match case is disabled (this is by design) so search works well independently from case.

I do not see the way, how I can make this better, without disabling auto-complete feature.
The suggest feature works in the way, that if matching string is found, it replaces typed string and selects the rest, so if you continue typing - you delete ending. If not, and you press tab, the value is filled and you can search.
In the example case, when you type "u", HE replaces it by "Use" from history, it does not know that you will not accept it. So because only ending "se" is selected, when you continue typing, replaced "U" is left. OK, what will happen, if HE will retain typed part "u". In you example, everything will be fine: you type "pper" (sorry I mix the example, but does not matter) and get "upper".
But what if there was already "UPPER" in the history. That mean that if typed "u" retain, and you would like to get "UPPER" you will get "uPPER". Also not nice and somebody will complain.

I can place more logic there and check that new word is not complete upper case and only capitalize and retain prefix only in this case, but this will be also not 100% solution.
If you have some stable algorithm how to solve this - welcome ;) But nevertheless because this is not a bug, will be only in 1.50.

BR, Alex.


 

Related Topics

  Subject / Started by Replies Last post
6 Replies
1046 Views
Last post April 03, 2009, 03:31:41 pm
by Arthur
1 Replies
464 Views
Last post April 17, 2009, 03:43:58 pm
by alex
13 Replies
1131 Views
Last post April 18, 2009, 08:10:43 pm
by Arthur
3 Replies
344 Views
Last post June 02, 2009, 03:58:59 pm
by alex
1 Replies
52 Views
Last post February 20, 2012, 10:10:49 pm
by alex