add '-dialog' suffix to restart actions with dialogs

instead of -no-confirm on those without.

i.e. `restart-run-all` has no dialog, `restart-run-all-dialog` has a dialog.
Min RK 11 years ago
parent ef64f743c4
commit a5a737805e

@ -84,38 +84,38 @@ define(function(require){
env.notebook.execute_all_cells();
}
},
'restart-run-all': {
help: 'restart the kernel, then re-run the whole notebook',
'restart-run-all-dialog': {
help: 'restart the kernel, then re-run the whole notebook (with dialog)',
handler: function (env) {
env.notebook.restart_run_all();
}
},
'restart-clear-output': {
help: 'restart the kernel and clear all output',
'restart-clear-output-dialog': {
help: 'restart the kernel and clear all output (with dialog)',
handler: function (env) {
env.notebook.restart_clear_output();
}
},
'restart': {
help: 'restart the kernel',
'restart-dialog': {
help: 'restart the kernel (with dialog)',
help_index: 'bf',
handler: function (env) {
env.notebook.restart_kernel();
},
},
'restart-run-all-no-confirm': {
'restart-run-all': {
help: 'restart the kernel, then re-run the whole notebook (no confirmation dialog)',
handler: function (env) {
env.notebook.restart_run_all({confirm: false});
}
},
'restart-clear-output-no-confirm': {
'restart-clear-output': {
help: 'restart the kernel and clear all output (no confirmation dialog)',
handler: function (env) {
env.notebook.restart_clear_output({confirm: false});
}
},
'restart-no-confirm': {
'restart': {
help: 'restart the kernel (no confirmation dialog)',
handler: function (env) {
env.notebook.restart_kernel({confirm: false});

@ -201,9 +201,9 @@ define([
var id_actions_dict = {
'#find_and_replace' : 'ipython.find-and-replace-dialog',
'#save_checkpoint': 'ipython.save-notebook',
'#restart_kernel': 'ipython.restart-kernel',
'#restart_clear_output': 'ipython.restart-clear-output',
'#restart_run_all': 'ipython.restart-run-all',
'#restart_kernel': 'ipython.restart-kernel-dialog',
'#restart_clear_output': 'ipython.restart-clear-output-dialog',
'#restart_run_all': 'ipython.restart-run-all-dialog',
'#int_kernel': 'ipython.interrupt-kernel',
'#cut_cell': 'ipython.cut-selected-cell',
'#copy_cell': 'ipython.copy-selected-cell',

Loading…
Cancel
Save