plugin.json 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. {
  2. "title": "Text Editor",
  3. "description": "Text editor settings.",
  4. "jupyter.lab.setting-icon": "ui-components:text-editor",
  5. "jupyter.lab.setting-icon-label": "Editor",
  6. "jupyter.lab.menus": {
  7. "main": [
  8. {
  9. "id": "jp-mainmenu-file",
  10. "items": [
  11. {
  12. "type": "submenu",
  13. "submenu": {
  14. "id": "jp-mainmenu-file-new",
  15. "items": [
  16. {
  17. "command": "fileeditor:create-new",
  18. "rank": 30
  19. },
  20. {
  21. "command": "fileeditor:create-new-markdown-file",
  22. "rank": 30
  23. }
  24. ]
  25. }
  26. }
  27. ]
  28. },
  29. {
  30. "id": "jp-mainmenu-view",
  31. "items": [
  32. {
  33. "type": "separator",
  34. "rank": 40
  35. },
  36. {
  37. "type": "submenu",
  38. "submenu": {
  39. "id": "jp-mainmenu-view-codemirror-language",
  40. "label": "Text Editor Syntax Highlighting"
  41. },
  42. "rank": 40
  43. },
  44. {
  45. "type": "separator",
  46. "rank": 40
  47. }
  48. ]
  49. },
  50. {
  51. "id": "jp-mainmenu-settings",
  52. "items": [
  53. {
  54. "type": "separator",
  55. "rank": 30
  56. },
  57. {
  58. "type": "submenu",
  59. "submenu": {
  60. "id": "jp-mainmenu-settings-fileeditorindent",
  61. "label": "Text Editor Indentation",
  62. "items": [
  63. {
  64. "command": "fileeditor:change-tabs"
  65. },
  66. {
  67. "command": "fileeditor:change-tabs",
  68. "args": {
  69. "size": "1"
  70. }
  71. },
  72. {
  73. "command": "fileeditor:change-tabs",
  74. "args": {
  75. "size": "2"
  76. }
  77. },
  78. {
  79. "command": "fileeditor:change-tabs",
  80. "args": {
  81. "size": "4"
  82. }
  83. },
  84. {
  85. "command": "fileeditor:change-tabs",
  86. "args": {
  87. "size": "8"
  88. }
  89. }
  90. ]
  91. },
  92. "rank": 30
  93. },
  94. {
  95. "command": "fileeditor:toggle-autoclosing-brackets-universal",
  96. "rank": 30
  97. },
  98. {
  99. "command": "fileeditor:change-font-size",
  100. "rank": 30,
  101. "args": {
  102. "delta": 1,
  103. "isMenu": true
  104. }
  105. },
  106. {
  107. "command": "fileeditor:change-font-size",
  108. "rank": 30,
  109. "args": {
  110. "delta": -1,
  111. "isMenu": true
  112. }
  113. },
  114. {
  115. "type": "submenu",
  116. "submenu": {
  117. "id": "jp-mainmenu-settings-codemirror-theme",
  118. "label": "Text Editor Theme",
  119. "items": []
  120. },
  121. "rank": 31
  122. },
  123. {
  124. "type": "separator",
  125. "rank": 39
  126. }
  127. ]
  128. }
  129. ],
  130. "context": [
  131. {
  132. "command": "fileeditor:undo",
  133. "selector": ".jp-FileEditor",
  134. "rank": 1
  135. },
  136. {
  137. "command": "fileeditor:redo",
  138. "selector": ".jp-FileEditor",
  139. "rank": 2
  140. },
  141. {
  142. "command": "fileeditor:cut",
  143. "selector": ".jp-FileEditor",
  144. "rank": 3
  145. },
  146. {
  147. "command": "fileeditor:copy",
  148. "selector": ".jp-FileEditor",
  149. "rank": 4
  150. },
  151. {
  152. "command": "fileeditor:paste",
  153. "selector": ".jp-FileEditor",
  154. "rank": 5
  155. },
  156. {
  157. "command": "fileeditor:select-all",
  158. "selector": ".jp-FileEditor",
  159. "rank": 6
  160. },
  161. {
  162. "command": "fileeditor:create-console",
  163. "selector": ".jp-FileEditor",
  164. "rank": 10
  165. },
  166. {
  167. "command": "fileeditor:markdown-preview",
  168. "selector": ".jp-FileEditor",
  169. "rank": 11
  170. }
  171. ]
  172. },
  173. "jupyter.lab.toolbars": {
  174. "Editor": []
  175. },
  176. "jupyter.lab.transform": true,
  177. "properties": {
  178. "editorConfig": {
  179. "title": "Editor Configuration",
  180. "description": "The configuration for all text editors; it will override the CodeMirror default configuration.\nIf `fontFamily`, `fontSize` or `lineHeight` are `null`,\nvalues from current theme are used.",
  181. "type": "object",
  182. "default": {
  183. "lineNumbers": true
  184. }
  185. },
  186. "scrollPastEnd": {
  187. "title": "Scroll behavior",
  188. "description": "Whether to scroll past the end of text document.",
  189. "type": "boolean",
  190. "default": true
  191. },
  192. "toolbar": {
  193. "title": "Text editor toolbar items",
  194. "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. Toolbar description:",
  195. "items": {
  196. "$ref": "#/definitions/toolbarItem"
  197. },
  198. "type": "array",
  199. "default": []
  200. }
  201. },
  202. "additionalProperties": false,
  203. "type": "object",
  204. "definitions": {
  205. "toolbarItem": {
  206. "properties": {
  207. "name": {
  208. "title": "Unique name",
  209. "type": "string"
  210. },
  211. "args": {
  212. "title": "Command arguments",
  213. "type": "object"
  214. },
  215. "command": {
  216. "title": "Command id",
  217. "type": "string",
  218. "default": ""
  219. },
  220. "disabled": {
  221. "title": "Whether the item is ignored or not",
  222. "type": "boolean",
  223. "default": false
  224. },
  225. "icon": {
  226. "title": "Item icon id",
  227. "description": "If defined, it will override the command icon",
  228. "type": "string"
  229. },
  230. "label": {
  231. "title": "Item label",
  232. "description": "If defined, it will override the command label",
  233. "type": "string"
  234. },
  235. "caption": {
  236. "title": "Item caption",
  237. "description": "If defined, it will override the command caption",
  238. "type": "string"
  239. },
  240. "type": {
  241. "title": "Item type",
  242. "type": "string",
  243. "enum": ["command", "spacer"]
  244. },
  245. "rank": {
  246. "title": "Item rank",
  247. "type": "number",
  248. "minimum": 0,
  249. "default": 50
  250. }
  251. },
  252. "required": ["name"],
  253. "additionalProperties": false,
  254. "type": "object"
  255. }
  256. }
  257. }