This repository has been archived by the owner on Jan 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdefault-keymap.js
71 lines (54 loc) · 1.76 KB
/
default-keymap.js
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
const isMac = process.platform === 'darwin';
module.exports = {
'CmdOrCtrl+,': 'show-settings',
'CmdOrCtrl+N': 'new-window',
'CmdOrCtrl+T': 'new-tab',
[isMac
? 'CmdOrCtrl+D'
: 'Ctrl+Shift+E']: 'split-vertical',
[isMac
? 'CmdOrCtrl+Shift+D'
: 'Ctrl+Shift+O']: 'split-horizontal',
'CmdOrCtrl+W': 'close',
'CmdOrCtrl+shift+W': 'close-window',
'CmdOrCtrl+K': 'clear',
'CmdOrCtrl+R': 'reload',
'CmdOrCtrl+Shift+R': 'reload-full',
[isMac
? 'Alt+Command+I'
: 'Ctrl+Shift+I']: 'toggle-devtools',
'CmdOrCtrl+0': 'zoom-reset',
'CmdOrCtrl+plus': 'zoom-in',
'CmdOrCtrl+-': 'zoom-out',
'CmdOrCtrl+Shift+U': 'update-plugins',
'CmdOrCtrl+Alt+Left': 'prev-tab',
'CmdOrCtrl+Alt+Right': 'next-tab',
'ctrl+shift+tab': 'prev-tab',
'ctrl+tab': 'next-tab',
'CmdOrCtrl+Shift+Left': 'prev-tab',
'CmdOrCtrl+Shift+Right': 'next-tab',
'CmdOrCtrl+Shift+[': 'prev-tab',
'CmdOrCtrl+Shift+]': 'next-tab',
'Ctrl+Shift+Alt+Tab': 'prev-pane',
'Ctrl+Alt+Tab': 'next-pane',
/**
* Wait until relevant commands will be implemented in Hyper's rpc
'CmdOrCtrl+1': 'tab-show-0',
'CmdOrCtrl+2': 'tab-show-1',
'CmdOrCtrl+3': 'tab-show-2',
'CmdOrCtrl+4': 'tab-show-3',
'CmdOrCtrl+5': 'tab-show-4',
'CmdOrCtrl+6': 'tab-show-5',
'CmdOrCtrl+7': 'tab-show-6',
'CmdOrCtrl+8': 'tab-show-7',
'CmdOrCtrl+9': 'tab-show-last',
'alt+left': 'move-word-left'
'alt+right': 'move-word-right'
'alt+backspace': 'delete-word-left'
'alt+del': 'delete-word-right'
'CmdOrCtrl+backspace': 'delete-line'
'CmdOrCtrl+left': 'move-to-line-start'
'CmdOrCtrl+right': 'move-to-line-end'
'CmdOrCtrl+a': 'select-all'
*/
};