-
Notifications
You must be signed in to change notification settings - Fork 0
/
rstudio.talon
159 lines (143 loc) · 6.37 KB
/
rstudio.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
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
app: RStudio
-
run that: key("ctrl-enter")
run doc: key("ctrl-alt-r")
run previous chunks: key("ctrl-alt-shift-p")
#run to end: key("ctrl-alt-e")
#run (function|funk): key("ctrl-alt-f")
#run section: key("ctrl-alt-t")
run chunk: key("ctrl-shift-enter")
run next chunk: key("ctrl-alt-n")
#run all: key("ctrl-shift-s")
knit doc: key("ctrl-shift-k")
# Moving around and formatting
jump back: key("ctrl-f9")
jump forward: key("ctrl-f10")
close all tabs: key("ctrl-shift-w")
indent lines: key("ctrl-i")
switch comment: key("ctrl-alt-c")
reformat comment: key("ctrl-shift-/")
reformat R code: key("ctrl-shift-a")
line up: %in% key("alt-up")
line down: key("alt-down")
duplicate line up: key("ctrl-alt-up")
duplicate line [down]: key("ctrl-alt-down")
#select to paren: key("ctrl-shift-e")
select to matching paren: key("ctrl-shift-alt-e")
jump to matching: key("ctrl-p")
expand selection: key("shift-alt-ctrl-up")
reduce selection: key("shift-alt-ctrl-down")
add cursor up: key("ctrl-alt-up")
add cursor down: key("ctrl-alt-down")
move active cursor up: key("ctrl-alt-shift-up")
move active cursor down: key("ctrl-alt-shift-down")
delete line: key("ctrl-d")
#delete word left: key("alt-backspace")
#delete word right: key("alt-delete")
stamp: key("alt--")
#pipe that: key("ctrl-shift-m") # duplicate in r.talon
blurb name: key("ctrl-alt-i up end left space")
blurb: key("ctrl-alt-i")
blurb no results:
key("ctrl-alt-i up end left space")
insert(", results=FALSE")
key("down")
blurb no eval:
key("ctrl-alt-i up end left space")
insert(", eval=FALSE")
key("down")
clam: key("space ` r space ` left")
slam: key("space $ $ left")
skip: key("right space")
dub skip: key("right right space")
italic that:
text = edit.selected_text()
user.paste('*{text}*')
bold that:
text = edit.selected_text()
user.paste('**{text}**')
empty italics:
insert("**")
key(left)
empty bold:
insert("****")
key(left left)
# headings
first heading: insert("# ")
second heading: insert("## ")
third heading: insert("### ")
fourth heading: insert("#### ")
# Folding
fold that: key("ctrl-alt-l")
unfold that: key("ctrl-shift-alt-l")
fold all: key("ctrl-alt-o")
unfold all: key("ctrl-shift-alt-o")
# Find and replace
find and replace: key("ctrl-f")
find next: key("ctrl-g")
find previous: key("ctrl-shift-g")
find with selection: key("ctrl-e")
find in files: key("ctrl-shift-f")
run replace: key("ctrl-shift-j")
run spell check: key("f7")
# Navigation and panels
go to source: key("ctrl-1")
go to console: key("ctrl-2")
go to help: key("ctrl-3")
go to history: key("ctrl-4")
go to files: key("ctrl-5")
go to (plots|plot): key("ctrl-6")
go to packages: key("ctrl-7")
go to environment: key("ctrl-8")
go to git: key("ctrl-9")
go to build: key("ctrl-0")
go to terminal: key("alt-shift-t")
go to omni: key("ctrl-.")
go to line: key("ctrl-shift-alt-g")
go to section: key("ctrl-shift-alt-j")
go to tab: key("ctrl-shift-.")
go to previous tab: key("ctrl-f11")
go to next tab: key("ctrl-f12")
go to first tab: key("ctrl-shift-f11")
go to last tab: key("ctrl-shift-f12")
zoom source: key("ctrl-shift-1")
(zoom|show) all: key("ctrl-shift-0")
help that: key("f1")
define that: key("f2")
previous plot: key("ctrl-alt-f11")
next plot: key("ctrl-alt-f12")
# devtools, package development, and session management
restart R session: key("ctrl-shift-f10")
dev tools build: key("ctrl-shift-b")
dev tools load all: key("ctrl-shift-l")
dev tools test: key("ctrl-shift-t")
dev tools check: key("ctrl-shift-e")
dev tools document: key("ctrl-shift-d")
# Debugging
toggle breakpoint: key("shift-f9")
debug next: key("f10")
debug step into (function|funk): key("shift-f4")
debug finish (function|funk): key("shift-f6")
debug continue: key("shift-f5")
debug stop: key("shift-f8")
# Git/SVN
run git diff: key("ctrl-alt-d")
run git commit: key("ctrl-alt-m")
# Other shortcuts that could be enabled
# run line and stay: key("alt-enter")
# run and echo all: key("cmd-shift-enter")
# extract (function|funk): key("cmd-alt-x")
# extract variable: key("cmd-alt-v")
# new terminal: key("shift-alt-t")
# rename current terminal: key("shift-alt-r")
# clear current terminal: key("ctrl-shift-l")
# previous terminal: key("ctrl-alt-f11")
# next terminal: key("ctrl-alt-f12")
# clear console: key("ctrl-l")
# popup history: key("cmd-up")
# change working directory: key("ctrl-shift-h")
# new document: key("cmd-shift-n")
# new document (chrome only): key("cmd-shift-alt-n")
# insert code section: key("cmd-shift-r")
# scroll diff view: key("ctrl-up/down")
# sync editor & pdf preview: key("cmd-f8")