diff options
author | 2012-09-12 11:24:11 -0400 | |
---|---|---|
committer | 2012-09-12 11:24:11 -0400 | |
commit | 9dc8ce16a1efc6482db6f1d5456d42958e79a06c (patch) | |
tree | e26ff636143fc74f92a6a3359a73e93194da6bc3 /doc/05_FileNavigation.md | |
parent | 4305f32ac153b7a45a1c001da2fcd412af905168 (diff) | |
download | textadept-9dc8ce16a1efc6482db6f1d5456d42958e79a06c.tar.gz textadept-9dc8ce16a1efc6482db6f1d5456d42958e79a06c.zip |
Documentation overhaul.
Rewrote most of the manual and Lua API to complement each other.
Key bindings reference moved from Appendix to modules/textadept/keys.lua LuaDoc.
Diffstat (limited to 'doc/05_FileNavigation.md')
-rw-r--r-- | doc/05_FileNavigation.md | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/doc/05_FileNavigation.md b/doc/05_FileNavigation.md index 93e7f9d9..e0749313 100644 --- a/doc/05_FileNavigation.md +++ b/doc/05_FileNavigation.md @@ -1,26 +1,37 @@ # File Navigation -## Bookmarks +## Basic Movements -You can place bookmarks on lines in buffers to jump back to them later. Use the -`Tools -> Bookmark` menu options or key commands to do so. +Textadept supports the key bindings you are accustomed to for navigating text +fields on your platform. The arrow keys move the caret in a particular +direction, `Ctrl+Left` and `Ctrl+Right` (`^⇠` and `^⇢` on Mac OSX | `^Left` and +`^Right` in ncurses) move by words, `PgUp` and `PgDn` (`⇞` and `⇟` | `PgUp` and +`PgDn`) move by pages, etc. Mac OSX and ncurses also support some Bash-style +bindings like `^B`, `^F`, `^P`, `^N`, `^A`, and `^E`. A complete list of +movement bindings is found in the "Movement" section of the +[key bindings list][]. -## Goto Line +[key bindings list]: api/_M.textadept.keys.html#Key.Bindings -To jump to a specific line in a file, press `Ctrl+J` (`⌘J` on Mac OSX | `^J` in -ncurses) and specify the line number in the prompt and press `Enter` (`↩` | -`Enter`) or select `OK`. - -## Goto Matching Brace +## Brace Match By default, Textadept will highlight the matching brace characters under the -caret : `(`, `)`, `[`, `]`, `{`, `}`, `<`, and `>`. Pressing `Ctrl+M` (`^M` on -Mac OSX | `M-M` in ncurses) moves the caret to that matching brace and -`Ctrl+Shift+M` (`^⇧M` | `M-S-M`) extends the selection. +caret : `(`, `)`, `[`, `]`, `{`, and `}`. Pressing `Ctrl+M` (`^M` on Mac OSX | +`M-M` in ncurses) moves the caret to that matching brace.  -## Mac OSX and ncurses +## Bookmarks -Textadept supports the keybindings you are accustomed to for navigating text -fields in Mac OSX and entering commands in the Linux/BSD terminal. +You can place bookmarks on lines in buffers to jump back to them later. +`Ctrl+F2` (`⌘F2` on Mac OSX | none in ncurses) toggles a bookmark on the current +line, `F2` jumps to the next bookmarked line, `Shift+F2` (`⇧F2` | none) jumps to +the previously bookmarked line, `Alt+F2` (`⌥F2` | none) jumps to the bookmark +selected from a list, and `Ctrl+Shift+F2` (`⌘⇧F2` | none) clears all bookmarks +in the current buffer. + +## Goto Line + +To jump to a specific line in a file, press `Ctrl+J` (`⌘J` on Mac OSX | `^J` in +ncurses) and specify the line number in the prompt and press `Enter` (`↩` | +`Enter`) or select `OK`. |