Hi Vadim,

[expand on nickname only, if present]

>  Ok, I've just implemented this feature. I agree that it seems to work
> better like this although I'd still prefer to be able to have more control
> over the expansion (but how?).

first, after re-thinking about that, I think the nickname-only expansion
should take place if it's an exact match (or may be "very close", or
"closer" than any other address found, this could be done with some kind of
"string matching distance"), this enables me to give some friends very short
shortcuts and have them expanded without much mouse clicks.

On the other hand, when not being "close" to a nickname this should _not_
expand to the nickname, but to a choice-list (menu?). When using a "string
matching distance" the menu order could derive from this. So you just have
to press Enter most of the time, because the "best" match is listed first.

This "string matching distance" is the key, I think.
There are two cases:

1. the strings are nearly equal in length (probably a nickname)

  - then the distance can be computed by e.g. Hamming Distance or
Levenshtein Distance

2. the search string is much smaller

  - the search string has to be contained in the address string
  - the matching part of the address counts (e.g. name part is more
important than server part)
  - the string distance to the matching part could be considered
(Levenshtein etc.)
  - ... more ideas?

have a nice time,
Harald


_______________________________________________
Mahogany-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-users

Reply via email to