plugin.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {
  2. "jupyter.lab.setting-icon": "ui-components:terminal",
  3. "jupyter.lab.setting-icon-label": "Terminal",
  4. "jupyter.lab.menus": {
  5. "context": [
  6. {
  7. "command": "terminal:copy",
  8. "selector": ".jp-Terminal",
  9. "rank": 1
  10. },
  11. {
  12. "command": "terminal:paste",
  13. "selector": ".jp-Terminal",
  14. "rank": 2
  15. },
  16. {
  17. "command": "terminal:refresh",
  18. "selector": ".jp-Terminal",
  19. "rank": 3
  20. }
  21. ]
  22. },
  23. "title": "Terminal",
  24. "description": "Terminal settings.",
  25. "definitions": {
  26. "fontFamily": {
  27. "type": "string"
  28. },
  29. "fontSize": {
  30. "type": "integer",
  31. "minimum": 9,
  32. "maximum": 72
  33. },
  34. "lineHeight": {
  35. "type": "number",
  36. "minimum": 1.0
  37. },
  38. "theme": {
  39. "enum": ["dark", "light", "inherit"]
  40. },
  41. "scrollback": {
  42. "type": "number"
  43. },
  44. "pasteWithCtrlV": {
  45. "type": "boolean"
  46. },
  47. "macOptionIsMeta": {
  48. "type": "boolean"
  49. }
  50. },
  51. "properties": {
  52. "fontFamily": {
  53. "title": "Font family",
  54. "description": "The font family used to render text.",
  55. "$ref": "#/definitions/fontFamily",
  56. "default": "monospace"
  57. },
  58. "fontSize": {
  59. "title": "Font size",
  60. "description": "The font size used to render text.",
  61. "$ref": "#/definitions/fontSize",
  62. "default": 13
  63. },
  64. "lineHeight": {
  65. "title": "Line height",
  66. "description": "The line height used to render text.",
  67. "$ref": "#/definitions/lineHeight",
  68. "default": 1.0
  69. },
  70. "theme": {
  71. "title": "Theme",
  72. "description": "The theme for the terminal.",
  73. "$ref": "#/definitions/theme",
  74. "default": "inherit"
  75. },
  76. "screenReaderMode": {
  77. "title": "Screen Reader Mode",
  78. "description": "Add accessibility elements for use with screen readers.",
  79. "type": "boolean",
  80. "default": false
  81. },
  82. "scrollback": {
  83. "title": "Scrollback Buffer",
  84. "description": "The amount of scrollback beyond initial viewport",
  85. "$ref": "#/definitions/lineHeight",
  86. "default": 1000
  87. },
  88. "shutdownOnClose": {
  89. "title": "Shut down on close",
  90. "description": "Shut down the session when closing the terminal.",
  91. "type": "boolean",
  92. "default": false
  93. },
  94. "closeOnExit": {
  95. "title": "Close on exit",
  96. "description": "Close the widget when exiting the terminal.",
  97. "type": "boolean",
  98. "default": true
  99. },
  100. "pasteWithCtrlV": {
  101. "title": "Paste with Ctrl+V",
  102. "description": "Enable pasting with Ctrl+V. This can be disabled to use Ctrl+V in the vi editor, for instance. This setting has no effect on macOS, where Cmd+V is available",
  103. "type": "boolean",
  104. "default": true
  105. },
  106. "macOptionIsMeta": {
  107. "title": "Treat option as meta key on macOS",
  108. "description": "Option key on macOS can be used as meta key. This enables to use shortcuts such as option + f to move cursor forward one word",
  109. "type": "boolean",
  110. "default": false
  111. },
  112. "cursorBlink": {
  113. "title": "Blinking cursor",
  114. "description": "Whether to blink the cursor. Changes require reopening the terminal.",
  115. "type": "boolean",
  116. "default": true
  117. },
  118. "showStatusBarItem": {
  119. "type": "string",
  120. "title": "Show the status bar item",
  121. "description": "Whether to show the running terminals item in the status bar",
  122. "default": "if-any",
  123. "oneOf": [
  124. {
  125. "const": "if-any",
  126. "title": "Show if one or more"
  127. },
  128. {
  129. "const": "always",
  130. "title": "Always show"
  131. },
  132. {
  133. "const": "never",
  134. "title": "Don't show"
  135. }
  136. ]
  137. }
  138. },
  139. "additionalProperties": false,
  140. "type": "object"
  141. }