support t/T command and fix alter mode

This commit is contained in:
Shin'ya Ueoka 2017-09-25 19:49:37 +09:00
parent 2b6aca17b0
commit 6c01283973
3 changed files with 10 additions and 1 deletions

View file

@ -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: