From 6c012839737b60442e582e08209f551536ca2e81 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 25 Sep 2017 19:49:37 +0900 Subject: support t/T command and fix alter mode --- src/actions/operation.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/actions') diff --git a/src/actions/operation.js b/src/actions/operation.js index b0d67f0..50329f8 100644 --- a/src/actions/operation.js +++ b/src/actions/operation.js @@ -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: -- cgit v1.2.3