-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathapplication_tricks.note
155 lines (125 loc) · 4.49 KB
/
application_tricks.note
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
149
150
151
152
153
154
155
### BetterMarkdown sublime
Asterisks and underscores are autopaired and will wrap selected text
If you start an empty pair and hit backspace, both elements are deleted
If you start an empty pair and hit space, the right element is deleted
backticks are paired
Left bracket pairing is modified to eliminate the selection and leave the cursor at a point where you can insert a [] or () pair for a link
⌘⌥V will paste the contents of the clipboard as an inline link on selected text
⌘⌥R will paste the contents of the clipboard as a reference link
⌘⌥K inserts a standard inline link, ⌘⇧K inserts an inline image
⌘⌥B and ⌘⌥I are bound to bold and italics (Markdown).
~ triggers HTML <del></del> tags (strikethrough) to selected text
Typing "#" when there’s a selection will surround it with "#" to make it a headline. Multiple presses add additional hashes, increasing the level of the header. Once you hit 6 hashes, it will reset to 0 on the next press. The match_header_hashes will determine if the # are mirrored on both sides or just at the beginning of the line.
Typing return at the end of a line that begins with hashmarks will insert closing hashmarks on the headline. They’re not required for Markdown, it’s just aesthetics, and you can change the match_header_hashes option in your settings to disable.
⌘^1 through ⌘^6 will add the corresponding number of hashmarks for headlines. Works on blank lines and selected text. in tandem with the above headline tools.
⌘⇧6 will insert a footnote and jump to its definition. If your cursor is in a definition, it will jump back to the marker.
⌥⇧F will locate footnote markers without definitions and insert the marker for the definition
⌥⇧G will do the same for missing reference links
### iTerm
⌘⇧⌥ to move a window to a tab
# set up profiles|keys|xterm with numeric keypad
# choose +, option left arrow, send escape sequence, b
# choose +, option right arrow, send escape sequence, f
### Quicktime
# playback speed (you don’t even need to hit play)
command + arrows
### OSX
# invert colors
^⌘⌥8
# zoom in
^ + zoom with trackpad
# login hooks, run on startup login
sudo defaults write com.apple.loginwindow LoginHook my/app
### Chrome
⌘⌥` - back history
⌘⌥+ - forward history
### Sublime Text
{
"line_numbers": false,
"gutter": false,
"draw_centered": true,
"wrap_width": 80,
"word_wrap": true,
"scroll_past_end": true
}
# select all
cmd+ctrl+g
# change case camel
To snake_case: "ctrl+alt+c", "ctrl+alt+s"
to camelCase: "ctrl+alt+c", "ctrl+alt+c"
# change theme (font size sidebar)
/Users/nacho/Library/Application Support/Sublime Text 2/Packages/Theme - Default/Default.sublime-theme
# close old tabs (tidytabs)
ctrl+alt+w
# create new file from current path
cmd+alt+n
# new build
"cmd": ["Rscript", "-e", "library(knitr)"] # use this
"cmd": ["Rscript -e ’library(knitr)’"] # not this
# open selection in chrome
^⌥U
^Q - toggle record macro
^⇧Q - run macro
⌘F2 - toggle bookmark
F2 - go to bookmark
⌘⇧F2 - clear bookmarks
select url + ^⌥u - open url in Chrome
⌘⌥ arrows - switch tabs
^+TAB - previous tab on stack
^2 - Focus split window group 2
^⇧2 - Move current file to split window group 2
⌘⌥ o - toggle overwrite
⌘⇧ p - choose action. Ex: Package Control
⌘⇧ h - HTMLpretiffy
F6 - Spell Check
F11 - Show console
⌘K⌘D - skip while quick adding
^º console
ddd d
F7 - build tmLanguage from JSON-tmLanguage
^D - diff with previously saved version of file
### SFTP
^⌘ UE - Download Current Folder
^⌘ UX - Cancel Operation
^⌘ US - Show Panel
^⌘ RB - Browse Server
^⌘ UR - Upload Folder
^⌘ UF - Upload File
^⌘ UN - Upload Open Files
^⌘ UI - Diff with Remote
^⌘ UY - Sync Local => Remote
^⌘ UM - Monitor File
^⌘ UW - Browse Remote
### screen
### RTM
### google cl
google [picasa|blogger|youtube|docs|contacts|calendar|finance] TASK [options]
google help calendar
google calendar today
google calendar list --query GLM
google calendar list -d tomorrow
google calendar list -d 2012-03-13
google calendar add "go to class at 2pm" --reminder 5m
-d DATE, --date=DATE Calendar only - date of the event to add/look for. Can
also specify a range with a comma. Picasa only - sets
the date of the album Finance only - transaction
creation date
### voicemail
1
2
3
4 - replay
5
6
7 - erase
8
9
0
### mldonkey
telnet 127.0.0.1 4000
s blah blah
s -format pdf
xs
vr [num]
d [num]
c # connect to more servers