Re: Plans for the next version?

From: mitchell <mforal.n....at.gmail.com>
Date: Sun, 21 Feb 2010 20:01:38 -0800 (PST)

Hi,

> > > You're right, of course. However, with a place to put and access these
> > > scripts in the modules browser it could be easy to adapt the scripts
> > > as necessary. Is it possible at the moment to write a script like the
> > > above and assign it to keyboard short cut (without restarting
> > > Textadept)?
>
> > textadept.reset() ought to work.
>
> When I change snippets.lua for a module in ~/.textadept/modules or in
> modules what do I have to do get the changes loaded? Switching Lexers
> seems to do it, but there should be an easier way. textadept.reset()
> doesn't do it.

I see what you mean. There is a note in the LuaDoc for
textadept.reset() that I forgot about. Language modules are not
reloaded. I'll have a workaround in 2.1. Right now you'll have to
reload the file/lexer after a reset.

Mitchell

>
> - Robert
Received on Sun 21 Feb 2010 - 23:01:38 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:39:19 EST