browser.json 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. {
  2. "jupyter.lab.setting-icon": "ui-components:folder",
  3. "jupyter.lab.setting-icon-label": "File Browser",
  4. "jupyter.lab.menus": {
  5. "main": [
  6. {
  7. "id": "jp-mainmenu-file",
  8. "items": [
  9. {
  10. "type": "separator",
  11. "rank": 1
  12. },
  13. {
  14. "command": "filebrowser:open-path",
  15. "rank": 1
  16. },
  17. {
  18. "command": "filebrowser:open-url",
  19. "rank": 1
  20. }
  21. ]
  22. },
  23. {
  24. "id": "jp-mainmenu-view",
  25. "items": [
  26. {
  27. "command": "filebrowser:toggle-hidden-files",
  28. "rank": 9.95
  29. }
  30. ]
  31. }
  32. ],
  33. "context": [
  34. {
  35. "type": "separator",
  36. "selector": ".jp-DirListing-content",
  37. "rank": 0
  38. },
  39. {
  40. "command": "filebrowser:open",
  41. "selector": ".jp-DirListing-item[data-isdir]",
  42. "rank": 1
  43. },
  44. {
  45. "type": "separator",
  46. "selector": ".jp-DirListing-item[data-isdir]",
  47. "rank": 4
  48. },
  49. {
  50. "command": "filebrowser:rename",
  51. "selector": ".jp-DirListing-item[data-isdir]",
  52. "rank": 5
  53. },
  54. {
  55. "command": "filebrowser:delete",
  56. "selector": ".jp-DirListing-item[data-isdir]",
  57. "rank": 6
  58. },
  59. {
  60. "command": "filebrowser:cut",
  61. "selector": ".jp-DirListing-item[data-isdir]",
  62. "rank": 7
  63. },
  64. {
  65. "command": "filebrowser:copy",
  66. "selector": ".jp-DirListing-item[data-isdir]",
  67. "rank": 8
  68. },
  69. {
  70. "command": "filebrowser:paste",
  71. "selector": ".jp-DirListing-content",
  72. "rank": 8.5
  73. },
  74. {
  75. "command": "filebrowser:duplicate",
  76. "selector": ".jp-DirListing-item[data-isdir=\"false\"]",
  77. "rank": 9
  78. },
  79. {
  80. "type": "separator",
  81. "selector": ".jp-DirListing-item[data-isdir]",
  82. "rank": 10
  83. },
  84. {
  85. "command": "filebrowser:shutdown",
  86. "selector": ".jp-DirListing-item[data-isdir=\"false\"].jp-mod-running",
  87. "rank": 11
  88. },
  89. {
  90. "type": "separator",
  91. "selector": ".jp-DirListing-item[data-isdir]",
  92. "rank": 12
  93. },
  94. {
  95. "command": "filebrowser:copy-path",
  96. "selector": ".jp-DirListing-item[data-isdir]",
  97. "rank": 14
  98. },
  99. {
  100. "command": "filebrowser:toggle-last-modified",
  101. "selector": ".jp-DirListing-header",
  102. "rank": 14
  103. },
  104. {
  105. "command": "filebrowser:toggle-file-size",
  106. "selector": ".jp-DirListing-header",
  107. "rank": 15
  108. },
  109. {
  110. "command": "filebrowser:toggle-file-checkboxes",
  111. "selector": ".jp-DirListing-header",
  112. "rank": 16
  113. },
  114. {
  115. "command": "filebrowser:toggle-sort-notebooks-first",
  116. "selector": ".jp-DirListing-header",
  117. "rank": 17
  118. },
  119. {
  120. "command": "filebrowser:share-main",
  121. "selector": ".jp-DirListing-item[data-isdir]",
  122. "rank": 17
  123. },
  124. {
  125. "type": "separator",
  126. "selector": ".jp-DirListing-item[data-isdir]",
  127. "rank": 50
  128. },
  129. {
  130. "command": "filebrowser:create-new-file",
  131. "selector": ".jp-DirListing-content",
  132. "rank": 51
  133. },
  134. {
  135. "command": "filebrowser:create-new-directory",
  136. "selector": ".jp-DirListing-content",
  137. "rank": 55
  138. }
  139. ]
  140. },
  141. "title": "File Browser",
  142. "description": "File Browser settings.",
  143. "jupyter.lab.shortcuts": [
  144. {
  145. "command": "filebrowser:go-up",
  146. "keys": ["Backspace"],
  147. "selector": ".jp-DirListing:focus"
  148. },
  149. {
  150. "command": "filebrowser:go-up",
  151. "keys": ["Backspace"],
  152. "selector": ".jp-DirListing-content .jp-DirListing-itemText"
  153. },
  154. {
  155. "command": "filebrowser:delete",
  156. "keys": ["Delete"],
  157. "selector": ".jp-DirListing-content .jp-DirListing-itemText"
  158. },
  159. {
  160. "command": "filebrowser:cut",
  161. "keys": ["Accel X"],
  162. "selector": ".jp-DirListing-content .jp-DirListing-itemText"
  163. },
  164. {
  165. "command": "filebrowser:copy",
  166. "keys": ["Accel C"],
  167. "selector": ".jp-DirListing-content .jp-DirListing-itemText"
  168. },
  169. {
  170. "command": "filebrowser:paste",
  171. "keys": ["Accel V"],
  172. "selector": ".jp-DirListing-content .jp-DirListing-itemText"
  173. },
  174. {
  175. "command": "filebrowser:rename",
  176. "keys": ["F2"],
  177. "selector": ".jp-DirListing-content .jp-DirListing-itemText"
  178. },
  179. {
  180. "command": "filebrowser:duplicate",
  181. "keys": ["Accel D"],
  182. "selector": ".jp-DirListing-content .jp-DirListing-itemText"
  183. },
  184. {
  185. "command": "filebrowser:select-all",
  186. "keys": ["Accel A"],
  187. "selector": ".jp-DirListing-content .jp-DirListing-itemText"
  188. }
  189. ],
  190. "properties": {
  191. "navigateToCurrentDirectory": {
  192. "type": "boolean",
  193. "title": "Navigate to current folder",
  194. "description": "Whether to automatically navigate to a document's current folder",
  195. "default": false
  196. },
  197. "useFuzzyFilter": {
  198. "type": "boolean",
  199. "title": "Filter on file name with a fuzzy search",
  200. "description": "Whether to apply fuzzy algorithm while filtering on file names",
  201. "default": true
  202. },
  203. "filterDirectories": {
  204. "type": "boolean",
  205. "title": "Filter folders",
  206. "description": "Whether to apply the search on folders",
  207. "default": true
  208. },
  209. "showLastModifiedColumn": {
  210. "type": "boolean",
  211. "title": "Show last modified column",
  212. "description": "Whether to show the last modified column",
  213. "default": true
  214. },
  215. "showFileSizeColumn": {
  216. "type": "boolean",
  217. "title": "Show file size column",
  218. "description": "Whether to show the file size column",
  219. "default": false
  220. },
  221. "showHiddenFiles": {
  222. "type": "boolean",
  223. "title": "Show hidden files",
  224. "description": "Whether to show hidden files. The server parameter `ContentsManager.allow_hidden` must be set to `True` to display hidden files.",
  225. "default": false
  226. },
  227. "showFileCheckboxes": {
  228. "type": "boolean",
  229. "title": "Use checkboxes to select items",
  230. "description": "Whether to show checkboxes next to files and folders",
  231. "default": false
  232. },
  233. "showFullPath": {
  234. "type": "boolean",
  235. "title": "Show full path in browser bread crumbs",
  236. "description": "Whether to show full path in browser bread crumbs",
  237. "default": false
  238. },
  239. "sortNotebooksFirst": {
  240. "type": "boolean",
  241. "title": "When sorting by name, group notebooks before other files",
  242. "description": "Whether to group the notebooks away from files",
  243. "default": false
  244. },
  245. "singleClickNavigation": {
  246. "type": "boolean",
  247. "title": "Navigate files and directories with single click",
  248. "description": "Whether to allow single click selection on file browser items",
  249. "default": false
  250. },
  251. "autoOpenUploads": {
  252. "type": "boolean",
  253. "title": "Auto-open uploads",
  254. "description": "Automatically open uploaded notebooks and supported files",
  255. "default": true
  256. },
  257. "maxAutoOpenSizeMB": {
  258. "type": "number",
  259. "title": "Max auto-open size",
  260. "description": "Maximum file size (MB) to auto-open files on upload",
  261. "default": 50
  262. },
  263. "allowFileUploads": {
  264. "type": "boolean",
  265. "title": "Allow file uploads",
  266. "description": "Whether to allow uploading files",
  267. "default": true
  268. },
  269. "breadcrumbs": {
  270. "title": "Breadcrumbs",
  271. "description": "Settings related to breadcrumbs display and behavior.",
  272. "type": "object",
  273. "default": {
  274. "minimumLeftItems": 0,
  275. "minimumRightItems": 2
  276. },
  277. "properties": {
  278. "minimumLeftItems": {
  279. "type": "number",
  280. "title": "Minimum breadcrumbs left items",
  281. "description": "Minimum number of directory items to display on the left side of the breadcrumbs ellipsis",
  282. "default": 0,
  283. "minimum": 0
  284. },
  285. "minimumRightItems": {
  286. "type": "number",
  287. "title": "Minimum breadcrumbs right items",
  288. "description": "Minimum number of directory items to display on the right side of the breadcrumbs ellipsis",
  289. "default": 2,
  290. "minimum": 0
  291. }
  292. }
  293. }
  294. },
  295. "additionalProperties": false,
  296. "type": "object"
  297. }