aboutsummaryrefslogtreecommitdiff
path: root/doc/10_Advanced.md
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-08-05 09:29:17 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2012-08-05 09:29:17 -0400
commit6b3b54d8fac94251f6bf53cbdfaca84c16a05a0f (patch)
treeffd21e9d9dc372fcd593e3c26e4f93f42c43560f /doc/10_Advanced.md
parente84d0b3660cad721400f68f485208f26d6bcb1d5 (diff)
downloadtextadept-6b3b54d8fac94251f6bf53cbdfaca84c16a05a0f.tar.gz
textadept-6b3b54d8fac94251f6bf53cbdfaca84c16a05a0f.zip
Added ncurses key commands to individual manual pages.
Diffstat (limited to 'doc/10_Advanced.md')
-rw-r--r--doc/10_Advanced.md27
1 files changed, 14 insertions, 13 deletions
diff --git a/doc/10_Advanced.md b/doc/10_Advanced.md
index 21cb29ae..adae9ad7 100644
--- a/doc/10_Advanced.md
+++ b/doc/10_Advanced.md
@@ -3,10 +3,10 @@
## Command Entry
Access to the Lua state is available through the command entry. Press `Ctrl+E`
-(`⌘E` on Mac OSX) to access it. It is useful for debugging, inspecting, and
-entering buffer or view commands. If you try to cause instability in Textadept's
-Lua state, you might very well succeed so be careful. For more information, see
-the [scripting][] page.
+(`⌘E` on Mac OSX | `M-C` in ncurses) to access it. It is useful for debugging,
+inspecting, and entering buffer or view commands. If you try to cause
+instability in Textadept's Lua state, you might very well succeed so be careful.
+For more information, see the [scripting][] page.
Abbreviated commands for the `buffer`, `view` and `gui` are available. So
`buffer:append_text('foo')` can be shortened to `append_text('foo')`. `print()`
@@ -20,8 +20,9 @@ redirects to [`gui.print()`][]. Use `_G.print()` for Lua's `print()`.
### Tab Completion
Tab-completion for functions, variables, tables, etc. is available. Press the
-`Tab` (`⇥`) key to display a list of available completions. Use the arrow keys
-to make a selection and press `Enter` (`↩`) to insert it.
+`Tab` (`⇥` on Mac OSX | `Tab` in ncurses) key to display a list of available
+completions. Use the arrow keys to make a selection and press `Enter` (`↩` |
+`Enter`) to insert it.
![Command Completion](images/commandentrycompletion.png)
@@ -36,11 +37,11 @@ the implementation.
## Command Selection
If you did not disable the menu in your [preferences][], then pressing
-`Ctrl+Shift+E` (`⌘⇧E` on Mac OSX) brings up the command selection dialog. Typing
-part of any command filters the list with spaces being wildcards. This is an
-easy way to run commands without navigating the menus, using the mouse, or
-remembering key commands. It is also useful for looking up particular key
-commands quickly.
+`Ctrl+Shift+E` (`⌘⇧E` on Mac OSX | `M-S-C` in ncurses) brings up the command
+selection dialog. Typing part of any command filters the list with spaces being
+wildcards. This is an easy way to run commands without navigating the menus,
+using the mouse, or remembering key commands. It is also useful for looking up
+particular key commands quickly.
[preferences]: 9_Preferences.html#User.Init
@@ -53,8 +54,8 @@ buffer (or a selection). You could do the following from the command entry:
ls={}; for l in buffer:get_text():gmatch('[^\n]+') do ls[#ls+1]=l end;
table.sort(ls); buffer:set_text(table.concat(ls, '\n'))
-A simpler way would be to press `Ctrl+|` (`⌘|` on Mac OSX), enter the shell
-command `sort`, and hit `Enter` (`↩`).
+A simpler way would be to press `Ctrl+|` (`⌘|` on Mac OSX | `^\` in ncurses),
+enter the shell command `sort`, and hit `Enter` (`↩` | `Enter`).
The standard input (stdin) for shell commands is determined as follows: