blob: 4a4055faa052bef555e3d48296094424323b04e6 [file] [log] [blame]
Kurt B. Kaiser4d5bc602004-06-06 01:29:22 +00001# config-extensions.def
2#
Kurt B. Kaiser282f1222003-05-18 02:21:55 +00003# IDLE reads several config files to determine user preferences. This
Kurt B. Kaisercca91222003-07-16 03:10:43 +00004# file is the default configuration file for IDLE extensions settings.
Steven M. Gava72c3bf02002-01-19 10:41:51 +00005#
6# Each extension must have at least one section, named after the extension
Kurt B. Kaiser318016b2002-12-03 20:34:43 +00007# module. This section must contain an 'enable' item (=1 to enable the
Kurt B. Kaiser4d5bc602004-06-06 01:29:22 +00008# extension, =0 to disable it), it may contain 'enable_editor' or 'enable_shell'
9# items, to apply it only to editor/shell windows, and may also contain any
10# other general configuration items for the extension.
11#
12# Each extension must define at least one section named ExtensionName_bindings
13# or ExtensionName_cfgBindings. If present, ExtensionName_bindings defines
14# virtual event bindings for the extension that are not user re-configurable.
15# If present, ExtensionName_cfgBindings defines virtual event bindings for the
16# extension that may be sensibly re-configured.
17#
18# If there are no keybindings for a menus' virtual events, include lines like
19# <<toggle-code-context>>= (See [CodeContext], below.)
20#
Kurt B. Kaisercca91222003-07-16 03:10:43 +000021# Currently it is necessary to manually modify this file to change extension
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000022# key bindings and default values. To customize, create
23# ~/.idlerc/config-extensions.cfg and append the appropriate customized
24# section(s). Those sections will override the defaults in this file.
Kurt B. Kaiser4d5bc602004-06-06 01:29:22 +000025#
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000026# Note: If a keybinding is already in use when the extension is
Kurt B. Kaisercca91222003-07-16 03:10:43 +000027# loaded, the extension's virtual event's keybinding will be set to ''.
Kurt B. Kaiser4d5bc602004-06-06 01:29:22 +000028#
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000029# See config-keys.def for notes on specifying keys and extend.txt for
30# information on creating IDLE extensions.
Steven M. Gavac11ccf32001-09-24 09:43:17 +000031
Steven M. Gava0cae01c2002-01-04 07:53:06 +000032[FormatParagraph]
33enable=1
Steven M. Gava72c3bf02002-01-19 10:41:51 +000034[FormatParagraph_cfgBindings]
35format-paragraph=<Alt-Key-q>
Steven M. Gava0cae01c2002-01-04 07:53:06 +000036
Steven M. Gavac11ccf32001-09-24 09:43:17 +000037[AutoExpand]
38enable=1
Steven M. Gava72c3bf02002-01-19 10:41:51 +000039[AutoExpand_cfgBindings]
40expand-word=<Alt-Key-slash>
Steven M. Gavac11ccf32001-09-24 09:43:17 +000041
Steven M. Gavac11ccf32001-09-24 09:43:17 +000042[ZoomHeight]
43enable=1
Steven M. Gava72c3bf02002-01-19 10:41:51 +000044[ZoomHeight_cfgBindings]
Kurt B. Kaiser710fa6c2002-12-23 03:35:27 +000045zoom-height=<Alt-Key-2>
Steven M. Gava72c3bf02002-01-19 10:41:51 +000046
Kurt B. Kaiser969de452002-06-12 03:28:57 +000047[ScriptBinding]
48enable=1
49[ScriptBinding_cfgBindings]
Kurt B. Kaisereb9637e2003-01-26 04:17:16 +000050run-module=<Key-F5>
Kurt B. Kaiser318016b2002-12-03 20:34:43 +000051check-module=<Alt-Key-x>
Steven M. Gavac11ccf32001-09-24 09:43:17 +000052
53[CallTips]
54enable=1
Steven M. Gava72c3bf02002-01-19 10:41:51 +000055[CallTips_bindings]
56paren-open=<Key-parenleft>
57paren-close=<Key-parenright>
58check-calltip-cancel=<KeyRelease>
59calltip-cancel=<ButtonPress> <Key-Escape>
Steven M. Gavac11ccf32001-09-24 09:43:17 +000060
61[ParenMatch]
62enable=0
63style= expression
64flash-delay= 500
65bell= 1
66hilite-foreground= black
67hilite-background= #43cd80
Steven M. Gava72c3bf02002-01-19 10:41:51 +000068[ParenMatch_bindings]
69flash-open-paren=<KeyRelease-parenright> <KeyRelease-bracketright> <KeyRelease-braceright>
70check-restore=<KeyPress>
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000071
72[CodeContext]
73enable=1
Kurt B. Kaiser4d5bc602004-06-06 01:29:22 +000074enable_shell=0
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000075numlines=3
Kurt B. Kaiser4d5bc602004-06-06 01:29:22 +000076visible=0
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000077bgcolor=LightGray
78fgcolor=Black
Kurt B. Kaiserd00587a2004-04-24 03:08:13 +000079[CodeContext_bindings]
80toggle-code-context=