[plt-scheme] File-Open Dialog suggestion

From: Eli Barzilay (eli at barzilay.org)
Date: Sun Jun 25 00:44:29 EDT 2006

On Jun 25, Ittai Balaban wrote:
> On Sun, 2006-06-25 at 00:04 -0400, Eli Barzilay wrote:
> > It is doing that already -- when autocompletion happens, the
> > listbox shows only matching names.  So IIUC, you want this to
> > happen immediately and the actual text to be added on a delay.
> > The reason some delay is needed is that narrowing the list box is
> > expensive -- it requires scanning the full list and filtering out
> > names.  Maybe all you need is a shorter delay for completion?
> 
> I realize that's expensive. But selecting the (lexicographically)
> minimal element, while leaving listbox content intact, should be
> cheap,

You have to re-read the directory because maybe you type something
that just appeared there.  And when you re-read the directory you need
to re-filter allowed entries, and then you need to shrink the list box
to entries that match the text.


> and would probably be correct most of the time (I, for one, don't
> use fancy regexps most of the time).

It doesn't do any regexp stuff for completion.  (But see the source
anyway...)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!


Posted on the users mailing list.