aboutsummaryrefslogtreecommitdiff
path: root/src/shared/operations.js
blob: 778b1cfc6017881efc7ba33033ace785432fe834 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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',

  // Tabs
  TAB_CLOSE: 'tabs.close',
  TAB_CLOSE_FORCE: 'tabs.close.force',
  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',
};