Re: [textadept] pointers for implementing abbreviation expansion

From: Robert <>
Date: Fri, 8 Apr 2011 10:46:33 +0200

On Fri, Apr 8, 2011 at 3:10 AM, David Tweed <> wrote:
> Hi,
> I've been looking around for an simple text editor to try some UI
> experiments with and I'm looking at textadept. In particular, I'm
> looking at fully automatic abbreviation expansion (the standard idea
> is that if you've stored an abbreviation "phy"->"phylogenetic", then
> if you type p-h-y-<non-word character> the editor replaces the phy
> with phylogenetic, leaving the "insertion point" after the <non-word
> character> after it's finished). A websearch doesn't reveal any links,
> so it looks like this hasn't been implemented already. I know lots of
> languages, but Lua is one I've never done anything more than tweak
> existing scripts with. So I'm taking the liberty of asking a question
> of those familiar with these things:

Maybe I misunderstand what are you are trying to do, but did you have
a look at the snippets module?
The only difference I see is that you like to keep the insertion point after
the <non-word-character>.

Received on Fri 08 Apr 2011 - 04:46:33 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 12:05:06 EST