forked from 2shea/talon_configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
symbols.py
65 lines (58 loc) · 2.05 KB
/
symbols.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
from talon.voice import Context
context = Context("symbols")
context.keymap({
'question [mark]': '?',
'tilde': '~',
'(bang | exclamation point)': '!',
'dollar [sign]': '$',
'(downscore | underscore)': '_',
'colon': ':',
'(paren | left paren)': '(', '(rparen | are paren | right paren)': ')',
'(bracket | brack | left bracket)': '{', '(rbrack | are bracket | right bracket)': '}',
'(angle | left angle | less than)': '<', '(rangle | are angle | right angle | greater than)': '>',
'(star | asterisk)': '*',
'(pound | hash [sign] | octo | thorpe | number sign)': '#',
'percent [sign]': '%',
'caret': '^',
'at sign': '@',
'(and sign | ampersand )': '&',
'pipe': '|',
'(dubquote | double quote)': '"',
'triple quote': "'''",
'(dot dot | dotdot)': '..',
'plus': '+',
'arrow': '->',
'dub arrow': '=>',
'indirect': '&',
'dereference': '*',
'(op equals | assign)': ' = ',
'op (minus | subtract)': ' - ',
'op (plus | add)': ' + ',
'op (times | multiply)': ' * ',
'op divide': ' / ',
'op mod': ' % ',
'[op] (minus | subtract) equals': ' -= ',
'[op] (plus | add) equals': ' += ',
'[op] (times | multiply) equals': ' *= ',
'[op] divide equals': ' /= ',
'[op] mod equals': ' %= ',
'(op | is) greater [than]': ' > ',
'(op | is) less [than]': ' < ',
'(op | is) equal': ' == ',
'(op | is) not equal': ' != ',
'(op | is) greater [than] or equal': ' >= ',
'(op | is) less [than] or equal': ' <= ',
'(op (power | exponent) | to the power [of])': ' ** ',
'op and': ' && ',
'op or': ' || ',
'[op] (logical | bitwise) and': ' & ',
'[op] (logical | bitwise) or': ' | ',
'(op | logical | bitwise) (ex | exclusive) or': ' ^ ',
'[(op | logical | bitwise)] (left shift | shift left)': ' << ',
'[(op | logical | bitwise)] (right shift | shift right)': ' >> ',
'(op | logical | bitwise) and equals': ' &= ',
'(op | logical | bitwise) or equals': ' |= ',
'(op | logical | bitwise) (ex | exclusive) or equals': ' ^= ',
'[(op | logical | bitwise)] (left shift | shift left) equals': ' <<= ',
'[(op | logical | bitwise)] (right shift | shift right) equals': ' >>= ',
})