plugin.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {
  2. "title": "Document Manager",
  3. "description": "Document Manager settings.",
  4. "jupyter.lab.setting-icon": "ui-components:file",
  5. "jupyter.lab.setting-icon-label": "Document Manager",
  6. "jupyter.lab.transform": true,
  7. "jupyter.lab.menus": {
  8. "main": [
  9. {
  10. "id": "jp-mainmenu-file",
  11. "items": [
  12. {
  13. "command": "docmanager:clone",
  14. "rank": 2
  15. },
  16. {
  17. "type": "separator",
  18. "rank": 4
  19. },
  20. {
  21. "command": "docmanager:save",
  22. "rank": 4
  23. },
  24. {
  25. "command": "docmanager:save-as",
  26. "rank": 4
  27. },
  28. {
  29. "command": "docmanager:save-all",
  30. "rank": 4
  31. },
  32. {
  33. "type": "separator",
  34. "rank": 5
  35. },
  36. {
  37. "command": "docmanager:reload",
  38. "rank": 5
  39. },
  40. {
  41. "command": "docmanager:restore-checkpoint",
  42. "rank": 5
  43. },
  44. {
  45. "command": "docmanager:rename",
  46. "rank": 5
  47. },
  48. {
  49. "command": "docmanager:duplicate",
  50. "rank": 5
  51. }
  52. ]
  53. },
  54. {
  55. "id": "jp-mainmenu-settings",
  56. "items": [
  57. {
  58. "type": "separator",
  59. "rank": 4
  60. },
  61. {
  62. "command": "docmanager:toggle-autosave",
  63. "rank": 4
  64. },
  65. {
  66. "type": "separator",
  67. "rank": 4
  68. }
  69. ]
  70. }
  71. ],
  72. "context": [
  73. {
  74. "command": "docmanager:rename",
  75. "selector": "[data-type=\"document-title\"]",
  76. "rank": 20
  77. },
  78. {
  79. "command": "docmanager:duplicate",
  80. "selector": "[data-type=\"document-title\"]",
  81. "rank": 21
  82. },
  83. {
  84. "command": "docmanager:delete",
  85. "selector": "[data-type=\"document-title\"]",
  86. "rank": 22
  87. },
  88. {
  89. "command": "docmanager:clone",
  90. "selector": "[data-type=\"document-title\"]",
  91. "rank": 23
  92. },
  93. {
  94. "command": "docmanager:show-in-file-browser",
  95. "selector": "[data-type=\"document-title\"]",
  96. "rank": 24
  97. }
  98. ]
  99. },
  100. "jupyter.lab.shortcuts": [
  101. {
  102. "command": "docmanager:save",
  103. "keys": ["Accel S"],
  104. "selector": "body"
  105. },
  106. {
  107. "command": "docmanager:save-as",
  108. "keys": ["Accel Shift S"],
  109. "selector": "body"
  110. }
  111. ],
  112. "properties": {
  113. "autosave": {
  114. "type": "boolean",
  115. "title": "Autosave Documents",
  116. "description": "Whether to autosave documents",
  117. "default": true
  118. },
  119. "autosaveInterval": {
  120. "type": "number",
  121. "title": "Autosave Interval",
  122. "description": "Length of save interval in seconds",
  123. "default": 120
  124. },
  125. "confirmClosingDocument": {
  126. "type": "boolean",
  127. "title": "Ask for confirmation to close a document",
  128. "description": "Whether to ask for confirmation to close a document or not.",
  129. "default": false
  130. },
  131. "lastModifiedCheckMargin": {
  132. "type": "number",
  133. "title": "Margin for last modified timestamp check",
  134. "description": "Max acceptable difference, in milliseconds, between last modified timestamps on disk and client",
  135. "default": 500
  136. },
  137. "defaultViewers": {
  138. "type": "object",
  139. "title": "Default Viewers",
  140. "default": {},
  141. "description": "Overrides for the default viewers for file types",
  142. "properties": {},
  143. "additionalProperties": {
  144. "type": "string"
  145. }
  146. },
  147. "renameUntitledFileOnSave": {
  148. "type": "boolean",
  149. "title": "Rename Untitled File On First Save",
  150. "description": "Whether to prompt to rename untitled file on first manual save.",
  151. "default": true
  152. },
  153. "maxNumberRecents": {
  154. "type": "number",
  155. "title": "Recent Items Number",
  156. "description": "Number of recently opened/closed files and directories to remember.",
  157. "default": 10,
  158. "minimum": 0
  159. }
  160. },
  161. "additionalProperties": false,
  162. "type": "object"
  163. }