Commit 059e5db4 authored by Terry Jan Reedy's avatar Terry Jan Reedy

Issue #3068: Change 0/1 to False/True so that extension configure dialog can

easily recognize and display boolean values as such and recognize changes.
Also reformat comments and alphabetize extensions included with Idle.
parent 49027a44
...@@ -3,94 +3,96 @@ ...@@ -3,94 +3,96 @@
# IDLE reads several config files to determine user preferences. This # IDLE reads several config files to determine user preferences. This
# file is the default configuration file for IDLE extensions settings. # file is the default configuration file for IDLE extensions settings.
# #
# Each extension must have at least one section, named after the extension # Each extension must have at least one section, named after the
# module. This section must contain an 'enable' item (=1 to enable the # extension module. This section must contain an 'enable' item (=True to
# extension, =0 to disable it), it may contain 'enable_editor' or 'enable_shell' # enable the extension, =False to disable it), it may contain
# items, to apply it only to editor/shell windows, and may also contain any # 'enable_editor' or 'enable_shell' items, to apply it only to editor ir
# other general configuration items for the extension. # shell windows, and may also contain any other general configuration
# items for the extension. Other True/False values will also be
# recognized as boolean by the Extension Configuration dialog.
# #
# Each extension must define at least one section named ExtensionName_bindings # Each extension must define at least one section named
# or ExtensionName_cfgBindings. If present, ExtensionName_bindings defines # ExtensionName_bindings or ExtensionName_cfgBindings. If present,
# virtual event bindings for the extension that are not user re-configurable. # ExtensionName_bindings defines virtual event bindings for the
# If present, ExtensionName_cfgBindings defines virtual event bindings for the # extension that are not user re-configurable. If present,
# ExtensionName_cfgBindings defines virtual event bindings for the
# extension that may be sensibly re-configured. # extension that may be sensibly re-configured.
# #
# If there are no keybindings for a menus' virtual events, include lines like # If there are no keybindings for a menus' virtual events, include lines
# <<toggle-code-context>>= (See [CodeContext], below.) # like <<toggle-code-context>>= (See [CodeContext], below.)
# #
# Currently it is necessary to manually modify this file to change extension # Currently it is necessary to manually modify this file to change
# key bindings and default values. To customize, create # extension key bindings and default values. To customize, create
# ~/.idlerc/config-extensions.cfg and append the appropriate customized # ~/.idlerc/config-extensions.cfg and append the appropriate customized
# section(s). Those sections will override the defaults in this file. # section(s). Those sections will override the defaults in this file.
# #
# Note: If a keybinding is already in use when the extension is # Note: If a keybinding is already in use when the extension is loaded,
# loaded, the extension's virtual event's keybinding will be set to ''. # the extension's virtual event's keybinding will be set to ''.
# #
# See config-keys.def for notes on specifying keys and extend.txt for # See config-keys.def for notes on specifying keys and extend.txt for
# information on creating IDLE extensions. # information on creating IDLE extensions.
[FormatParagraph] [AutoComplete]
enable=1 enable=True
[FormatParagraph_cfgBindings] popupwait=2000
format-paragraph=<Alt-Key-q> [AutoComplete_cfgBindings]
force-open-completions=<Control-Key-space>
[AutoComplete_bindings]
autocomplete=<Key-Tab>
try-open-completions=<KeyRelease-period> <KeyRelease-slash> <KeyRelease-backslash>
[AutoExpand] [AutoExpand]
enable=1 enable=True
[AutoExpand_cfgBindings] [AutoExpand_cfgBindings]
expand-word=<Alt-Key-slash> expand-word=<Alt-Key-slash>
[ZoomHeight]
enable=1
[ZoomHeight_cfgBindings]
zoom-height=<Alt-Key-2>
[ScriptBinding]
enable=1
enable_shell=0
enable_editor=1
[ScriptBinding_cfgBindings]
run-module=<Key-F5>
check-module=<Alt-Key-x>
[CallTips] [CallTips]
enable=1 enable=True
[CallTips_cfgBindings] [CallTips_cfgBindings]
force-open-calltip=<Control-Key-backslash> force-open-calltip=<Control-Key-backslash>
[CallTips_bindings] [CallTips_bindings]
try-open-calltip=<KeyRelease-parenleft> try-open-calltip=<KeyRelease-parenleft>
refresh-calltip=<KeyRelease-parenright> <KeyRelease-0> refresh-calltip=<KeyRelease-parenright> <KeyRelease-0>
[CodeContext]
enable=True
enable_shell=False
numlines=3
visible=False
bgcolor=LightGray
fgcolor=Black
[CodeContext_bindings]
toggle-code-context=
[FormatParagraph]
enable=True
[FormatParagraph_cfgBindings]
format-paragraph=<Alt-Key-q>
[ParenMatch] [ParenMatch]
enable=1 enable=True
style= expression style= expression
flash-delay= 500 flash-delay= 500
bell= 1 bell=True
[ParenMatch_cfgBindings] [ParenMatch_cfgBindings]
flash-paren=<Control-Key-0> flash-paren=<Control-Key-0>
[ParenMatch_bindings] [ParenMatch_bindings]
paren-closed=<KeyRelease-parenright> <KeyRelease-bracketright> <KeyRelease-braceright> paren-closed=<KeyRelease-parenright> <KeyRelease-bracketright> <KeyRelease-braceright>
[AutoComplete]
enable=1
popupwait=2000
[AutoComplete_cfgBindings]
force-open-completions=<Control-Key-space>
[AutoComplete_bindings]
autocomplete=<Key-Tab>
try-open-completions=<KeyRelease-period> <KeyRelease-slash> <KeyRelease-backslash>
[CodeContext]
enable=1
enable_shell=0
numlines=3
visible=0
bgcolor=LightGray
fgcolor=Black
[CodeContext_bindings]
toggle-code-context=
[RstripExtension] [RstripExtension]
enable=1 enable=True
enable_shell=0 enable_shell=False
enable_editor=1 enable_editor=True
[ScriptBinding]
enable=True
enable_shell=False
enable_editor=True
[ScriptBinding_cfgBindings]
run-module=<Key-F5>
check-module=<Alt-Key-x>
[ZoomHeight]
enable=True
[ZoomHeight_cfgBindings]
zoom-height=<Alt-Key-2>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment