-
Notifications
You must be signed in to change notification settings - Fork 785
/
symbols.talon
44 lines (44 loc) · 1.49 KB
/
symbols.talon
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
new line: "\n"
double dash: "--"
triple quote: "'''"
(triple grave | triple back tick | gravy): insert("```")
(dot dot | dotdot): ".."
ellipsis: "..."
(comma and | spamma): ", "
arrow: "->"
dub arrow: "=>"
empty dub string: user.insert_between('"', '"')
empty escaped (dub string | dub quotes): user.insert_between('\\"', '\\"')
empty string: user.insert_between("'", "'")
empty escaped string: user.insert_between("\\'", "\\'")
(inside parens | args): user.insert_between("(", ")")
inside (squares | brackets | square brackets | list): user.insert_between("[", "]")
inside (braces | curly brackets): user.insert_between("{", "}")
inside percent: user.insert_between("%", "%")
inside (quotes | string): user.insert_between("'", "'")
inside (double quotes | dub quotes): user.insert_between('"', '"')
inside (graves | back ticks): user.insert_between("`", "`")
angle that:
text = edit.selected_text()
user.paste("<{text}>")
(square | bracket | square bracket) that:
text = edit.selected_text()
user.paste("[{text}]")
(brace | curly bracket) that:
text = edit.selected_text()
user.paste("{{{text}}}")
(parens | args) that:
text = edit.selected_text()
user.paste("({text})")
percent that:
text = edit.selected_text()
user.paste("%{text}%")
quote that:
text = edit.selected_text()
user.paste("'{text}'")
(double quote | dub quote) that:
text = edit.selected_text()
user.paste('"{text}"')
(grave | back tick) that:
text = edit.selected_text()
user.paste("`{text}`")