Fix selectAll command (#2436)

* Fix selectAll command

* Fix typo
This commit is contained in:
CHaBou 2018-01-21 12:21:16 +01:00 committed by Albin Ekblom
parent 9df56a7fe0
commit 87d4c2b37e
4 changed files with 21 additions and 2 deletions

View file

@ -29,6 +29,9 @@ const commands = {
'editor:clearBuffer': focusedWindow => {
focusedWindow && focusedWindow.rpc.emit('session clear req');
},
'editor:selectAll': focusedWindow => {
focusedWindow.rpc.emit('term selectAll');
},
'plugins:update': () => {
updatePlugins();
},

View file

@ -28,8 +28,11 @@ module.exports = (commandKeys, execCommand) => {
accelerator: commandKeys['editor:paste']
},
{
role: 'selectall',
accelerator: commandKeys['editor:selectAll']
label: 'Select All',
accelerator: commandKeys['editor:selectAll'],
click(item, focusedWindow) {
execCommand('editor:selectAll', focusedWindow);
}
},
{
type: 'separator'