aboutsummaryrefslogtreecommitdiff
path: root/src/actions/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/index.js')
-rw-r--r--src/actions/index.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/actions/index.js b/src/actions/index.js
new file mode 100644
index 0000000..63d5f6f
--- /dev/null
+++ b/src/actions/index.js
@@ -0,0 +1,40 @@
+export default {
+ // console commands
+ CONSOLE_SHOW_COMMAND: 'vimvixen.console.show.command',
+ CONSOLE_SET_COMPLETIONS: 'vimvixen.console.set.completions',
+ CONSOLE_SHOW_ERROR: 'vimvixen.console.show.error',
+ CONSOLE_HIDE: 'vimvixen.console.hide',
+
+ // Background commands
+ BACKGROUND_REQUEST_COMPLETIONS: 'vimvixen.background.request.completions',
+ TABS_CLOSE: 'tabs.close',
+ TABS_REOPEN: 'tabs.reopen',
+ TABS_PREV: 'tabs.prev',
+ TABS_NEXT: 'tabs.next',
+ TABS_RELOAD: 'tabs.reload',
+ ZOOM_IN: 'zoom.in',
+ ZOOM_OUT: 'zoom.out',
+ ZOOM_NEUTRAL: 'zoom.neutral',
+
+ // content commands
+ CMD_OPEN: 'cmd.open',
+ CMD_TABS_OPEN: 'cmd.tabs.open',
+ CMD_BUFFER: 'cmd.buffer',
+ SCROLL_LINES: 'scroll.lines',
+ SCROLL_PAGES: 'scroll.pages',
+ SCROLL_TOP: 'scroll.top',
+ SCROLL_BOTTOM: 'scroll.bottom',
+ SCROLL_LEFT: 'scroll.left',
+ SCROLL_RIGHT: 'scroll.right',
+ FOLLOW_START: 'follow.start',
+ HISTORY_PREV: 'history.prev',
+ HISTORY_NEXT: 'history.next',
+
+ // User input
+ INPUT_KEY_PRESS: 'input.key,press',
+ INPUT_CLEAR_KEYS: 'input.clear.keys',
+
+ COMMAND_OPEN_URL: 'command.open.url',
+ COMMAND_TABOPEN_URL: 'command.tabopen.url',
+ COMMAND_BUFFER: 'command.buffer',
+};