Вы находитесь на странице: 1из 2

TextPad Quick Reference Card Select to the start of the previous paragraph

Select forward to start of word


a-↑
c-W
Invoke the Find in Files dialog box
Find next instance of search pattern
c-F5
c-F
version 0.03 – editor: John Bokma – freelance programmer Select back to start of word c-s-B Find previous instance of search pattern c-s-F
Select back to end of word c-s-D Hypertext jump in Search Results window Enter
Cursor Movement Select to start of line, press twice to select to the Hypertext jump to next item in Search Results window F4
Cursor left one character ← left margin s-Home Hypertext jump to previous item in Search Results window s-F4
Cursor left one word c-← Select to end of line s-End Activate the Search Results window s-F11
Cursor right one character → Select to start of document c-s-Home
Cursor right one word c-→ Select to end of document c-s-End Bookmarks
Cursor down one line ↓ Select to matching { [ ( < or > ) ] } c-s-M Set or clear a bookmark on the current line c-F2
Cursor down to the start of the next paragraph a-↓ Switch in and out of selection mode c-Q-S Go to next bookmark F2
Cursor up one line ↑ Copy selection to clipboard c-C Go to previous bookmark s-F2
Cursor up to the start of the previous paragraph a-↑ Append selection to clipboard c-s-C
Edit Modes
Move cursor forward to start of word c-W Cut the selection to the clipboard c-X
Move the cursor back to start of word c-B Cut and append the selection to the clipboard c-s-X Switch between insert and overtype mode Insert
Move cursor back to end of word c-D Paste text from the clipboard c-V Switch in and out of block select mode c-Q-B
Cursor to start of line, press twice to go to the left margin Home Indent selected lines Tab Switch between read-only and edit modes c-Q-E
Cursor to end of line End Reduce indentation of selected lines s-Tab Switch in and out of word-wrap mode c-Q-W
Cursor to start of document c-Home Delete selection Backspace Macros
Cursor to end of document c-End Delete selection, or character after the cursor Delete
Cursor to the first visible line, in the current column, Invert case of selection c-K Record a new macro c-s-R
if possible a-Home Convert first character of selection to upper case and Playback the scratch macro c-R
Cursor to the last visible line, in the current column, the rest to lower case c-s-U Invoke the Playback Macro dialog box c-F7
if possible a-End Check the spelling of the selection F7 Documents
Move cursor to the next tab stop, or indent selected lines Tab
Move cursor to the previous tab stop, or reduce Formatting Create a new document c-N
Start a new line Enter Save the active document c-S
indentation of selected lines s-Tab
Insert new line after current line c-Enter Save all documents c-s-S
Go to line c-G
Insert new line before current line c-s-Enter Save as F12
Find matching { [ ( < or > ) ] } c-M
Increase indentation c-I Open a document using the Open File dialog box c-O
Deleting Reduce indentation c-s-I Open a document by typing its name c-s-O
Delete selection, or character before the cursor, Join selected lines c-J Insert the contents of a file at the cursor position c-s-V
(replace it with a space in overtype mode) Backspace Reformat selected lines c-s-J Delete all lines in the document a-Delete
Delete back to the last start of word c-Backspace Split word-wrapped lines c-a-J Next window c-Tab or c-F6
Delete selection, or character after the cursor Delete Center text c-E Previous window c-s-Tab or c-s-F6
Delete forward to the next start of word c-Delete Right align text c-s-E Close the active window c-F4
Delete to the end of the line c-s-Delete Insert a page break c-s-L Display in-context properties dialog box a-Enter
Delete all lines in the document a-Delete Display/hide visible spaces, tabs and paragraphs c-Q-I Display document statistics on status bar c-F1
Display/hide line numbers c-Q-L Invoke the Manage Files dialog box F3
Undo and Redo Set the right margin at the cursor position c-Q-R Invoke Windows File Manager or Explorer a-F3
Undo last edit c-Z Switch in and out of word-wrap mode c-Q-W Print active document c-P
Undo all edits c-s-Z Preview the active document as it will print c-s-P
Redo last undo c-Y Case Change and Transposing Check the spelling of the active document F7
Redo all undos c-s-Y Convert selection to lower case c-L Sort F9
Convert selection to upper case c-U Compare c-F9
Selection and Clipboard Convert first character of selection to upper case and Invoke the document selector F11
Select all c-A the rest to lower case c-s-U Scrolling and Scroll Bars
Cancel any existing selection Escape Invert case of selection c-K
Select left one character s-← Transpose the lines or characters either side of the cursor c-T Scroll the view up one line, without moving the cursor c-↓
Select left one word c-s-← Transpose the words either side of the cursor c-s-T Scroll the view down one line, without moving the cursor c-↑
Select right one character → Locks cursor position when scrolling with
Select right one word c-s-→ Search and Replace page up/down keys Scroll Lock
Select down one line s-↓ Invoke the Replace dialog box F8 Display/hide the horizontal scroll bar c-Q-H
Select to the start of the next paragraph a-s-↓ Replace next instance of search pattern c-F8 Display/hide the vertical scroll bar c-Q-V
Select up one line ↑ Invoke the Find dialog box F5 Switch in and out of synchronized scrolling mode c-Q-Y
Command Results \ "Escapes" the special meaning of the above expressions, $FileDir The drive and directory of the current document.
Stop the tool running in the command window c-Break so that they can be matched as literal characters. $WspDir The drive and directory of the current workspace
Hypertext jump in Command Results window Enter [:alpha:] Any letter. file.
Hypertext jump to next item in Command Results window F4 [:lower:] Any lower case letter. $FilePath The directory of the current document, stripped
Hypertext jump to previous item in Command Results window s-F4 [:upper:] Any upper case letter. of the drive.
Activate the Command Results window c-F11 [:alnum:] Any digit or letter. $UnixPath Same as $FilePath, except any '\' characters are
[:digit:] Any digit. changed to '/'.
Views [:xdigit:] Any hexadecimal digit (0-9, a-f or A-F). $Dir The current working drive and directory.
Activate next view F6 [:blank:] Space or tab. $UNIXDir Same as $Dir, except any '\' characters are
Activate previous view s-F6 [:space:] Space, tab, vertical tab, return, line feed, form feed. changed to '/'.
[:cntrl:] Control characters (Delete and ASCII codes less than $Line The cursor line within the current document.
Help space). $Col The cursor column within the current document.
In-context help F1 [:print:] Printable characters, including space. $Prompt Prompt for a value to substitute for $Prompt. If it
Invoke in-context help cursor s-F1 [:graph:] Printable characters, excluding space. is followed by a string in brackets, that string
[:punct:] Anything that is not a control or alphanumeric character. will be displayed in the prompt dialog box.
Miscellaneous [:word:] Letters, hypens and apostrophes. $Password Prompt for a value to substitute for $Password.
Activate the Clip Library a-0 [:token:] Any of the characters defined on the Syntax page for the The value will not be echoed as it is typed. If it is
Show or hide the Clip Library c-F3 document class, or in the syntax definition file if syntax followed by a string in brackets, that string will
Display in-context properties dialog box a-Enter highlighting is enabled for the document class. be displayed in the prompt dialog box.
Activate the main menu F10 $Sel Selected text in the active document. This is
Popup the in-context document menu s-F10 or right mouse Replacement Expressions limited to the first line in a multi-line selection.
Popup the insert date/time menu c-F10 or c-right mouse & Substitute the text matching the entire search pattern. $SelLine The text on the line containing the cursor. This
Display the Preferences dialog box c-Q-P \0 to \9 Substitute the text matching tagged expression 0 through has the side effect of selecting that line.
9. \0 is equivalent to &. $SelWord The word containing the cursor. This has the side
Regular Expressions (POSIX) \f Substitute a page break (form feed). effect of selecting that word.
. Any single character. \i<no> Substitute a sequence number. $Clip Selected text in the active document, or the
[] Any one of the characters in the brackets, or any of a \n Substitute a newline. whole document if nothing is selected, is copied
range of characters separated by a hyphen (-), or a \p Substitute the contents of the clipboard. to the clipboard before running the tool.
character class operator (see below). \t Substitute a tab. $AppWnd The handle of the main application window. This
[^] Any characters except for those after the caret "^". \xdd Substitute the character with hex code dd (must be 2 hex is a decimal number.
^ The start of a line (column 1). digits, excluding 00). $DocWnd The handle of the active document's window.
$ The end of a line (not the line break characters). \u Force the next substituted character to be in upper case. This is a decimal number.
\< The start of a word. \l Force the next substituted character to be in lower case. $Encoding The characters encoding of the active document.
\> The end of a word. \U Force all subsequent substituted characters to be in This is of the forms: windows-ddd (or cpddd for
\t The tab character. upper case. DOS), UTF-8, UTF16-LE or UTF-16BE, where
\f The page break (form feed) character. \L Force all subsequent substituted characters to be in ddd is a code page number.
\n A new line character, for matching expressions that span lower case.
line boundaries. This cannot be followed by operators \E or \e Turns off previous \U or \L. Page Header/Footer Macros
'*', '+' or {}. Do not use this for constraining matches to The normal font for subsequent text &n
the end of a line. It's much more efficient to use "$". Tool Parameter Macros A bold font for subsequent text &b
\xdd "dd" is the two-digit hexadecimal code for any $File The fully qualified filename of the current An italic font for subsequent text &i
character. document. A bold italic font for subsequent text &I
\( \) Groups a tagged expression to use in replacement $DOSFile Same as $File, except that DOS aliases are Subsequent text to be left justified &l
expressions. An RE can have up to 9 such expressions. substituted for any long names in the path, and Subsequent text to be centered (this is the default) &c
\| Matches either the expression to its left or its right. characters are converted to the DOS (OEM) code Subsequent text to be right justified &r
* Matches zero or more preceding characters/expressions. set. The current date in Windows short form &d
? Matches zero or one preceding characters/expressions. $UNIXFile Same as $File, except any '\' characters are The current date in Windows long form &D
+ Matches one or more preceding characters/ expressions. changed to '/'. The current time in Windows format &t
{count} Matches the specified number of the preceding $FileName The simple filename of the current document. The filename, excluding its path &f
characters or expressions. $BaseName $FileName stripped of any extension. The full filename, including its path &F
{min,} Matches at least the specified number of the preceding $DOSBaseName Same as $BaseName, except that the DOS alias The page number &p
characters or expressions. is substituted for a long file name, and characters The total number of pages &P
{min,max} Matches between min and max of the preceding are converted to the DOS (OEM) code set.
characters or expressions. $WspBaseName The workspace filename, stripped of any path Based on the TextPad help file. Edited by John Bokma (freelance
and extension. programmer). For the latest version: http://johnbokma.com/textpad/

Вам также может понравиться