Re: autocompleteword.automatic option?

From: mitchell <mforal.n....at.gmail.com>
Date: Sun, 8 Feb 2009 19:24:16 -0800 (PST)

> 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 Sun 08 Feb 2009 - 22:24:16 EST

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