parent
9df56a7fe0
commit
87d4c2b37e
4 changed files with 21 additions and 2 deletions
|
|
@ -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();
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue