Re: autocompleteword.automatic option?

From: vais <vsalik....at.gmail.com>
Date: Fri, 13 Feb 2009 18:59:03 -0800 (PST)

Hmm... Mitchell, that does not work quite like Scite. First thing I
noticed is that typing became sluggish - a total show-stopper for this
approach. Is it just a Lua vs C thing? Do you know if Scite uses the
same brute-force approach?

Thanks,

Vais

On Feb 8, 10:24 pm, mitchell <mforal.n....at.gmail.com> wrote:
> > My first instinct is to hook into the 'char_added' event and call
> > _m.textadept.editing.autocomplete_word() from it. I'll see if there's
> > another way though.
>
> In modules/textadept/editing.lua:
>
> textadept.events.add_handler('char_added',
>   function() autocomplete_word('%w_') end)
>
> You can of course put it in any module, but you would use the
> _m.textadept.editing.autocomplete_word function instead.
>
Received on Fri 13 Feb 2009 - 21:59:03 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:37:15 EST