Merge pull request #1061 from minrk/menu-multi-select

plural cell actions
This commit is contained in:
Thomas Kluyver 2016-02-08 11:39:18 +00:00
commit 014bd77b80

View File

@ -212,6 +212,7 @@ define(function(require){
} }
}, },
'cut-cell' : { 'cut-cell' : {
help: 'cut selected cells',
icon: 'fa-cut', icon: 'fa-cut',
help_index : 'ee', help_index : 'ee',
handler : function (env) { handler : function (env) {
@ -221,6 +222,7 @@ define(function(require){
} }
}, },
'copy-cell' : { 'copy-cell' : {
help: 'copy selected cells',
icon: 'fa-copy', icon: 'fa-copy',
help_index : 'ef', help_index : 'ef',
handler : function (env) { handler : function (env) {
@ -228,14 +230,14 @@ define(function(require){
} }
}, },
'paste-cell-above' : { 'paste-cell-above' : {
help: 'paste cell above', help: 'paste cells above',
help_index : 'eg', help_index : 'eg',
handler : function (env) { handler : function (env) {
env.notebook.paste_cell_above(); env.notebook.paste_cell_above();
} }
}, },
'paste-cell-below' : { 'paste-cell-below' : {
help: 'paste cell below', help: 'paste cells below',
icon: 'fa-paste', icon: 'fa-paste',
help_index : 'eh', help_index : 'eh',
handler : function (env) { handler : function (env) {
@ -345,6 +347,7 @@ define(function(require){
} }
}, },
'move-cell-down' : { 'move-cell-down' : {
help: 'move selected cells down',
icon: 'fa-arrow-down', icon: 'fa-arrow-down',
help_index : 'eb', help_index : 'eb',
handler : function (env) { handler : function (env) {
@ -352,6 +355,7 @@ define(function(require){
} }
}, },
'move-cell-up' : { 'move-cell-up' : {
help: 'move selected cells up',
icon: 'fa-arrow-up', icon: 'fa-arrow-up',
help_index : 'ea', help_index : 'ea',
handler : function (env) { handler : function (env) {
@ -372,7 +376,7 @@ define(function(require){
} }
}, },
'delete-cell': { 'delete-cell': {
help: 'delete selected cell', help: 'delete selected cells',
help_index : 'ej', help_index : 'ej',
handler : function (env) { handler : function (env) {
env.notebook.delete_cell(); env.notebook.delete_cell();