blob: a24b8c9316ba07ecde739babd9ab49a45d091a24 [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#
Terry Jan Reedy00bdce32014-10-14 18:55:20 -04006# Each extension must have at least one section, named after the
7# extension module. This section must contain an 'enable' item (=True to
8# enable the extension, =False to disable it), it may contain
9# 'enable_editor' or 'enable_shell' items, to apply it only to editor ir
10# shell windows, and may also contain any other general configuration
11# items for the extension. Other True/False values will also be
12# recognized as boolean by the Extension Configuration dialog.
Kurt B. Kaiser4d5bc602004-06-06 01:29:22 +000013#
Terry Jan Reedy00bdce32014-10-14 18:55:20 -040014# Each extension must define at least one section named
15# ExtensionName_bindings or ExtensionName_cfgBindings. If present,
16# ExtensionName_bindings defines virtual event bindings for the
17# extension that are not user re-configurable. If present,
18# ExtensionName_cfgBindings defines virtual event bindings for the
Kurt B. Kaiser4d5bc602004-06-06 01:29:22 +000019# extension that may be sensibly re-configured.
20#
Terry Jan Reedy00bdce32014-10-14 18:55:20 -040021# If there are no keybindings for a menus' virtual events, include lines
22# like <<toggle-code-context>>= (See [CodeContext], below.)
Kurt B. Kaiser4d5bc602004-06-06 01:29:22 +000023#
Terry Jan Reedy00bdce32014-10-14 18:55:20 -040024# Currently it is necessary to manually modify this file to change
25# extension key bindings and default values. To customize, create
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000026# ~/.idlerc/config-extensions.cfg and append the appropriate customized
27# section(s). Those sections will override the defaults in this file.
Kurt B. Kaiser4d5bc602004-06-06 01:29:22 +000028#
Terry Jan Reedy00bdce32014-10-14 18:55:20 -040029# Note: If a keybinding is already in use when the extension is loaded,
30# the extension's virtual event's keybinding will be set to ''.
Kurt B. Kaiser4d5bc602004-06-06 01:29:22 +000031#
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000032# See config-keys.def for notes on specifying keys and extend.txt for
33# information on creating IDLE extensions.
Steven M. Gavac11ccf32001-09-24 09:43:17 +000034
Kurt B. Kaiserb1754452005-11-18 22:05:48 +000035[AutoComplete]
Terry Jan Reedy00bdce32014-10-14 18:55:20 -040036enable=True
Kurt B. Kaiser2bf2af62005-11-22 01:52:22 +000037popupwait=2000
Kurt B. Kaiserb1754452005-11-18 22:05:48 +000038[AutoComplete_cfgBindings]
39force-open-completions=<Control-Key-space>
40[AutoComplete_bindings]
41autocomplete=<Key-Tab>
42try-open-completions=<KeyRelease-period> <KeyRelease-slash> <KeyRelease-backslash>
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000043
Terry Jan Reedy00bdce32014-10-14 18:55:20 -040044[AutoExpand]
45enable=True
46[AutoExpand_cfgBindings]
47expand-word=<Alt-Key-slash>
48
49[CallTips]
50enable=True
51[CallTips_cfgBindings]
52force-open-calltip=<Control-Key-backslash>
53[CallTips_bindings]
54try-open-calltip=<KeyRelease-parenleft>
55refresh-calltip=<KeyRelease-parenright> <KeyRelease-0>
56
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000057[CodeContext]
Terry Jan Reedy00bdce32014-10-14 18:55:20 -040058enable=True
59enable_shell=False
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000060numlines=3
Terry Jan Reedy00bdce32014-10-14 18:55:20 -040061visible=False
Kurt B. Kaiser54d1a3b2004-04-21 20:06:26 +000062bgcolor=LightGray
63fgcolor=Black
Kurt B. Kaiserd00587a2004-04-24 03:08:13 +000064[CodeContext_bindings]
65toggle-code-context=
Raymond Hettingereb816952009-05-29 01:22:18 +000066
Terry Jan Reedy00bdce32014-10-14 18:55:20 -040067[FormatParagraph]
68enable=True
Terry Jan Reedydf938692014-12-16 03:21:26 -050069max-width=72
Terry Jan Reedy00bdce32014-10-14 18:55:20 -040070[FormatParagraph_cfgBindings]
71format-paragraph=<Alt-Key-q>
Raymond Hettingereb816952009-05-29 01:22:18 +000072
Terry Jan Reedy00bdce32014-10-14 18:55:20 -040073[ParenMatch]
74enable=True
75style= expression
76flash-delay= 500
77bell=True
78[ParenMatch_cfgBindings]
79flash-paren=<Control-Key-0>
80[ParenMatch_bindings]
81paren-closed=<KeyRelease-parenright> <KeyRelease-bracketright> <KeyRelease-braceright>
82
83[RstripExtension]
84enable=True
85enable_shell=False
86enable_editor=True
87
88[ScriptBinding]
89enable=True
90enable_shell=False
91enable_editor=True
92[ScriptBinding_cfgBindings]
93run-module=<Key-F5>
94check-module=<Alt-Key-x>
95
96[ZoomHeight]
97enable=True
98[ZoomHeight_cfgBindings]
99zoom-height=<Alt-Key-2>