From 823d2770fe7ea7e8269ea43119d98f3f9130611e Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 22 Jun 2017 23:34:25 -0400 Subject: Lua command entry improvements. Mimic Lua 5.3 interpreter by auto-printing results and making '=' prefix optional, call returned functions implicitly (no calling parentheses required), and pretty print tables. --- doc/manual.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'doc/manual.md') diff --git a/doc/manual.md b/doc/manual.md index 4aed5d5f..ad882e50 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -1343,12 +1343,15 @@ For now, the [wiki][] hosts third-party, user-created themes. The command entry grants access to Textadept's Lua state. Press `Ctrl+E` (`⌘E` on Mac OSX | `M-C` in curses) to display the entry. It is useful for debugging, -inspecting, and entering `buffer` or `view` commands. If you try to cause -instability in Textadept's Lua state, you will probably succeed so be careful. -The [Lua API][] lists available commands. The command entry provides abbreviated -commands for [`buffer`][], [`view`][] and [`ui`][]: for example you may reduce -the `buffer:append_text('foo')` command to `append_text('foo')`. These commands -are runnable on startup using the `-e` and `--execute` command line switches. +inspecting, and entering commands (e.g. `buffer` or `view` commands). If you try +to cause instability in Textadept's Lua state, you will probably succeed, so be +careful. The [Lua API][] lists available commands. In addition to behaving like +Lua's interactive prompt, the command entry provides some shortcuts for common +[`buffer`][], [`view`][] and [`ui`][] commands. For example, instead of entering +`buffer:append_text('foo')`, you can use `append_text('foo')`. Also, function +call parentheses can be omitted. For example, instead of `view:split()`, you can +simply use `split`. Finally, these commands are runnable on startup using the +`-e` and `--execute` command line switches. Pressing `Ctrl+H` (`^H` | `M-H` or `M-S-H`) shows help for the current command. -- cgit v1.2.3