Re: Plans for the next version?

From: mitchell <mforal.n....at.gmail.com>
Date: Sat, 20 Feb 2010 07:25:02 -0800 (PST)

Hi,

> > > > > 2.   Macro recording and playback.
>
> > > I think this was removed a while ago, because you could as well be
> > > scripting it.
>
> > Well, yes. I could. In fact, I have been known to do things like type
> > "buffer:home() buffer:word_right_extend() buffer:copy()
> > buffer:word_right() buffer:insert_text(buffer.current_pos, "\t")
> > buffer:paste() buffer:line_down() " and so on into the lua prompt, but
> > that's a huge amount of typing just to do the same thing to multiple
> > lines of text. (Granted this is a bad example because it might be
> > solved more easily with a regex search and replace, but you get the
> > idea)
>
> 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.

Mitchell

>
> - Robert
Received on Sat 20 Feb 2010 - 10:25:02 EST

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