File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,12 @@ const extension: JupyterFrontEndPlugin<void> = {
136
136
// matches anywhere on filebrowser
137
137
const selectorContent = ".jp-DirListing-content" ;
138
138
139
- // matches all filebrowser items
139
+ // matches directory filebrowser items
140
140
const selectorOnlyDir = '.jp-DirListing-item[data-isdir="true"]' ;
141
141
142
+ // matches file filebrowser items
143
+ const selectorNotDir = '.jp-DirListing-item[data-isdir="false"]' ;
144
+
142
145
// Create submenus
143
146
const archiveFolder = new Menu ( {
144
147
commands
@@ -231,14 +234,6 @@ const extension: JupyterFrontEndPlugin<void> = {
231
234
) ;
232
235
} ) ;
233
236
234
- // matches anywhere on filebrowser
235
- const selectorContent = ".jp-DirListing-content" ;
236
-
237
- // matches directory filebrowser items
238
- const selectorOnlyDir = '.jp-DirListing-item[data-isdir="true"]' ;
239
- // matches file filebrowser items
240
- const selectorNotDir = '.jp-DirListing-item[data-isdir="false"]' ;
241
-
242
237
// Add the 'downloadArchive' command to the file's menu.
243
238
commands . addCommand ( CommandIDs . downloadArchive , {
244
239
execute : args => {
You can’t perform that action at this time.
0 commit comments