Kurt B. Kaiser | 4d5bc60 | 2004-06-06 01:29:22 +0000 | [diff] [blame] | 1 | # config-extensions.def |
| 2 | # |
Kurt B. Kaiser | 282f122 | 2003-05-18 02:21:55 +0000 | [diff] [blame] | 3 | # IDLE reads several config files to determine user preferences. This |
Kurt B. Kaiser | cca9122 | 2003-07-16 03:10:43 +0000 | [diff] [blame] | 4 | # file is the default configuration file for IDLE extensions settings. |
Steven M. Gava | 72c3bf0 | 2002-01-19 10:41:51 +0000 | [diff] [blame] | 5 | # |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 6 | # 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. Kaiser | 4d5bc60 | 2004-06-06 01:29:22 +0000 | [diff] [blame] | 13 | # |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 14 | # 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. Kaiser | 4d5bc60 | 2004-06-06 01:29:22 +0000 | [diff] [blame] | 19 | # extension that may be sensibly re-configured. |
| 20 | # |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 21 | # If there are no keybindings for a menus' virtual events, include lines |
| 22 | # like <<toggle-code-context>>= (See [CodeContext], below.) |
Kurt B. Kaiser | 4d5bc60 | 2004-06-06 01:29:22 +0000 | [diff] [blame] | 23 | # |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 24 | # Currently it is necessary to manually modify this file to change |
| 25 | # extension key bindings and default values. To customize, create |
Kurt B. Kaiser | 54d1a3b | 2004-04-21 20:06:26 +0000 | [diff] [blame] | 26 | # ~/.idlerc/config-extensions.cfg and append the appropriate customized |
| 27 | # section(s). Those sections will override the defaults in this file. |
Kurt B. Kaiser | 4d5bc60 | 2004-06-06 01:29:22 +0000 | [diff] [blame] | 28 | # |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 29 | # 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. Kaiser | 4d5bc60 | 2004-06-06 01:29:22 +0000 | [diff] [blame] | 31 | # |
Kurt B. Kaiser | 54d1a3b | 2004-04-21 20:06:26 +0000 | [diff] [blame] | 32 | # See config-keys.def for notes on specifying keys and extend.txt for |
| 33 | # information on creating IDLE extensions. |
Steven M. Gava | c11ccf3 | 2001-09-24 09:43:17 +0000 | [diff] [blame] | 34 | |
Kurt B. Kaiser | b175445 | 2005-11-18 22:05:48 +0000 | [diff] [blame] | 35 | [AutoComplete] |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 36 | enable=True |
Kurt B. Kaiser | 2bf2af6 | 2005-11-22 01:52:22 +0000 | [diff] [blame] | 37 | popupwait=2000 |
Kurt B. Kaiser | b175445 | 2005-11-18 22:05:48 +0000 | [diff] [blame] | 38 | [AutoComplete_cfgBindings] |
| 39 | force-open-completions=<Control-Key-space> |
| 40 | [AutoComplete_bindings] |
| 41 | autocomplete=<Key-Tab> |
| 42 | try-open-completions=<KeyRelease-period> <KeyRelease-slash> <KeyRelease-backslash> |
Kurt B. Kaiser | 54d1a3b | 2004-04-21 20:06:26 +0000 | [diff] [blame] | 43 | |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 44 | [AutoExpand] |
| 45 | enable=True |
| 46 | [AutoExpand_cfgBindings] |
| 47 | expand-word=<Alt-Key-slash> |
| 48 | |
| 49 | [CallTips] |
| 50 | enable=True |
| 51 | [CallTips_cfgBindings] |
| 52 | force-open-calltip=<Control-Key-backslash> |
| 53 | [CallTips_bindings] |
| 54 | try-open-calltip=<KeyRelease-parenleft> |
| 55 | refresh-calltip=<KeyRelease-parenright> <KeyRelease-0> |
| 56 | |
Kurt B. Kaiser | 54d1a3b | 2004-04-21 20:06:26 +0000 | [diff] [blame] | 57 | [CodeContext] |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 58 | enable=True |
| 59 | enable_shell=False |
Kurt B. Kaiser | 54d1a3b | 2004-04-21 20:06:26 +0000 | [diff] [blame] | 60 | numlines=3 |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 61 | visible=False |
Kurt B. Kaiser | 54d1a3b | 2004-04-21 20:06:26 +0000 | [diff] [blame] | 62 | bgcolor=LightGray |
| 63 | fgcolor=Black |
Kurt B. Kaiser | d00587a | 2004-04-24 03:08:13 +0000 | [diff] [blame] | 64 | [CodeContext_bindings] |
| 65 | toggle-code-context= |
Raymond Hettinger | eb81695 | 2009-05-29 01:22:18 +0000 | [diff] [blame] | 66 | |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 67 | [FormatParagraph] |
| 68 | enable=True |
Terry Jan Reedy | df93869 | 2014-12-16 03:21:26 -0500 | [diff] [blame] | 69 | max-width=72 |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 70 | [FormatParagraph_cfgBindings] |
| 71 | format-paragraph=<Alt-Key-q> |
Raymond Hettinger | eb81695 | 2009-05-29 01:22:18 +0000 | [diff] [blame] | 72 | |
Terry Jan Reedy | 00bdce3 | 2014-10-14 18:55:20 -0400 | [diff] [blame] | 73 | [ParenMatch] |
| 74 | enable=True |
| 75 | style= expression |
| 76 | flash-delay= 500 |
| 77 | bell=True |
| 78 | [ParenMatch_cfgBindings] |
| 79 | flash-paren=<Control-Key-0> |
| 80 | [ParenMatch_bindings] |
| 81 | paren-closed=<KeyRelease-parenright> <KeyRelease-bracketright> <KeyRelease-braceright> |
| 82 | |
| 83 | [RstripExtension] |
| 84 | enable=True |
| 85 | enable_shell=False |
| 86 | enable_editor=True |
| 87 | |
| 88 | [ScriptBinding] |
| 89 | enable=True |
| 90 | enable_shell=False |
| 91 | enable_editor=True |
| 92 | [ScriptBinding_cfgBindings] |
| 93 | run-module=<Key-F5> |
| 94 | check-module=<Alt-Key-x> |
| 95 | |
| 96 | [ZoomHeight] |
| 97 | enable=True |
| 98 | [ZoomHeight_cfgBindings] |
| 99 | zoom-height=<Alt-Key-2> |