From 28a106399af4f8136bc61b3f0e4d4a8306e10412 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 19 Apr 2013 16:41:53 -0400 Subject: Updated some documentation. --- doc/10_Advanced.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/10_Advanced.md') diff --git a/doc/10_Advanced.md b/doc/10_Advanced.md index ecf5bc01..7a37f9f4 100644 --- a/doc/10_Advanced.md +++ b/doc/10_Advanced.md @@ -74,3 +74,15 @@ The standard input (stdin) for shell commands is determined as follows: * If no text is selected, the entire buffer is used. The input text is replaced with the standard output (stdout) of the command. + +## Remote Control + +Since Textadept can execute arbitrary Lua code passed via the `-e` and +`--execute` command line switches, a side-effect of [single instance][] +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')" + +[single instance]: 02_Installation.html#Single.Instance -- cgit v1.2.3