-
Notifications
You must be signed in to change notification settings - Fork 796
/
Copy pathedit.talon
80 lines (61 loc) · 1.82 KB
/
edit.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
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
# Compound of action(select, clear, copy, cut, paste, etc.) and modifier(word, line, etc.) commands for editing text.
# eg: "select line", "clear all"
<user.edit_action> <user.edit_modifier>: user.edit_command(edit_action, edit_modifier)
# Zoom
zoom in: edit.zoom_in()
zoom out: edit.zoom_out()
zoom reset: edit.zoom_reset()
# Searching
find it: edit.find()
next one: edit.find_next()
# Navigation
# The reason for these spoken forms is that "page up" and "page down" are globally defined as keys.
scroll up: edit.page_up()
scroll down: edit.page_down()
# go left, go left left down, go 5 left 2 down
# go word left, go 2 words right
go <user.navigation_step>+: user.perform_navigation_steps(navigation_step_list)
go line start | head: edit.line_start()
go line end | tail: edit.line_end()
go way left:
edit.line_start()
edit.line_start()
go way right: edit.line_end()
go way up: edit.file_start()
go way down: edit.file_end()
go top: edit.file_start()
go bottom: edit.file_end()
go page up: edit.page_up()
go page down: edit.page_down()
# Indentation
indent [more]: edit.indent_more()
(indent less | out dent): edit.indent_less()
# Copy
copy that: edit.copy()
# Cut
cut that: edit.cut()
# Paste
(pace | paste) that: edit.paste()
(pace | paste) enter:
edit.paste()
key(enter)
paste match: edit.paste_match_style()
# Duplication
clone that: edit.selection_clone()
clone line: edit.line_clone()
# Insert new line
new line above: edit.line_insert_up()
new line below | slap: edit.line_insert_down()
# Insert padding with optional symbols
padding: user.insert_between(" ", " ")
(pad | padding) <user.symbol_key>+:
insert(" ")
user.insert_many(symbol_key_list)
insert(" ")
# Undo/redo
undo that: edit.undo()
redo that: edit.redo()
# Save
file save: edit.save()
file save all: edit.save_all()
[go] line mid: user.line_middle()