[code] [textadept] Remote Control Textadept

From: Mitchell <m.att.foicica.com>
Date: Fri, 19 Apr 2013 11:56:32 -0400 (Eastern Daylight Time)

Hi,

I just realized that since Textadept can execute arbitrary Lua code passed
via the `-e` and `--execute` command line switches, a side-effect of
single instance[1] functionality on the platforms that support it is that
you can remotely control the original instance. For example:

     ta ~/.textadept/init.lua &
     ta -e "events.emit(events.FIND, 'require')"

Pretty cool!

Cheers,
Mitchell

[1]: http://foicica.com/textadept/02_Installation.html#Single.Instance

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 19 Apr 2013 - 11:56:32 EDT

This archive was generated by hypermail 2.2.0 : Sat 20 Apr 2013 - 06:41:50 EDT