config-extensions.def 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # config-extensions.def
  2. #
  3. # IDLE reads several config files to determine user preferences. This
  4. # file is the default configuration file for IDLE extensions settings.
  5. #
  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.
  13. #
  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
  19. # extension that may be sensibly re-configured.
  20. #
  21. # If there are no keybindings for a menus' virtual events, include lines
  22. # like <<toggle-code-context>>= (See [CodeContext], below.)
  23. #
  24. # Currently it is necessary to manually modify this file to change
  25. # extension key bindings and default values. To customize, create
  26. # ~/.idlerc/config-extensions.cfg and append the appropriate customized
  27. # section(s). Those sections will override the defaults in this file.
  28. #
  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 ''.
  31. #
  32. # See config-keys.def for notes on specifying keys and extend.txt for
  33. # information on creating IDLE extensions.
  34. [AutoComplete]
  35. enable=True
  36. popupwait=2000
  37. [AutoComplete_cfgBindings]
  38. force-open-completions=<Control-Key-space>
  39. [AutoComplete_bindings]
  40. autocomplete=<Key-Tab>
  41. try-open-completions=<KeyRelease-period> <KeyRelease-slash> <KeyRelease-backslash>
  42. [AutoExpand]
  43. enable=True
  44. [AutoExpand_cfgBindings]
  45. expand-word=<Alt-Key-slash>
  46. [CallTips]
  47. enable=True
  48. [CallTips_cfgBindings]
  49. force-open-calltip=<Control-Key-backslash>
  50. [CallTips_bindings]
  51. try-open-calltip=<KeyRelease-parenleft>
  52. refresh-calltip=<KeyRelease-parenright> <KeyRelease-0>
  53. [CodeContext]
  54. enable=True
  55. enable_shell=False
  56. numlines=3
  57. visible=False
  58. bgcolor=LightGray
  59. fgcolor=Black
  60. [CodeContext_bindings]
  61. toggle-code-context=
  62. [FormatParagraph]
  63. enable=True
  64. max-width=72
  65. [FormatParagraph_cfgBindings]
  66. format-paragraph=<Alt-Key-q>
  67. [ParenMatch]
  68. enable=True
  69. style= expression
  70. flash-delay= 500
  71. bell=True
  72. [ParenMatch_cfgBindings]
  73. flash-paren=<Control-Key-0>
  74. [ParenMatch_bindings]
  75. paren-closed=<KeyRelease-parenright> <KeyRelease-bracketright> <KeyRelease-braceright>
  76. [RstripExtension]
  77. enable=True
  78. enable_shell=False
  79. enable_editor=True
  80. [ScriptBinding]
  81. enable=True
  82. enable_shell=False
  83. enable_editor=True
  84. [ScriptBinding_cfgBindings]
  85. run-module=<Key-F5>
  86. check-module=<Alt-Key-x>
  87. [ZoomHeight]
  88. enable=True
  89. [ZoomHeight_cfgBindings]
  90. zoom-height=<Alt-Key-2>