Author Topic: AutoComplete in Find  (Read 4141 times)

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
AutoComplete in Find
« on: March 16, 2011, 01:24:20 pm »
Is it possible to implement "complete-as-you-type function" in "Find What" field of Find dialog?

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: AutoComplete in Find
« Reply #1 on: March 16, 2011, 02:49:24 pm »
Hi welcome!

Interesting wish.

Perhaps meanwhile an Incremental Search may help you?
Just press Ctrl+i and start typing your search pattern.
See menu "Navigation > Find and Replace > Find Incremental   \ Ctrl+I"

Did you notice "View > Panes > Quick Search Bar \ Ctrl + Q" and check "[X] Incremental " too?


.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2184
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: AutoComplete in Find
« Reply #2 on: March 16, 2011, 07:33:18 pm »
Thanks Stefan!

And for Anonymous: please explain your request in more details. Do you mean Incremental Search feature, Stefan mentioned, or something different?

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: AutoComplete in Find
« Reply #3 on: March 16, 2011, 09:10:54 pm »
I understood it this way:

- open Find
- start typing H i p p
and you get an list of possible strings, (just like the usual auto-complete feature will writing code,)
from where you can select one by an Tab-key press.

Then you can complete this search word by adding an own string...

Nice idea, interesting.

We can do this already
by pressing Ctrl+I,
start typing the word,
pressing Alt+Arrow down (or double click) to select the whole word,
open Find with Strg+F and the selected word is already inserted into the 'Find What' field.

The advantage of the request is that you will get an compressive list of pattern from interest just by hand.

.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2184
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: AutoComplete in Find
« Reply #4 on: March 17, 2011, 01:10:10 am »
Yes, I also thought about this, and even wrote but later deleted :)
Theoretically, it can be done, for document search, because HE has complete list of used words collected for auto completion.
The list of already typed words is already available (drop down), but not used for automatic word selection.

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: AutoComplete in Find
« Reply #5 on: March 17, 2011, 08:57:10 am »
The feature I've requested looks more like those presented in Embarcadero RAD Sudio's Find Bar or File And Archive Manager's (v.2.0) command line (and some other string input controls in different dialog windows).

No, this is not Incremental Search but close enough to Stefan's second guess: as the user types, Hippo adds the ending of the closest word or phrase from those which where already searched for (in order of appearance), selecting the addition so the user can override it as he types further.

For example, if we've already looked for "high", "human", "hundred", HippoEdit should suggest sequentially "igh", "man", "dred" as we type "h", "u", "n".

h[igh]
hu[man]
hun[dred]


Pressing Del deletes selected addition. Pressing Arrow Rigth cancels the selection and moves cursor at the end of the word. Pressing Enter accepts whole string and start search.

This function speeds search greatly, especially when looking often for the same words. This is the only feature I was in lack for when moved from Multi-Edit to HippoEdit.

And, by the way, thank you for a good job, Alex!

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2184
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: AutoComplete in Find
« Reply #6 on: March 18, 2011, 06:47:03 pm »
OK, thanks for the detailed description. Now clear.

I think this functionality was already some when in HE (this is a part of the history combo boxes used everywhere in HE) but it was disabled for some reason by me :) or because of wrong results or bad behavior. Do not remember.
I will check for the reason it was disabled (maybe it already gone) and if there will be no real problems found, will re-enable it for new 1.49 beta. If the logic of working will be different, I will adjust for one you described. The changes should not be too big, so I think it is safe to enable it for correction beta.

Best regards,
Alex.

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: AutoComplete in Find
« Reply #7 on: March 21, 2011, 12:42:40 pm »
Thanks, Alex.

Offline Anonymous

  • Anonymous
  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
    • View Profile
Re: AutoComplete in Find
« Reply #8 on: March 29, 2011, 08:57:31 am »
On 1.49.804 works perfect. Much relief on my wounds  :) Thanks again!