EDITKEYS
— Display and change plugin settings.
Syntax:
EDITKEYS
/A:
n /B:
n /C:
n /D /E:
n /K
n:
key /L /Q /R /S /X:
key /Y:
n
/A: n | change the LastArgs flags | 2 |
/B: n | change the auto-close flags | 0 |
/C: n | change the copy chime sound | 1 |
/D | restore default plugin settings | |
/E: n | change the error sound | 2 |
/K n: key | define or change a hotkey | |
/L | list all supported hotkeys | |
/Q | quietly | |
/R | restore saved settings from the registry | |
/S | save the current settings to the registry | |
/X: key | delete a hotkey | |
/Y: n | change the Scrolly flags | 1 |
EDITKEYS
with no options displays the plugin’s
current settings.
/K
n:
key
assigns a hotkey to an action. n is the action
number, and key is the name of the key to perform
that action:
n | Action: | Default: |
---|---|---|
1 | Swap Characters | Alt-; |
2 | Swap Arguments | Alt-' |
3 | Insert Last Args | F3 |
4 | Clear Screen | Alt-L |
5 | Math Word | Alt-= |
6 | Expand Expression | Ctrl-Shift-X |
7 | Unicode Entry | Alt-U |
8 | Copy Line | Alt-C |
9 | Copy Word | Alt-W |
10 | Cut Word | Ctrl-Alt-W |
11 | Swap Clipboard Word | Ctrl-Alt-Z |
12 | Change Word Case | Ctrl-U |
13 | Custom Insert 1 | Alt-I |
14 | Custom Insert 2 | |
15 | Custom Insert 3 | |
16 | Character Info | Ctrl-A |
17 | Scroll Up By Commands | Ctrl-Alt-Up |
18 | Scroll Down By Commands | Ctrl-Alt-Down |
19 | File To URI | Ctrl-Alt-F |
20 | Print Viewport Picture | Ctrl-Shift-P |
21 | Save Viewport Picture | Ctrl-Shift-Q |
22 | Print History | Ctrl-P |
23 | Search Path and Expand | Ctrl-Alt-E |
A hotkey can only perform one action. If a key is assigned to an
action, you can use /K
to reassign it; the new action will
replace the old one. On the other hand, you can assign multiple keys
to the same action.
rem Use Ctrl-Alt-C to clear the screen:
editkeys /k4:ctrl-alt-c
/X:
key
lets you delete a hotkey. key is the
key’s name, e.g. Alt-L
.
rem Remove the Alt-L hotkey:
editkeys /x:alt-l
/E:
n
allows you to change the sound the plugin makes when an error is
encountered.
n: | Sound: |
---|---|
0 | none |
1 | TCC’s internal beep |
2 | the Windows “Asterisk” sound |
3 | the Windows “Default Beep” sound |
4 | the Windows “Exclamation” sound |
5 | the Windows “Critical Stop” sound |
6 | the Windows “Question” sound |
Sound number 1 can be customized via the Option dialog; look for the “Default beep” settings on the Advanced tab. Numbers 2 through 6 can be redefined in the Control Panel “Sound” applet.
/C:
n
lets you change the sound the plugin makes when text is copied to the
clipboard.
n: | Sound: |
---|---|
0 | none |
1 | chime sound (built into the plugin) |
2 | the Windows “Asterisk” sound |
3 | the Windows “Default Beep” sound |
4 | the Windows “Exclamation” sound |
5 | the Windows “Critical Stop” sound |
6 | the Windows “Question” sound |
Numbers 2 through 6 can be redefined in the Control Panel “Sound” applet.
/A:
n
sets options which affect the insert last args
hotkey. n is a bitmapped value:
Value: | Feature: |
---|---|
1 | Overwrite |
2 | Break on slash |
4 | Keep old args |
8 | Space around args |
See insert last args for details on these options.
/B:
n
determines which characters are automatically closed
as you type them. n is a bitmapped value:
Value: | Feature: | |
---|---|---|
1 | Square brackets | [ ] |
2 | Parentheses | ( ) |
4 | Braces | { } |
8 | Quotation marks | " " |
16 | Apostrophes | ' ' |
32 | Strong quotes | ` ` |
The default is zero, don’t auto-close anything. Note that this feature only works in insert mode. It is automatically disabled in overstrike mode, where it makes no sense.
rem Auto-close square brackets and parentheses:
editkeys /b:3
/Y:
n
sets options which affect the Scroll Up and
and Down By Commands feature.
n is a bitmapped value:
Value: | Feature: |
---|---|
1 | Wrap around |
2 | Visible marks (debugging feature) |
/D
restores the original plugin
default settings (shown in the third column of the
table above) and the default hotkey assignments (shown in the third
column of this table). Environment variables
will not be affected.
/R
restores the settings, hotkey
assignments, and environment variables saved to the registry, if any.
If you specify both /D
and /R
, EditKeys will try
to read settings from the registry first, and then restore the original
plugin defaults only if restoring from the registry failed.
/S
saves the current settings,
including hotkey assignments and environment variables, to the registry.
They will be loaded automatically the next time you load this plugin.
/S
and /R
save and
restore these environment variables:
Variable Name: | Function: |
---|---|
Insert-1 | Custom insert string #1 |
Insert-2 | Custom insert string #2 |
Insert-3 | Custom insert string #3 |
SavePicDir | Save location for Save Viewport Picture |
SavePicExt | File type for Save Viewport Picture |
SavePicFlags | |
PrintHistoryMaxLines | Maximum lines for Print History to print |
PrintHistoryFlags | Print History features |
PathExpandFlags | Search Path and Expand features |
When saving with /S
, all of the above environment variables will be saved
to the registry if defined. If a variable is not defined, it will be deleted from the
registry.
When restoring with /R
, any of the above variables which are saved to the
registry will be restored to the environment. However, if a variable is not present in
the registry, it will not be deleted from the environment.