plugin.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema",
  3. "title": "Cell Toolbar",
  4. "description": "Cell Toolbar Settings.",
  5. "jupyter.lab.toolbars": {
  6. "Cell": [
  7. {
  8. "name": "duplicate-cell",
  9. "command": "notebook:duplicate-below"
  10. },
  11. { "name": "move-cell-up", "command": "notebook:move-cell-up" },
  12. { "name": "move-cell-down", "command": "notebook:move-cell-down" },
  13. {
  14. "name": "insert-cell-above",
  15. "command": "notebook:insert-cell-above"
  16. },
  17. {
  18. "name": "insert-cell-below",
  19. "command": "notebook:insert-cell-below"
  20. },
  21. {
  22. "command": "notebook:delete-cell",
  23. "icon": "ui-components:delete",
  24. "name": "delete-cell"
  25. }
  26. ]
  27. },
  28. "jupyter.lab.transform": true,
  29. "properties": {
  30. "toolbar": {
  31. "title": "List of toolbar items",
  32. "description": "An item is defined by a 'name', a 'command' name, and an 'icon' name",
  33. "type": "array",
  34. "items": {
  35. "$ref": "#/definitions/toolbarItem"
  36. },
  37. "default": []
  38. }
  39. },
  40. "additionalProperties": false,
  41. "type": "object",
  42. "definitions": {
  43. "toolbarItem": {
  44. "properties": {
  45. "name": {
  46. "title": "Unique name",
  47. "type": "string"
  48. },
  49. "args": {
  50. "title": "Command arguments",
  51. "type": "object"
  52. },
  53. "command": {
  54. "title": "Command id",
  55. "type": "string",
  56. "default": ""
  57. },
  58. "disabled": {
  59. "title": "Whether the item is ignored or not",
  60. "type": "boolean",
  61. "default": false
  62. },
  63. "icon": {
  64. "title": "Item icon id",
  65. "description": "If defined, it will override the command icon",
  66. "type": "string"
  67. },
  68. "label": {
  69. "title": "Item label",
  70. "description": "If defined, it will override the command label",
  71. "type": "string"
  72. },
  73. "type": {
  74. "title": "Item type",
  75. "type": "string",
  76. "enum": ["command", "spacer"]
  77. },
  78. "rank": {
  79. "title": "Item rank",
  80. "type": "number",
  81. "minimum": 0,
  82. "default": 50
  83. }
  84. },
  85. "required": ["name"],
  86. "additionalProperties": false,
  87. "type": "object"
  88. }
  89. }
  90. }