One can do improve it in two ways: Given a string "abc", instead of search for the regexp /^abc.*/, one can search for /^a.*b.*c.*/ which will more rapidly narrow down among many symbols that begin with the same long prefix.
One can also search for symbols only in lexical scope. It looks challenging, though perhaps not so bad in a Lisp-like language that has been indented properly. The indentation hint is key when in the middle of development and the parentheses don't match properly yet.
1 comment :
with regard to your comment on use of regexps such as /^a.*b.*c.*/ you might be interested to look at
Magpie Expansion
where I have put something similar to what you discuss at almost the same time.
Post a Comment