octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46881] grey/gray


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #46881] grey/gray
Date: Thu, 14 Jan 2016 04:19:59 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #3, bug #46881 (project octave):

Yes, I have been thinking that it would be nice to have something like
Matlab's "Did you mean" prompts.

What types of "close" should be included?  Possibilities are:
1. one-letter substitution (including digits and underline)
2. one-letter addition
3. one-letter deletion
4. transposition of adjacent letters

We should probably not do this for very short identifiers.  Would 4 characters
be a suitable minimum?

I assume the reference list would be the list of ~2000 returned by pressing
"<TAB>" at the start of a word.  Unfortunately, preprocessing couldn't be
cached, because that list contains the variables in the current scope, but
this is in the slow path anyway.

What should we do if there is more than one replacement?  The enthusiastic
option would be to prioritise "likely" ones (such as
...our->...or/...ise->...ize, adjacent on the keyboard, vowel-to-vowel
replacement).  Alternative approaches would be to list all of them, suggest
the first one found, or do nothing.

(Although I think this is a great idea, could someone please reduce the
severity and priority of this bug?)

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46881>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]