forked from Oleg24/keyboardShortcuts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shortcuts.js
150 lines (130 loc) · 4.36 KB
/
shortcuts.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
// WARNING ALL THE WINDOWS COMMANDS ARE UNTESTED - USE AT YOUR OWN RISK
// IF YOU FIND THAT ONE OF THE SHORTCUTS DOES NOT WORK, PLEASE UPDATE FOR FUTURE PEERS
// Alfred:
// open an app
// search google
// search wikipedia
// create custom search
// gmail
// setup keyboard shortcuts
// ? : show keyboard shortcuts
// j : move downward
// k : move upward
// o : open
// s (while open) : star / unstar
// - (while open) : unmark as important
// + (while open) : mark as important
// r : reply
// a : reply all
// # (while open) : delete + edit
// u : return to main window
// OSX:
// command + tab : switch open applications
// command + ` : switch open applications in reverse
// command + q (while in open applications) : quit an application
// Chrome / Sublime / and Bash:
// command + n : create new window
// WINDOWS: ctrl + n
// command + t : create new tab
// WINDOWS: ctrl + t
// command + w : close tab
// WINDOWS: ctrl + w
// command + q : quit application
// WINDOWS: ctrl + q
// command + shift + ] : move right one tab
// WINDOWS: ctrl + shift + ]
// command + shift + [ : move left one tab
// WINDOWS: ctrl + shift + [
// command + NUMBER : move to tab number NUMBER (not in Bash)
// WINDOWS: ctrl + (1 - 8)
// Chrome:
// command + r : reload page
// WINDOWS: ctrl + r
// command + option + j : open the javascript console
// WINDOWS: ctrl + shift + j
// command + shift + i : email link for this page
// WINDOWS: ctrl + shift + i
// command + arrows : move through history
// WINDOWS: BACKSPACE to go to move backwards, SHIFT + BACKSPACE or ALT + Right Arrow to move forwards
// command + shift + t : reopen last closed tab (up to 10)
// WINDOWS: ctrl + shift + t
// Sublime:
// command + ctrl + f : toggle fullscreen
// WINDOWS: F11
// command + ctrl + shift + f : toggle distraction free
// WINDOWS: SHIFT + F11
// option + arrows : move one word at a time
// WINDOWS: ctrl + arrows
// command + arrows : move to beginning and end of line
// WINDOWS: HOME or END
// shift + above commands : select all the text
// WINDOWS: ????
// delete + edit + the above : delete + edit all the text
// WINDOWS: ????
// fn + delete : delete forward
// WINDOWS: DELETE
// command + z : undo
// WINDOWS: ctrl + z
// command + shift + z : redo
// WINDOWS: ctrl + y
// command + / : toggle comment for line
// WINDOWS: ctrl + /
// command + ] : shift indenting right
// WINDOWS: ctrl + ]
// command + [ : shift indenting left
// WINDOWS: ctrl + []
// command + l : select the whole line
// WINDOWS: ctrl + l
// command + c (with selection) : copy selection
// WINDOWS: ctrl + c
// command + x (with selection) : cut selection
// WINDOWS: ctrl + x
// command + v : paste most recent cut or copy
// WINDOWS: ctrl + v
// command + shift + v : paste with proper indentation
// WINDOWS: ctrl + shift + v
var outerFunction = function(){
};
var innerFunction = function(){
};
// command + x : cut the whole line
// WINDOWS: ctrl + x
// command + c : copy the whole line
// WINDOWS: ctrl + c
// command + enter : create new line below
// WINDOWS: enter
// command + shift + enter : create new line above
// WINDOWS: ctrl + shift + enter
// command + shift + d : copy current line below
// WINDOWS: ctrl + shift + d
// command + control + arrows : move entire line up and down
// WINDOWS: ctrl + shift + arrows
// command + k, command + u : make selection upper case
// WINDOWS: Ctrl + K + U: Convert to upper
// command + k, command + l : make selection lower case
// WINDOWS: CTrl + K + L: Covert to lower
// command + d : select word(s)
// WINDOWS: ctrl + d
// command + k while selecting words : delete + edit
// WINDOWS: ctrl + k
// command + ctrl + g : select all of words
// WINDOWS: ????
// option + mouseDrag : column select
// WINDOWS: ctrl + left click
// command + mouseClick : custom multiple cursor
// WINDOWS: ctrl + left click
// command + p : open file
// WINDOWS: ctrl + O || ctrl + p
// command + shift + p : set syntax (and many many other things)
// WINDOWS: Ctrl-Shift-P
// command + f : find
// WINDOWS: ctrl + f
// command + shift + f : massive find
// WINDOWS: ctrl + shift + f
// command + k, command + b : toggle file bar
// WINDOWS: ctrl + K, ctrl + b
// command + option + NUMBER : split screen
// WINDOWS: Alt + shift + 2 Split view into two columns
// WINDOWS: Alt + shift + 1 Revert view to single column
// command + option + 5: split into grid(4 groups)
// WINDOWS: Alt + shift + 5 Set view to grid (4 groups)