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(
212212 } ) ;
213213
214214 // Put the saveCommand above in context menu
215+ app . contextMenu . addItem ( {
216+ type : 'separator' ,
217+ selector : '.jp-Notebook' ,
218+ rank : 13 ,
219+ } ) ;
220+
215221 app . contextMenu . addItem ( {
216222 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 ,
218231 } ) ;
219232
220233 // 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+
221240 app . contextMenu . addItem ( {
222241 command : saveCommand ,
223242 selector : '.jp-FileEditor' ,
243+ rank : 8 ,
244+ } ) ;
245+
246+ app . contextMenu . addItem ( {
247+ type : 'separator' ,
248+ selector : '.jp-FileEditor' ,
249+ rank : 9 ,
224250 } ) ;
225251
226252 // Track and restore the widget state
You can’t perform that action at this time.
0 commit comments