forked from joshwyatt/keyboard_shortcuts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shortcuts.js
104 lines (87 loc) · 3.18 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
// 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
// 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
// command + t : create new tab
// command + w : close tab
// command + q : quit application
// command + shift + ] : move right one tab
// command + shift + [ : move left one tab
// command + NUMBER : move to tab number NUMBER (not in Bash)
// Chrome:
// pin tabs
// command + r : reload page
// command + option + j : open the javascript console
// command + shift + i : email link for this page
// command + arrows : move through history
// command + shift + t : reopen last closed tab (up to 10)
// Sublime:
// command + ctrl + f : toggle fullscreen
// command + ctrl + shift + f : toggle distraction free
// option + arrows : move one word at a time
// command + arrows : move to beginning and end of line
// shift + above commands : select all the text
// delete + the above : delete all the text
// fn + delete : delete forward
// command + z : undo
// command + shift + z : redo
// command + / : toggle comment for line
// command + ] : shift indenting right
// command + [ : shift indenting left
// command + l : select the whole line
// command + c (with selection) : copy selection
// command + x (with selection) : cut selection
// command + v : paste most recent cut or copy
// command + shift + v : paste with proper indentation
var outerFunction = function(){
};
var innerFunction = function(){
};
// command + x : cut the whole line
// command + c : copy the whole line
// command + enter : create new line below
// command + shift + enter : create new line above
// command + shift + d : copy current line below
// command + control + arrows : move entire line up and down
// command + k, command + u : make selection upper case
// command + k, command + l : make selection lower case
// command + ' : select all within quotes
var quote = "Wouldn't it be nice to replace this quote?";
// command + shift + ' : select all within quotes, and quotes
var quote = "Wouldn't it be nice to replace this quote with a number?";
// control + m : move to beginning/end of parens and braces
if('only there were a way to toggle around the parens'){
var it = 'would be rad';
}
// command + d : select word(s)
// command + k while selecting words : don't select word
// command + ctrl + g : select all of words
// option + mouseDrag : column select
// command + mouseClick : custom multiple cursor
// command + p : open file
// command + shift + p : set syntax (and many many other things)
// command + f : find
// command + shift + f : massive find
// command + k, command + b : toggle file bar
// command + option + NUMBER : split screen
// control + shift + NUMBER : move current file to pane