krz/orgstar

A native macOS editor for org-mode files. editor org-mode swift

Commit 24b5036e3f

24b5036e3f7934b3bb6f198d54e3c9b0df7a8c26

parent: f984b02522

Verified · cmc

cmc <hello@cleberg.net> · 2026-10-09 01:04 UTC

Mac keys for cancel clock, recalculate row and single tangles

⌃⌘K cancels the clock, ⌃⌘* recalculates the table row, ⌃⇧⌘V tangles the block and ⌃⌥⌘V the block's target.

Layout: unified · split

Sources/OrgCore/Keymap/Presets.swift +13
@@ -1228,6 +1228,10 @@ public enum KeymapPreset: String, Sendable, CaseIterable {
12281228 command = "org.table.insert-hline"
12291229 when = "table"
12301230 [[bind]]
1231 keys = "C-s-*"
1232 command = "org.table.recalc"
1233 when = "table"
1234 [[bind]]
12311235 keys = "C-s-\\\\"
12321236 command = "org.table.create"
12331237 [[bind]]
@@ -1288,6 +1292,9 @@ public enum KeymapPreset: String, Sendable, CaseIterable {
12881292 keys = "C-M-s-j"
12891293 command = "app.clock.goto-recent"
12901294 [[bind]]
1295 keys = "C-s-k"
1296 command = "app.clock.cancel"
1297 [[bind]]
12911298 keys = "s-S-e"
12921299 command = "app.export-dialog"
12931300 [[bind]]
@@ -1336,6 +1343,12 @@ public enum KeymapPreset: String, Sendable, CaseIterable {
13361343 [[bind]]
13371344 keys = "C-s-v"
13381345 command = "org.babel.tangle"
1346 [[bind]]
1347 keys = "C-S-s-v"
1348 command = "org.babel.tangle-block"
1349 [[bind]]
1350 keys = "C-M-s-v"
1351 command = "org.babel.tangle-target"
13391352
13401353 """
13411354}
Tests/OrgCoreTests/KeymapTests.swift +2 −1
@@ -162,7 +162,8 @@ struct KeymapTests {
162162 ("org.narrow.toggle", "C-s-n"), ("org.sort", "C-s-S"), ("org.property.read-and-set", "C-s-P"),
163163 ("org.footnote.action", "C-s-F"), ("org.edit-special", "C-s-'"), ("org.todo.next", "C-S-s-<right>"),
164164 ("org.heading.forward-same-level", "M-S-s-<down>"), ("org.effort.set", "C-s-E"), ("org.priority.set", "C-s-,"),
165 ("org.babel.tangle", "C-s-v"),
165 ("org.babel.tangle", "C-s-v"), ("org.babel.tangle-block", "C-s-V"), ("org.babel.tangle-target", "C-M-s-v"),
166 ("app.clock.cancel", "C-s-k"), ("org.table.recalc", "C-s-*"),
166167 ]
167168 for (command, keys) in expected {
168169 #expect(mac.keys(for: command).map(KeySequence.format) == keys, "\(command)")