Sources/OrgCore/Keymap/PresetMac.swift

848c7b130274052f194a17fccd4e33e6bb30851d
orgstar/Sources/OrgCore/Keymap/PresetMac.swift history · blame · raw

288 lines · 7666 bytes

  1extension KeymapPreset {
  2    static let macBindings = """
  3        [[bind]]
  4        keys = "C-TAB"
  5        command = "app.buffer.next"
  6        [[bind]]
  7        keys = "C-S-TAB"
  8        command = "app.buffer.previous"
  9        [[bind]]
 10        keys = "C-s-2"
 11        command = "app.split-below"
 12        [[bind]]
 13        keys = "C-s-3"
 14        command = "app.split-right"
 15        [[bind]]
 16        keys = "C-s-0"
 17        command = "app.pane-close"
 18        [[bind]]
 19        keys = "C-s-1"
 20        command = "app.pane-only"
 21        [[bind]]
 22        keys = "M-s-`"
 23        command = "app.pane-next"
 24        [[bind]]
 25        keys = "M-s-n"
 26        command = "app.window-new"
 27        [[bind]]
 28        keys = "C-s-t"
 29        command = "org.todo.cycle"
 30        [[bind]]
 31        keys = "C-s-<up>"
 32        command = "org.priority.up"
 33        [[bind]]
 34        keys = "C-s-<down>"
 35        command = "org.priority.down"
 36        [[bind]]
 37        keys = "C-s-<left>"
 38        command = "org.heading.promote"
 39        [[bind]]
 40        keys = "C-s-<right>"
 41        command = "org.heading.demote"
 42        [[bind]]
 43        keys = "C-M-s-<left>"
 44        command = "org.subtree.promote"
 45        [[bind]]
 46        keys = "C-M-s-<right>"
 47        command = "org.subtree.demote"
 48        [[bind]]
 49        keys = "C-M-s-<up>"
 50        command = "org.subtree.up"
 51        [[bind]]
 52        keys = "C-M-s-<down>"
 53        command = "org.subtree.down"
 54        [[bind]]
 55        keys = "s-RET"
 56        command = "org.heading.insert"
 57        [[bind]]
 58        keys = "C-s-RET"
 59        command = "org.heading.insert-after-subtree"
 60        [[bind]]
 61        keys = "s-S-RET"
 62        command = "org.heading.insert-todo"
 63        [[bind]]
 64        keys = "M-s-<down>"
 65        command = "org.heading.next"
 66        [[bind]]
 67        keys = "M-s-<up>"
 68        command = "org.heading.previous"
 69        [[bind]]
 70        keys = "C-s-g"
 71        command = "org.tags.set"
 72        [[bind]]
 73        keys = "s-RET"
 74        command = "org.item.insert"
 75        when = "item"
 76        [[bind]]
 77        keys = "s-S-RET"
 78        command = "org.item.insert-checkbox"
 79        when = "item"
 80        [[bind]]
 81        keys = "C-s-<left>"
 82        command = "org.item.outdent"
 83        when = "item"
 84        [[bind]]
 85        keys = "C-s-<right>"
 86        command = "org.item.indent"
 87        when = "item"
 88        [[bind]]
 89        keys = "C-M-s-<left>"
 90        command = "org.item.outdent-tree"
 91        when = "item"
 92        [[bind]]
 93        keys = "C-M-s-<right>"
 94        command = "org.item.indent-tree"
 95        when = "item"
 96        [[bind]]
 97        keys = "C-M-s-<up>"
 98        command = "org.item.up"
 99        when = "item"
100        [[bind]]
101        keys = "C-M-s-<down>"
102        command = "org.item.down"
103        when = "item"
104        [[bind]]
105        keys = "C-s-c"
106        command = "org.checkbox.toggle"
107        [[bind]]
108        keys = "C-s-w"
109        command = "app.refile"
110        [[bind]]
111        keys = "C-s-a"
112        command = "app.archive"
113        [[bind]]
114        keys = "C-s-."
115        command = "org.timestamp.active"
116        [[bind]]
117        keys = "C-M-s-."
118        command = "org.timestamp.inactive"
119        [[bind]]
120        keys = "C-s-s"
121        command = "org.schedule"
122        [[bind]]
123        keys = "C-s-e"
124        command = "org.deadline"
125        [[bind]]
126        keys = "C-s-p"
127        command = "org.fill-paragraph"
128        [[bind]]
129        keys = "C-s-<up>"
130        command = "org.table.row-up"
131        when = "table"
132        [[bind]]
133        keys = "C-s-<down>"
134        command = "org.table.row-down"
135        when = "table"
136        [[bind]]
137        keys = "C-s-<left>"
138        command = "org.table.column-left"
139        when = "table"
140        [[bind]]
141        keys = "C-s-<right>"
142        command = "org.table.column-right"
143        when = "table"
144        [[bind]]
145        keys = "C-M-s-<right>"
146        command = "org.table.insert-column"
147        when = "table"
148        [[bind]]
149        keys = "C-M-s-<left>"
150        command = "org.table.delete-column"
151        when = "table"
152        [[bind]]
153        keys = "C-M-s-<up>"
154        command = "org.table.kill-row"
155        when = "table"
156        [[bind]]
157        keys = "C-M-s-<down>"
158        command = "org.table.insert-row"
159        when = "table"
160        [[bind]]
161        keys = "C-s--"
162        command = "org.table.insert-hline"
163        when = "table"
164        [[bind]]
165        keys = "C-s-*"
166        command = "org.table.recalc"
167        when = "table"
168        [[bind]]
169        keys = "C-s-\\\\"
170        command = "org.table.create"
171        [[bind]]
172        keys = "C-s-<up>"
173        command = "org.timestamp.up"
174        when = "timestamp"
175        [[bind]]
176        keys = "C-s-<down>"
177        command = "org.timestamp.down"
178        when = "timestamp"
179        [[bind]]
180        keys = "C-s-<right>"
181        command = "org.timestamp.day-later"
182        when = "timestamp"
183        [[bind]]
184        keys = "C-s-<left>"
185        command = "org.timestamp.day-earlier"
186        when = "timestamp"
187
188        # Act at point, links, clocking, export and the rest of C-c.
189        [[bind]]
190        keys = "C-s-x"
191        command = "org.ctrl-c-ctrl-c"
192        [[bind]]
193        keys = "C-s-x"
194        command = "org.dblock.update"
195        when = "dblock"
196        [[bind]]
197        keys = "C-s-x"
198        command = "org.table.recalc-all"
199        when = "tblfm"
200        [[bind]]
201        keys = "C-s-x"
202        command = "org.babel.execute"
203        when = "src"
204        [[bind]]
205        keys = "s-k"
206        command = "org.link.insert"
207        [[bind]]
208        keys = "C-s-o"
209        command = "org.link.open"
210        [[bind]]
211        keys = "C-s-l"
212        command = "org.link.store"
213        [[bind]]
214        keys = "C-s-i"
215        command = "app.clock.in"
216        [[bind]]
217        keys = "C-S-s-i"
218        command = "app.clock.out"
219        [[bind]]
220        keys = "C-s-j"
221        command = "app.clock.goto"
222        [[bind]]
223        keys = "C-M-s-i"
224        command = "app.clock.in-recent"
225        [[bind]]
226        keys = "C-M-s-j"
227        command = "app.clock.goto-recent"
228        [[bind]]
229        keys = "C-s-k"
230        command = "app.clock.cancel"
231        [[bind]]
232        keys = "s-S-e"
233        command = "app.export-dialog"
234        [[bind]]
235        keys = "C-s-n"
236        command = "org.narrow.toggle"
237        [[bind]]
238        keys = "C-S-s-s"
239        command = "org.sort"
240        [[bind]]
241        keys = "C-S-s-p"
242        command = "org.property.read-and-set"
243        [[bind]]
244        keys = "C-S-s-f"
245        command = "org.footnote.action"
246        [[bind]]
247        keys = "C-s-'"
248        command = "org.edit-special"
249        [[bind]]
250        keys = "C-S-s-<right>"
251        command = "org.todo.next"
252        when = "heading"
253        [[bind]]
254        keys = "C-S-s-<left>"
255        command = "org.todo.previous"
256        when = "heading"
257        [[bind]]
258        keys = "C-S-s-<right>"
259        command = "org.property.next-value"
260        when = "property"
261        [[bind]]
262        keys = "C-S-s-<left>"
263        command = "org.property.previous-value"
264        when = "property"
265        [[bind]]
266        keys = "M-S-s-<down>"
267        command = "org.heading.forward-same-level"
268        [[bind]]
269        keys = "M-S-s-<up>"
270        command = "org.heading.backward-same-level"
271        [[bind]]
272        keys = "C-S-s-e"
273        command = "org.effort.set"
274        [[bind]]
275        keys = "C-s-,"
276        command = "org.priority.set"
277        [[bind]]
278        keys = "C-s-v"
279        command = "org.babel.tangle"
280        [[bind]]
281        keys = "C-S-s-v"
282        command = "org.babel.tangle-block"
283        [[bind]]
284        keys = "C-M-s-v"
285        command = "org.babel.tangle-target"
286
287        """
288}