EDITKEYS — Display and change plugin settings.

Syntax:
EDITKEYS /A:n /B:n /C:n /D /E:n /Kn:key /L /Q /R /S /X:key /Y:n

/A:nchange the LastArgs flags2
/B:nchange the auto-close flags0
/C:nchange the copy chime sound1
/Drestore default plugin settings
/E:nchange the error sound2
/Kn:keydefine or change a hotkey
/Llist all supported hotkeys
/Qquietly
/Rrestore saved settings from the registry
/Ssave the current settings to the registry
/X:keydelete a hotkey
/Y:nchange the Scrolly flags1

EDITKEYS with no options displays the plugin’s current settings.


/Kn:key assigns a hotkey to an action. n is the action number, and key is the name of the key to perform that action:

nAction:Default:
1Swap CharactersAlt-;
2Swap ArgumentsAlt-'
3Insert Last ArgsF3
4Clear ScreenAlt-L
5Math WordAlt-=
6Expand ExpressionCtrl-Shift-X
7Unicode EntryAlt-U
8Copy LineAlt-C
9Copy WordAlt-W
10Cut WordCtrl-Alt-W
11Swap Clipboard WordCtrl-Alt-Z
12Change Word CaseCtrl-U
13Custom Insert 1Alt-I
14Custom Insert 2
15Custom Insert 3
16Character InfoCtrl-A
17Scroll Up By CommandsCtrl-Alt-Up
18Scroll Down By CommandsCtrl-Alt-Down
19File To URICtrl-Alt-F
20Print Viewport PictureCtrl-Shift-P
21Save Viewport PictureCtrl-Shift-Q
22Print HistoryCtrl-P
23Search Path and ExpandCtrl-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:
0none
1TCC’s internal beep
2the Windows “Asterisk” sound
3the Windows “Default Beep” sound
4the Windows “Exclamation” sound
5the Windows “Critical Stop” sound
6the 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:
0none
1chime sound (built into the plugin)
2the Windows “Asterisk” sound
3the Windows “Default Beep” sound
4the Windows “Exclamation” sound
5the Windows “Critical Stop” sound
6the 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:
1Overwrite
2Break on slash
4Keep old args
8Space 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:
1Square brackets[ ]
2Parentheses( )
4Braces{ }
8Quotation marks" "
16Apostrophes' '
32Strong 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:
1Wrap around
2Visible 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-1Custom insert string #1
Insert-2Custom insert string #2
Insert-3Custom insert string #3
SavePicDirSave location for Save Viewport Picture
SavePicExtFile type for Save Viewport Picture
SavePicFlags
PrintHistoryMaxLinesMaximum lines for Print History to print
PrintHistoryFlagsPrint History features
PathExpandFlagsSearch 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.