aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/background/actions/operation.js6
-rw-r--r--src/shared/default-settings.js2
-rw-r--r--src/shared/operations.js1
3 files changed, 9 insertions, 0 deletions
diff --git a/src/background/actions/operation.js b/src/background/actions/operation.js
index d736c09..b94c117 100644
--- a/src/background/actions/operation.js
+++ b/src/background/actions/operation.js
@@ -42,6 +42,12 @@ const exec = (operation, tab) => {
return sendConsoleShowCommand(tab, 'tabopen ' + tab.url);
}
return sendConsoleShowCommand(tab, 'tabopen ');
+ case operations.COMMAND_SHOW_WINOPEN:
+ if (operation.alter) {
+ // alter url
+ return sendConsoleShowCommand(tab, 'winopen ' + tab.url);
+ }
+ return sendConsoleShowCommand(tab, 'winopen ');
case operations.COMMAND_SHOW_BUFFER:
return sendConsoleShowCommand(tab, 'buffer ');
default:
diff --git a/src/shared/default-settings.js b/src/shared/default-settings.js
index 3149581..d602117 100644
--- a/src/shared/default-settings.js
+++ b/src/shared/default-settings.js
@@ -7,6 +7,8 @@ export default {
"O": { "type": "command.show.open", "alter": true },
"t": { "type": "command.show.tabopen", "alter": false },
"T": { "type": "command.show.tabopen", "alter": true },
+ "w": { "type": "command.show.winopen", "alter": false },
+ "W": { "type": "command.show.winopen", "alter": true },
"b": { "type": "command.show.buffer" },
"k": { "type": "scroll.lines", "count": -1 },
"j": { "type": "scroll.lines", "count": 1 },
diff --git a/src/shared/operations.js b/src/shared/operations.js
index b68f59d..5e4a1e5 100644
--- a/src/shared/operations.js
+++ b/src/shared/operations.js
@@ -3,6 +3,7 @@ export default {
COMMAND_SHOW: 'command.show',
COMMAND_SHOW_OPEN: 'command.show.open',
COMMAND_SHOW_TABOPEN: 'command.show.tabopen',
+ COMMAND_SHOW_WINOPEN: 'command.show.winopen',
COMMAND_SHOW_BUFFER: 'command.show.buffer',
// Scrolls