diff options
author | Steven M. Gava <elguavas@python.net> | 2002-01-19 10:41:51 (GMT) |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2002-01-19 10:41:51 (GMT) |
commit | 72c3bf076f785aaf54d63a7e8cae29bc8282920e (patch) | |
tree | 25a7d261d1cd962735f40dc038fd51ce5b1edf99 /Lib/idlelib/config-extensions.def | |
parent | c628a06c709dcf0d96ad55a475a5a1318d06dba4 (diff) | |
download | cpython-72c3bf076f785aaf54d63a7e8cae29bc8282920e.zip cpython-72c3bf076f785aaf54d63a7e8cae29bc8282920e.tar.gz cpython-72c3bf076f785aaf54d63a7e8cae29bc8282920e.tar.bz2 |
changeover to new keybinding configuration implementation
Diffstat (limited to 'Lib/idlelib/config-extensions.def')
-rw-r--r-- | Lib/idlelib/config-extensions.def | 49 |
1 files changed, 46 insertions, 3 deletions
diff --git a/Lib/idlelib/config-extensions.def b/Lib/idlelib/config-extensions.def index b4e9b02..c0439e6 100644 --- a/Lib/idlelib/config-extensions.def +++ b/Lib/idlelib/config-extensions.def @@ -1,26 +1,66 @@ # IDLE reads several config files to determine user preferences. This # file is the default config file for idle extensions settings. +# +# Each extension must have at least one section, named after the extension +# module. This section must contain an 'enable' item (=1 to enable the +# extension, =0 to disable it) and also contains any other general configuration +# items for the extension. Each extension may also define up to two optional +# sections named ExtensionName_bindings and ExtensionName_cfgBindings. If +# present, ExtensionName_bindings defines virtual event bindings for the +# extension that are not sensibly re-configurable. If present, +# ExtensionName_cfgBindings defines virtual event bindings for the extension +# that may be sensibly re-configured. [FormatParagraph] enable=1 +[FormatParagraph_cfgBindings] +format-paragraph=<Alt-Key-q> [AutoIndent] enable=1 +[AutoIndent_cfgBindings] +smart-backspace=<Key-BackSpace> +newline-and-indent=<Key-Return> <Key-KP_Enter> +smart-indent=<Key-Tab> +indent-region=<Control-Key-bracketright> +dedent-region=<Control-Key-bracketleft> +comment-region=<Alt-Key-3> +uncomment-region=<Alt-Key-4> +tabify-region=<Alt-Key-5> +untabify-region=<Alt-Key-6> +toggle-tabs=<Alt-Key-t> +change-indentwidth=<Alt-Key-u> [AutoExpand] enable=1 +[AutoExpand_cfgBindings] +expand-word=<Alt-Key-slash> [ZoomHeight] enable=1 - -#[ScriptBinding] # disabled in favor of ExecBinding -#enable=0 +[ZoomHeight_cfgBindings] +zoom-height=<Alt-Key-F2> [ExecBinding] enable=1 +[ExecBinding_cfgBindings] +run-complete-script=<Key-F5> +stop-execution=<Key-Cancel> + +#[ScriptBinding] #currently ExecBinding has replaced ScriptBinding +#enable=0 +#[ScriptBinding_cfgBindings] +#run-script=<Key-F5> +#check-module=<Alt-Key-F5> <Meta-Key-F5> +#import-module=<Control-Key-F5> [CallTips] enable=1 +[CallTips_bindings] +paren-open=<Key-parenleft> +paren-close=<Key-parenright> +check-calltip-cancel=<KeyRelease> +calltip-cancel=<ButtonPress> <Key-Escape> [ParenMatch] enable=0 @@ -29,3 +69,6 @@ flash-delay= 500 bell= 1 hilite-foreground= black hilite-background= #43cd80 +[ParenMatch_bindings] +flash-open-paren=<KeyRelease-parenright> <KeyRelease-bracketright> <KeyRelease-braceright> +check-restore=<KeyPress> |