forked from pimentel/talon_user
-
Notifications
You must be signed in to change notification settings - Fork 0
/
words.py
99 lines (82 loc) · 2.19 KB
/
words.py
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
from talon.voice import Context, Key
ctx = Context('words')
keymap = {
'word queue': 'queue',
'word eye': 'eye',
'word bson': 'bson',
'word iter': 'iter',
'word no': 'null',
'title no': 'NULL',
'word cmd': 'cmd',
'word control': 'ctrl',
'word dup': 'dup',
'word streak': ['streq()', Key('left')],
'word printf': 'printf',
'word (dickt | dictionary)': 'dict',
'word shell': 'shell',
'word get': 'git',
'word get hub': 'github',
'word them': 'vim',
'word stood in': 'stdin',
'word stood out': 'stdout',
'word stood err': 'stderr',
'word write': 'write',
'word linux': 'linux',
'shrink parameters': 'params',
'shrink parameter': 'param',
'title shake file': 'Snakefile',
'word shake make': 'snakemake',
'word latex make': 'latexmk',
'word seek T K': 'seqtk',
'word numpy': 'numpy',
'word adam': 'atom',
'title adam': 'Atom',
# names
'word wife': 'puente',
'title wife': 'Puente',
'word son': 'avi',
'title son': 'Avi',
'word kyle': 'lior',
'word bays': 'bayes',
'title bays': 'Bayes',
# bio words
'word snip': 'snp',
'title snip': 'SNP',
'word Q T L': 'qtl',
'title Q T L': 'QTL',
'word transcript import': 'tximport',
'word seek': 'seq',
'title seek': 'Seq',
'word attack': 'atac',
'title attack': 'ATAC',
'shrink ensemble': 'ensembl',
'word plier': 'dplyr',
# 'word lunixbochs': 'lunixbochs',
'word talon': 'talon',
# 'word Point2d': 'Point2d',
# 'word Point3d': 'Point3d',
'title Point': 'Point',
'word angle': 'angle',
# unix style words
'shrink server': 'srv',
'shrink user': 'usr',
'shrink parameter': 'param',
# weird tech words
'word trello': 'trello',
}
keymap.update({
# 'mark block': ['```\n\n```', Key('up'), Key('up')],
'insert code': ['```\n\n```', Key('up')],
'insert our': ['```{r}\n\n```', Key('up')],
})
keymap.update({
'math towel': 'tao',
'math chai': 'chi',
'math row': 'rho',
'math sigh': 'psi',
'math some': 'sum',
'math root': 'sqrt',
'math empirical': 'ecdf',
'math poison': 'poisson',
})
ctx.keymap(keymap)