plugin.json 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. {
  2. "title": "Main Menu",
  3. "description": "Main JupyterLab menu settings.",
  4. "jupyter.lab.menus": {
  5. "main": [
  6. {
  7. "id": "jp-mainmenu-file",
  8. "label": "File",
  9. "items": [
  10. {
  11. "type": "submenu",
  12. "submenu": {
  13. "id": "jp-mainmenu-file-new",
  14. "label": "New",
  15. "items": []
  16. },
  17. "rank": 0
  18. },
  19. {
  20. "type": "separator",
  21. "rank": 2
  22. },
  23. {
  24. "command": "filemenu:create-console",
  25. "rank": 2.1
  26. },
  27. {
  28. "command": "filemenu:close-and-cleanup",
  29. "rank": 3.1
  30. },
  31. {
  32. "type": "separator",
  33. "rank": 99
  34. },
  35. {
  36. "command": "filemenu:logout",
  37. "rank": 99
  38. },
  39. {
  40. "command": "filemenu:shutdown",
  41. "rank": 99
  42. }
  43. ],
  44. "rank": 1
  45. },
  46. {
  47. "id": "jp-mainmenu-edit",
  48. "label": "Edit",
  49. "items": [
  50. {
  51. "command": "editmenu:undo",
  52. "rank": 0
  53. },
  54. {
  55. "command": "editmenu:redo",
  56. "rank": 0
  57. },
  58. {
  59. "type": "separator",
  60. "rank": 10
  61. },
  62. {
  63. "command": "editmenu:clear-current",
  64. "rank": 10
  65. },
  66. {
  67. "command": "editmenu:clear-all",
  68. "rank": 10
  69. },
  70. {
  71. "type": "separator",
  72. "rank": 200
  73. },
  74. {
  75. "command": "editmenu:go-to-line",
  76. "rank": 200
  77. }
  78. ],
  79. "rank": 2
  80. },
  81. {
  82. "id": "jp-mainmenu-view",
  83. "label": "View",
  84. "items": [
  85. {
  86. "type": "separator",
  87. "rank": 10
  88. },
  89. {
  90. "command": "viewmenu:line-numbering",
  91. "rank": 10
  92. },
  93. {
  94. "command": "viewmenu:match-brackets",
  95. "rank": 10
  96. },
  97. {
  98. "command": "viewmenu:word-wrap",
  99. "rank": 10
  100. }
  101. ],
  102. "rank": 3
  103. },
  104. {
  105. "id": "jp-mainmenu-run",
  106. "label": "Run",
  107. "items": [
  108. {
  109. "command": "runmenu:run",
  110. "rank": 0
  111. },
  112. {
  113. "type": "separator"
  114. },
  115. {
  116. "command": "runmenu:run-all",
  117. "rank": 999
  118. },
  119. {
  120. "command": "runmenu:restart-and-run-all",
  121. "rank": 999
  122. }
  123. ],
  124. "rank": 4
  125. },
  126. {
  127. "id": "jp-mainmenu-kernel",
  128. "label": "Kernel",
  129. "items": [
  130. {
  131. "command": "kernelmenu:interrupt",
  132. "rank": 0
  133. },
  134. {
  135. "type": "separator",
  136. "rank": 1
  137. },
  138. {
  139. "command": "kernelmenu:restart",
  140. "rank": 1
  141. },
  142. {
  143. "command": "kernelmenu:restart-and-clear",
  144. "rank": 1
  145. },
  146. {
  147. "command": "runmenu:restart-and-run-all",
  148. "rank": 1.1
  149. },
  150. {
  151. "type": "separator",
  152. "rank": 1.5
  153. },
  154. {
  155. "command": "kernelmenu:reconnect-to-kernel",
  156. "rank": 1.5
  157. },
  158. {
  159. "type": "separator",
  160. "rank": 2
  161. },
  162. {
  163. "command": "kernelmenu:shutdown",
  164. "rank": 2
  165. },
  166. {
  167. "command": "kernelmenu:shutdownAll",
  168. "rank": 2
  169. },
  170. {
  171. "type": "separator",
  172. "rank": 3
  173. },
  174. {
  175. "command": "kernelmenu:change",
  176. "rank": 3
  177. }
  178. ],
  179. "rank": 5
  180. },
  181. {
  182. "id": "jp-mainmenu-tabs",
  183. "label": "Tabs",
  184. "items": [
  185. {
  186. "command": "application:activate-next-tab",
  187. "rank": 0
  188. },
  189. {
  190. "command": "application:activate-previous-tab",
  191. "rank": 0
  192. },
  193. {
  194. "command": "application:activate-next-tab-bar",
  195. "rank": 0
  196. },
  197. {
  198. "command": "application:activate-previous-tab-bar",
  199. "rank": 0
  200. },
  201. {
  202. "command": "tabsmenu:activate-previously-used-tab",
  203. "rank": 0
  204. }
  205. ],
  206. "rank": 500
  207. },
  208. {
  209. "id": "jp-mainmenu-settings",
  210. "label": "Settings",
  211. "items": [
  212. {
  213. "command": "settingeditor:open",
  214. "rank": 1000
  215. }
  216. ],
  217. "rank": 999
  218. },
  219. {
  220. "id": "jp-mainmenu-help",
  221. "label": "Help",
  222. "items": [],
  223. "rank": 1000
  224. }
  225. ],
  226. "context": [
  227. {
  228. "command": "filemenu:create-console",
  229. "selector": "[data-type=\"document-title\"].jp-mod-current",
  230. "rank": 10
  231. }
  232. ]
  233. },
  234. "jupyter.lab.shortcuts": [
  235. {
  236. "command": "editmenu:clear-all",
  237. "keys": [""],
  238. "selector": "[data-jp-undoer]"
  239. },
  240. {
  241. "command": "editmenu:clear-current",
  242. "keys": [""],
  243. "selector": "[data-jp-undoer]"
  244. },
  245. {
  246. "command": "editmenu:find",
  247. "keys": [""],
  248. "selector": "[data-jp-undoer]"
  249. },
  250. {
  251. "command": "editmenu:find-and-replace",
  252. "keys": [""],
  253. "selector": "[data-jp-undoer]"
  254. },
  255. {
  256. "command": "editmenu:redo",
  257. "keys": ["Accel Shift Z"],
  258. "selector": "[data-jp-undoer]"
  259. },
  260. {
  261. "command": "editmenu:undo",
  262. "keys": ["Accel Z"],
  263. "selector": "[data-jp-undoer]"
  264. },
  265. {
  266. "command": "filemenu:close-and-cleanup",
  267. "keys": ["Ctrl Shift Q"],
  268. "selector": ".jp-Activity"
  269. },
  270. {
  271. "command": "kernelmenu:interrupt",
  272. "keys": ["I", "I"],
  273. "selector": "[data-jp-kernel-user]:focus"
  274. },
  275. {
  276. "command": "kernelmenu:restart",
  277. "keys": ["0", "0"],
  278. "selector": "[data-jp-kernel-user]:focus"
  279. },
  280. {
  281. "command": "kernelmenu:restart-and-clear",
  282. "keys": [""],
  283. "selector": "[data-jp-kernel-user]:focus"
  284. },
  285. {
  286. "command": "kernelmenu:shutdown",
  287. "keys": [""],
  288. "selector": "[data-jp-kernel-user]:focus"
  289. },
  290. {
  291. "command": "runmenu:restart-and-run-all",
  292. "keys": [""],
  293. "selector": "[data-jp-code-runner]"
  294. },
  295. {
  296. "command": "runmenu:run",
  297. "keys": ["Shift Enter"],
  298. "selector": "[data-jp-code-runner]"
  299. },
  300. {
  301. "command": "runmenu:run-all",
  302. "keys": [""],
  303. "selector": "[data-jp-code-runner]"
  304. },
  305. {
  306. "command": "tabsmenu:activate-previously-used-tab",
  307. "keys": ["Accel Shift '"],
  308. "selector": "body"
  309. }
  310. ],
  311. "jupyter.lab.transform": true,
  312. "properties": {
  313. "menus": {
  314. "title": "The application menu description.",
  315. "description": "Note: To disable a menu or a menu item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable\nthe \"Tabs\" menu and \"Restart Kernel and Run up to Selected Cell\"\nitem:\n{\n \"menus\": [\n {\n \"id\": \"jp-mainmenu-tabs\",\n \"disabled\": true\n },\n {\n \"id\": \"jp-mainmenu-kernel\",\n \"items\": [\n {\n \"command\": \"notebook:restart-and-run-to-selected\",\n \"disabled\": true\n }\n ]\n }\n ]\n}\n\nMenu description:",
  316. "items": {
  317. "$ref": "#/definitions/menu"
  318. },
  319. "type": "array",
  320. "default": []
  321. }
  322. },
  323. "additionalProperties": false,
  324. "definitions": {
  325. "menu": {
  326. "properties": {
  327. "disabled": {
  328. "description": "Whether the menu is disabled or not",
  329. "type": "boolean",
  330. "default": false
  331. },
  332. "icon": {
  333. "description": "Menu icon id",
  334. "type": "string"
  335. },
  336. "id": {
  337. "description": "Menu unique id",
  338. "type": "string",
  339. "pattern": "[a-z][a-z0-9\\-_]+"
  340. },
  341. "items": {
  342. "description": "Menu items",
  343. "type": "array",
  344. "items": {
  345. "$ref": "#/definitions/menuItem"
  346. }
  347. },
  348. "label": {
  349. "description": "Menu label",
  350. "type": "string"
  351. },
  352. "mnemonic": {
  353. "description": "Mnemonic index for the label",
  354. "type": "number",
  355. "minimum": -1,
  356. "default": -1
  357. },
  358. "rank": {
  359. "description": "Menu rank",
  360. "type": "number",
  361. "minimum": 0
  362. }
  363. },
  364. "required": ["id"],
  365. "additionalProperties": false,
  366. "type": "object"
  367. },
  368. "menuItem": {
  369. "properties": {
  370. "args": {
  371. "description": "Command arguments",
  372. "type": "object"
  373. },
  374. "command": {
  375. "description": "Command id",
  376. "type": "string"
  377. },
  378. "disabled": {
  379. "description": "Whether the item is disabled or not",
  380. "type": "boolean",
  381. "default": false
  382. },
  383. "type": {
  384. "description": "Item type",
  385. "type": "string",
  386. "enum": ["command", "submenu", "separator"],
  387. "default": "command"
  388. },
  389. "rank": {
  390. "description": "Item rank",
  391. "type": "number",
  392. "minimum": 0
  393. },
  394. "submenu": {
  395. "description": "Submenu definition",
  396. "oneOf": [
  397. {
  398. "$ref": "#/definitions/menu"
  399. },
  400. {
  401. "type": "null"
  402. }
  403. ]
  404. }
  405. },
  406. "additionalProperties": false,
  407. "type": "object"
  408. }
  409. },
  410. "type": "object"
  411. }