File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -212,15 +212,41 @@ function activateCodeSnippet(
212
212
} ) ;
213
213
214
214
// Put the saveCommand above in context menu
215
+ app . contextMenu . addItem ( {
216
+ type : 'separator' ,
217
+ selector : '.jp-Notebook' ,
218
+ rank : 13 ,
219
+ } ) ;
220
+
215
221
app . contextMenu . addItem ( {
216
222
command : saveCommand ,
217
- selector : '.jp-Cell' ,
223
+ selector : '.jp-Notebook' ,
224
+ rank : 14 ,
225
+ } ) ;
226
+
227
+ app . contextMenu . addItem ( {
228
+ type : 'separator' ,
229
+ selector : '.jp-Notebook' ,
230
+ rank : 15 ,
218
231
} ) ;
219
232
220
233
// Put the saveCommand in non-notebook file context menu
234
+ app . contextMenu . addItem ( {
235
+ type : 'separator' ,
236
+ selector : '.jp-FileEditor' ,
237
+ rank : 7 ,
238
+ } ) ;
239
+
221
240
app . contextMenu . addItem ( {
222
241
command : saveCommand ,
223
242
selector : '.jp-FileEditor' ,
243
+ rank : 8 ,
244
+ } ) ;
245
+
246
+ app . contextMenu . addItem ( {
247
+ type : 'separator' ,
248
+ selector : '.jp-FileEditor' ,
249
+ rank : 9 ,
224
250
} ) ;
225
251
226
252
// Track and restore the widget state
You can’t perform that action at this time.
0 commit comments