-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimwiki.snippets
226 lines (152 loc) · 2.73 KB
/
vimwiki.snippets
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
snippet meta
---
title: "${1:}"
author: "${2:Albert Lee}"
output:
html_document:
number_sections: yes
toc: yes
code_folding: hide
toc_float: yes
html_notebook:
number_sections: yes
toc: yes
code_folding: hide
toc_float: yes
---
**Author**: [email protected] <br/>
**Date Created**: `date +%Y-%m-%d` <br/>
**Date Updated**: \`r Sys.Date()\` </br>
**Tags**: #has_tag </br>
**TLDR**: </br>
${0: # right your contents here}
endsnippet
snippet eq
\$\$
\begin{aligned}
${0:x = }
\end{aligned}
\$\$
endsnippet
snippet tmpl_wk
# inbox
* [ ]
* [ ]
* [ ]
# Mon
# Tue
# Wed
# Thu
# Fri
endsnippet
snippet !jira "Jira " b
## jira `date +%Y-%m-%d`
`jira asked`
endsnippet
snippet agenda "Description" b
# `date +%Y-%m-%d`
`gcalcli-agenda-today | strip_color`
# TODO (todoist)
`todoist-work | cut -f1 --complement -d" " | grep -v ':'`
endsnippet
snippet gitsum "Description" b
`git summaries | strip_color`
endsnippet
snippet sign "signature" b
Best,
Albert Lee, PhD
endsnippet
snippet box "Box"
`!p snip.rv = '┌' + '─' * (len(t[1]) + 2) + '┐'`
│ $1 │
`!p snip.rv = '└' + '─' * (len(t[1]) + 2) + '┘'`
$0
endsnippet
# snippet mk "Math" wA
# $${1}$`!p
# if t[2] and t[2][0] not in [',', '.', '?', '-', ' ']:
# snip.rv = ' '
# else:
# snip.rv = ''
# `$2
# endsnippet
snippet dm "Math" wA
\[
$1
.\] $0
endsnippet
# snippet // "Fraction" iA
# \\frac{$1}{$2}$0
# endsnippet
# snippet '((\d+)|(\d*)(\\)?([A-Za-z]+)((\^|_)(\{\d+\}|\d))*)/' "Fraction" wrA
# \\frac{`!p snip.rv = match.group(1)`}{$1}$0
# endsnippet
# priority 1000
# snippet '^.*\)/' "() Fraction" wrA
# `!p
# stripped = match.string[:-1]
# depth = 0
# i = len(stripped) - 1
# while True:
# if stripped[i] == ')': depth += 1
# if stripped[i] == '(': depth -= 1
# if depth == 0: break;
# i -= 1
# snip.rv = stripped[0:i] + "\\frac{" + stripped[i+1:-1] + "}"
# `{$1}$0
# endsnippet
# snippet / "Fraction" iA
# \\frac{${VISUAL}}{$1}$0
# endsnippet
snippet fun "Description"
f: \R \to \R
endsnippet
snippet lim "limit" w
\lim_{${1:n} \to ${2:\infty}}
endsnippet
snippet limsup "limsup" w
\limsup_{${1:n} \to ${2:\infty}}
endsnippet
snippet !meeting "meeting template" b
# Contents
- [Title](#Title)
- [Goals](#Goals)
- [Discussed](#Discussed)
- [Action Items](#Action Items)
# Title
# Goals
<!-- goal of the meeting -->
1.
# Discussed
# Action Items
1.
endsnippet
snippet !qq "questions"
* what
* why
* how
* where
* when
* who
endsnippet
snippet !issue "Issue" b
# Issue - ${1:ISSUE_TITLE}
## problem
${2}
## solution(s)
${3}
endsnippet
snippet !today "Description" b
# In Progress
${1}
# Logs
${2}
endsnippet
snippet ``` "Code"
\`\`\`
${VISUAL}
\`\`\`
endsnippet
snippet !lk "link"
[$1]($1$2)
endsnippet