From 8ecc8aa21bf61063a8e2d0ef29a78d4a62616d29 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 13 Jul 2011 20:51:17 -0400 Subject: Refactored key commands and added menu accelerators. Key commands are now in keys.conf and keys.osx.conf which are loaded by the _m.textadept.menu module. --- doc/manual/10_Advanced.md | 18 +-- doc/manual/14_Appendix.md | 311 +++++++++++++++++++++------------------ doc/manual/1_Introduction.md | 5 + doc/manual/3_UserInterface.md | 4 +- doc/manual/4_WorkingWithFiles.md | 34 +++-- doc/manual/5_FileNavigation.md | 11 +- doc/manual/6_AdeptEditing.md | 86 +++++------ doc/manual/7_Modules.md | 24 +-- doc/manual/9_Preferences.md | 21 ++- 9 files changed, 283 insertions(+), 231 deletions(-) (limited to 'doc') diff --git a/doc/manual/10_Advanced.md b/doc/manual/10_Advanced.md index a24c0bdf..274f6293 100644 --- a/doc/manual/10_Advanced.md +++ b/doc/manual/10_Advanced.md @@ -2,11 +2,11 @@ ## Command Entry -Access to the Lua state is available through the command entry. Press `F2` 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](11_Scripting.html) page. +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](11_Scripting.html) page. Abbreviated commands for the `buffer`, `view` and `gui` are available. So `buffer:append_text('foo')` can be shortened to `append_text('foo')`. `print()` @@ -18,8 +18,8 @@ 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` (`⇥`) key to display a list of available completions. Use the arrow keys +to make a selection and press `Enter` (`↩`) to insert it.  @@ -39,8 +39,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 `Alt+R` (`Ctrl+Apple+R` on Mac OSX), enter the -shell command `sort`, and hit `Enter`. +A simpler way would be to press `Ctrl+|` (`⌘|` on Mac OSX), enter the shell +command `sort`, and hit `Enter` (`↩`). The standard input (stdin) for shell commands is determined as follows: diff --git a/doc/manual/14_Appendix.md b/doc/manual/14_Appendix.md index 82ab7d69..83dab56c 100644 --- a/doc/manual/14_Appendix.md +++ b/doc/manual/14_Appendix.md @@ -2,146 +2,177 @@ ## Key Bindings -
| Linux / Win32 | Mac OSX | Command |
|---|---|---|
| File | ||
| Ctrl+N | Apple+N | New file |
| Ctrl+O | Apple+O | Open file |
| Alt+O | Ctrl+O | Open recent file |
| None | None | Reload file |
| Ctrl+S | Apple+S | Save file |
| Ctrl+Shift+S | Apple+Shift+S | Save file as |
| Ctrl+W | Apple+W | Close file |
| Ctrl+Shift+W | Apple+Shift+W | Close all |
| None | None | Load Session |
| None | None | Save Session |
| Alt+Q | Apple+Q | Quit textadept |
| Edit | ||
| Ctrl+Z | Apple+Z | Undo |
| Ctrl+Y | Apple+Shift+Z | Redo |
| Ctrl+X Shift+Del | Apple+X Shift+Del | Cut |
| Ctrl+C Ctrl+Shift+Insert | Apple+C Ctrl+Shift+Insert | Copy |
| Ctrl+V Shift+Insert | Apple+V Shift+Insert | Paste |
| Ctrl+A | Apple+A | Select All |
| Ctrl+E | Ctrl+M | Go to matching brace |
| Ctrl+Shift+E | Apple+Shift+E | Select to matching brace |
| Ctrl+Return | Escape | Autocomplete word in file |
| Ctrl+I | Ctrl+Escape | Autocomplete symbol for supported languages |
| Ctrl+H | Ctrl+H | Show symbol apidoc for supported languages |
| Ctrl+Q | Ctrl+Q | Block comment/uncomment |
| None | None | Delete word |
| Ctrl+Shift+H | Ctrl+Apple+T | Highlight word occurances |
| None | Ctrl+T | Transpose characters |
| None | None | Convert indentation |
| None | Ctrl+K | Cut to end of line |
| None | Ctrl+Y | Paste text cut |
| Alt+C, T | Ctrl+C, T | Enclose word or selection in XML tag |
| Alt+C, Shift+T | Ctrl+C, Shift+T | Enclose word or selection in single XML tag |
| Alt+C, " | Ctrl+C, " | Enclose word or selection in double quotes |
| Alt+C, ' | Ctrl+C, ' | Enclose word or selection in single quotes |
| Alt+C, ( | Ctrl+C, ( | Enclose word or selection in parenthesis |
| Alt+C, [ | Ctrl+C, [ | Enclose word or selection in brackets |
| Alt+C, { | Ctrl+C, { | Enclose word or selection in braces |
| Alt+C, C, <char> | Ctrl+C, C, <char> | Enclose word or selection in character |
| Alt+S, T | Ctrl+S, T | Select between XML tags |
| Alt+S, " | Ctrl+S, " | Select between double quotes |
| Alt+S, ' | Ctrl+S, ' | Select between single quotes |
| Alt+S, ( | Ctrl+S, ( | Select between parenthesis |
| Alt+S, [ | Ctrl+S, [ | Select between brackets |
| Alt+S, { | Ctrl+S, { | Select between braces |
| Alt+S, W | Ctrl+S, W | Select word |
| Alt+S, L | Ctrl+S, L | Select line |
| Alt+S, P | Ctrl+S, P | Select paragraph |
| Alt+S, S | Ctrl+S, S | Select scope (style) |
| Alt+S, G | Ctrl+S, G | Grow selection by a character on each end |
| Alt+S, C, <char> | Ctrl+S, C, <char> | Select between characters |
| Insert | Insert | Toggle overtype |
| Ctrl+Alt+Shift+I | Ctrl+Apple+Shift+I | Show style |
| Search | ||
| Ctrl+F | Apple+F | Find |
| F3 | Apple+G | Find next |
| None | Apple+Shift+G | Find prev |
| None | Apple+R | Replace |
| Ctrl+Shift+F | Apple+I | Find incremental |
| None | Apple+Shift+F | Find in files |
| None | Ctrl+Apple+G | Goto next file in list |
| None | Ctrl+Apple+Shift+G | Goto prev file in list |
| Ctrl+G | Ctrl+G | Goto line |
| Tools | ||
| F2 | F2 | Focus Lua command entry |
| Ctrl+R | Ctrl+R | Run file |
| Ctrl+Shift+R | Ctrl+Shift+R | Compile file |
| Alt+R | Ctrl+Apple+R | Filter through shell command |
| Tab | Tab | Expand snippet or next placeholder or indent text |
| Alt+I | Ctrl+I | Select snippet to insert |
| Shift+Tab | Shift+Tab | Previous snippet placeholder or dedent text |
| Ctrl+Alt+I | Ctrl+Apple+I | Cancel current snippet |
| Buffers | ||
| Ctrl+B | Apple+B | Switch buffers |
| Ctrl+Tab | Ctrl+Tab | Next buffer |
| Ctrl+Shift+Tab | Ctrl+Shift+Tab | Prev buffer |
| Ctrl+Shift+B, E | Apple+Shift+B, E | Toggle show end of line |
| Ctrl+Shift+B, W | Apple+Shift+B, W | Toggle show whitespace |
| Ctrl+Shift+B, I | Apple+Shift+B, I | Toggle show indentation guides |
| Ctrl+Shift+B, Tab | Apple+Shift+B, Tab | Toggle use tabs or spaces |
| Ctrl+Shift+B, Space | Apple+Shift+B, Space | Toggle show whitespace |
| Ctrl+Shift+B, V | Apple+Shift+B, V | Toggle use virtual space |
| Ctrl+L | Ctrl+L | Select lexer |
| F5 | F5 | Refresh syntax highlighting |
| Split Views | ||
| Ctrl+Alt+V, N | Ctrl+V, N | Next view |
| Ctrl+Alt+V, P | Ctrl+V, P | Prev view |
| Ctrl+Alt+V, S | Ctrl+V, S | Split view horizontal |
| Ctrl+Alt+V, Shift+S | Ctrl+V, Shift+S | Split view vertica |
| Ctrl+Alt+V, W | Ctrl+V, W | Unsplit view |
| Ctrl+Alt+V, Shift+W | Ctrl+V, Shift+W | Unsplit all views |
| None | None | Grow split view |
| None | None | Shrink split view |
| Ctrl+Plus | Ctrl+Plus | Zoom in |
| Ctrl+Minus | Ctrl+Minus | Zoom out |
| Ctrl+0 | Ctrl+0 | Zoom normal |
| Movement | ||
| Right | Right Ctrl+F | Next character |
| Shift+Right | Shift+Right Ctrl+Shift+F | Select next character |
| Ctrl+Right | Ctrl+Right Ctrl+Apple+F | Next word |
| Ctrl+Shift+Right | Ctrl+Shift+Right Ctrl+Apple+Shift+F | Select next word |
| Alt+Shift+Right | Apple+Shift+Right | Rectangular select next character |
| Left | Left Ctrl+B | Prev character |
| Shift+Left | Shift+Left Ctrl+Shift+B | Select prev character |
| Ctrl+Left | Ctrl+Left Ctrl+Apple+B | Prev word |
| Ctrl+Shift+Left | Ctrl+Shift+Left Ctrl+Apple+Shift+B | Select prev word |
| Alt+Shift+Left | Apple+Shift+Left | Rectangular select prev character |
| Down | Down Ctrl+N | Next line |
| Shift+Down | Shift+Down Ctrl+Shift+N | Select next line |
| Ctrl+Down | Ctrl+Down | Scroll line down |
| Ctrl+Shift+Down | Ctrl+Shift+Down | Rectangular select next line |
| Up | Up Ctrl+P | Next character |
| Shift+Up | Shift+Up Ctrl+Shift+P | Select prev line |
| Ctrl+Up | Ctrl+Up | Scroll line up |
| Ctrl+Shift+Up | Ctrl+Shift+Up | Rectangular select prev line |
| Home | Home Ctrl+A | Goto beginning of line |
| Shift+Home | Shift+Home Ctrl+Shift+A | Select to beginning of line |
| Ctrl+Home | Ctrl+Home | Goto document start |
| Ctrl+Shift+Home | Ctrl+Shift+Home | Select to file start |
| Alt+Shift+Home | Apple+Shift+Home | Rectangular select to beginning of line |
| End | End Ctrl+E | Goto end of line |
| Shift+End | Shift+End Ctrl+Shift+E | Select to end of line |
| Ctrl+End | Ctrl+End | Goto file end |
| Ctrl+Shift+End | Ctrl+Shift+End | Select to file end |
| Alt+Shift+End | Apple+Shift+End | Rectangular select to end of line |
| Backspace Shift+Backspace | Backspace Shift+Backspace Ctrl+H | Delete previous character |
| Ctrl+Backspace | Ctrl+Backspace Ctrl+Apple+H | Delete previous word |
| Ctrl+Shift+Backspace | Ctrl+Shift+Backspace | Delete to beginning of line |
| Del | Del Ctrl+D | Delete next character |
| Ctrl+Del | Ctrl+Del Ctrl+Apple+D | Delete next word |
| Ctrl+Shift+Del | Ctrl+Shift+Del | Delete to end of line |
| Page Up | Page Up | Page up |
| Shift+Page Up | Shift+Page Up | Select page up |
| Alt+Shift+Page Up | Apple+Shift+Page Up | Rectangular select page up |
| Page Down | Page Down | Page down |
| Shift+Page Down | Shift+Page Down | Select page down |
| Alt+Shift+Page Down | Apple+Shift+Page Down | Rectangular select page down |