aboutsummaryrefslogtreecommitdiff
path: root/src/shared/operations.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-04-30 14:00:07 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-02 11:14:19 +0900
commitc60d0e7392fc708e961614d6b756a045de74f458 (patch)
tree0b9a5fce1879e38a92d5dbb2915779aee0ad22d6 /src/shared/operations.ts
parent257162e5b6b4993e1dff0d705ffa6f0d809033eb (diff)
Rename .js/.jsx to .ts/.tsx
Diffstat (limited to 'src/shared/operations.ts')
-rw-r--r--src/shared/operations.ts78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/shared/operations.ts b/src/shared/operations.ts
new file mode 100644
index 0000000..8674f4d
--- /dev/null
+++ b/src/shared/operations.ts
@@ -0,0 +1,78 @@
+export default {
+ // Hide console, or cancel some user actions
+ CANCEL: 'cancel',
+
+ // Addons
+ ADDON_ENABLE: 'addon.enable',
+ ADDON_DISABLE: 'addon.disable',
+ ADDON_TOGGLE_ENABLED: 'addon.toggle.enabled',
+
+ // Command
+ 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',
+ COMMAND_SHOW_ADDBOOKMARK: 'command.show.addbookmark',
+
+ // Scrolls
+ SCROLL_VERTICALLY: 'scroll.vertically',
+ SCROLL_HORIZONALLY: 'scroll.horizonally',
+ SCROLL_PAGES: 'scroll.pages',
+ SCROLL_TOP: 'scroll.top',
+ SCROLL_BOTTOM: 'scroll.bottom',
+ SCROLL_HOME: 'scroll.home',
+ SCROLL_END: 'scroll.end',
+
+ // Follows
+ FOLLOW_START: 'follow.start',
+
+ // Navigations
+ NAVIGATE_HISTORY_PREV: 'navigate.history.prev',
+ NAVIGATE_HISTORY_NEXT: 'navigate.history.next',
+ NAVIGATE_LINK_PREV: 'navigate.link.prev',
+ NAVIGATE_LINK_NEXT: 'navigate.link.next',
+ NAVIGATE_PARENT: 'navigate.parent',
+ NAVIGATE_ROOT: 'navigate.root',
+
+ // Focus
+ FOCUS_INPUT: 'focus.input',
+
+ // Page
+ PAGE_SOURCE: 'page.source',
+ PAGE_HOME: 'page.home',
+
+ // Tabs
+ TAB_CLOSE: 'tabs.close',
+ TAB_CLOSE_FORCE: 'tabs.close.force',
+ TAB_CLOSE_RIGHT: 'tabs.close.right',
+ TAB_REOPEN: 'tabs.reopen',
+ TAB_PREV: 'tabs.prev',
+ TAB_NEXT: 'tabs.next',
+ TAB_FIRST: 'tabs.first',
+ TAB_LAST: 'tabs.last',
+ TAB_PREV_SEL: 'tabs.prevsel',
+ TAB_RELOAD: 'tabs.reload',
+ TAB_PIN: 'tabs.pin',
+ TAB_UNPIN: 'tabs.unpin',
+ TAB_TOGGLE_PINNED: 'tabs.pin.toggle',
+ TAB_DUPLICATE: 'tabs.duplicate',
+
+ // Zooms
+ ZOOM_IN: 'zoom.in',
+ ZOOM_OUT: 'zoom.out',
+ ZOOM_NEUTRAL: 'zoom.neutral',
+
+ // Url yank/paste
+ URLS_YANK: 'urls.yank',
+ URLS_PASTE: 'urls.paste',
+
+ // Find
+ FIND_START: 'find.start',
+ FIND_NEXT: 'find.next',
+ FIND_PREV: 'find.prev',
+
+ // Mark
+ MARK_SET_PREFIX: 'mark.set.prefix',
+ MARK_JUMP_PREFIX: 'mark.jump.prefix',
+};