support t/T command and fix alter mode
This commit is contained in:
parent
2b6aca17b0
commit
6c01283973
3 changed files with 10 additions and 1 deletions
|
@ -25,11 +25,17 @@ const exec = (operation, tab) => {
|
|||
case operations.COMMAND_OPEN:
|
||||
return consoleActions.showCommand('');
|
||||
case operations.COMMAND_TABS_OPEN:
|
||||
if (operations.alter) {
|
||||
if (operation.alter) {
|
||||
// alter url
|
||||
return consoleActions.showCommand('open ' + tab.url);
|
||||
}
|
||||
return consoleActions.showCommand('open ');
|
||||
case operations.COMMAND_TABS_NEW:
|
||||
if (operation.alter) {
|
||||
// alter url
|
||||
return consoleActions.showCommand('tabopen ' + tab.url);
|
||||
}
|
||||
return consoleActions.showCommand('tabopen ');
|
||||
case operations.COMMAND_BUFFER:
|
||||
return consoleActions.showCommand('buffer ');
|
||||
default:
|
||||
|
|
Reference in a new issue