Commit 8a7d6e3547
8a7d6e3547775f8d498ecc1493ba1118597e3a75
parent: 1900873c42
Verified · cmc
cmc <hello@cleberg.net> · 2026-10-14 03:42 UTC
Keys for Remove Schedule and Remove Deadline in every preset
C-u C-c C-s and C-u C-c C-d in the Emacs preset (and so in Doom's states), as
the timer and refile C-u forms are bound; SPC u SPC m d s and SPC u SPC m d d
under Doom's leader; ⌃⌥⌘S and ⌃⌥⌘E in the Mac preset, which has ⌃⇧⌘S and ⌃⇧⌘E
taken by Sort Entries and Set Effort. Agenda and Capture already have ⇧⌘A and
⇧⌘N as menu shortcuts in every preset, so nothing is added for them.
Closes #71
Layout: unified · split
Sources/OrgCore/Keymap/PresetDoom.swift
+8
| @@ -400,6 +400,14 @@ extension KeymapPreset { |
| 400 | 400 | command = "org.schedule" |
| 401 | 401 | mode = "normal" |
| 402 | 402 | [[bind]] |
| 403 | keys = "SPC u SPC m d s" |
| 404 | command = "org.schedule.remove" |
| 405 | mode = "normal" |
| 406 | [[bind]] |
| 407 | keys = "SPC u SPC m d d" |
| 408 | command = "org.deadline.remove" |
| 409 | mode = "normal" |
| 410 | [[bind]] |
| 403 | 411 | keys = "SPC m d t" |
| 404 | 412 | command = "org.timestamp.active" |
| 405 | 413 | mode = "normal" |
Sources/OrgCore/Keymap/PresetEmacs.swift
+6
| @@ -644,6 +644,12 @@ extension KeymapPreset { |
| 644 | 644 | keys = "C-c C-d" |
| 645 | 645 | command = "org.deadline" |
| 646 | 646 | [[bind]] |
| 647 | keys = "C-u C-c C-s" |
| 648 | command = "org.schedule.remove" |
| 649 | [[bind]] |
| 650 | keys = "C-u C-c C-d" |
| 651 | command = "org.deadline.remove" |
| 652 | [[bind]] |
| 647 | 653 | keys = "M-q" |
| 648 | 654 | command = "org.fill-paragraph" |
| 649 | 655 | [[bind]] |
Sources/OrgCore/Keymap/PresetMac.swift
+6
| @@ -123,6 +123,12 @@ extension KeymapPreset { |
| 123 | 123 | keys = "C-s-e" |
| 124 | 124 | command = "org.deadline" |
| 125 | 125 | [[bind]] |
| 126 | keys = "C-M-s-s" |
| 127 | command = "org.schedule.remove" |
| 128 | [[bind]] |
| 129 | keys = "C-M-s-e" |
| 130 | command = "org.deadline.remove" |
| 131 | [[bind]] |
| 126 | 132 | keys = "C-s-p" |
| 127 | 133 | command = "org.fill-paragraph" |
| 128 | 134 | [[bind]] |
Tests/OrgCoreTests/KeymapTests.swift
+6 −1
| @@ -184,10 +184,15 @@ struct KeymapTests { |
| 184 | 184 | @Test func structureCommandsAreBound() { |
| 185 | 185 | let emacs = KeymapPreset.emacs.keymap, doom = KeymapPreset.doom.keymap |
| 186 | 186 | for (command, keys) in [("org.drawer.insert", "C-c C-x d"), ("app.refile.copy", "C-c M-w"), ("app.refile.goto", "C-u C-c C-w"), |
| 187 | | ("org.element.drag-forward", "M-<down>"), ("org.item.bullet-next", "S-<right>")] { |
| 187 | ("org.element.drag-forward", "M-<down>"), ("org.item.bullet-next", "S-<right>"), |
| 188 | ("org.schedule.remove", "C-u C-c C-s"), ("org.deadline.remove", "C-u C-c C-d")] { |
| 188 | 189 | #expect(emacs.keyLabels(for: command).contains(keys), "\(command)") |
| 189 | 190 | } |
| 190 | 191 | #expect(doom.keyLabels(for: "app.refile.goto", modes: ["normal"]).contains("SPC u SPC m r r")) |
| 192 | #expect(doom.keyLabels(for: "org.schedule.remove", modes: ["normal"]).contains("SPC u SPC m d s")) |
| 193 | #expect(doom.keyLabels(for: "org.deadline.remove", modes: ["normal"]).contains("SPC u SPC m d d")) |
| 194 | let mac = KeymapPreset.mac.keymap |
| 195 | #expect(mac.keyLabels(for: "org.schedule.remove").contains("C-M-s-s") && mac.keyLabels(for: "org.deadline.remove").contains("C-M-s-e")) |
| 191 | 196 | #expect(doom.keyLabels(for: "org.element.drag-backward", modes: ["normal"]).contains("M-k")) |
| 192 | 197 | let labels = doom.keyLabels(for: "org.item.bullet-previous", modes: ["normal"], limit: 5) |
| 193 | 198 | #expect(labels.contains("C-H"), "\(labels)") |
docs/manual/guide/03-keys.org
+2 −2
| @@ -890,6 +890,8 @@ When a key appears in several rows, it runs the command whose condition holds at |
| 890 | 890 | | Insert Inactive Timestamp (=org.timestamp.inactive=) | =C-c != | =⌃⌥⌘.= | =SPC m d T= (N) | Same, inactive (=org-timestamp-inactive=). | |
| 891 | 891 | | Schedule (=org.schedule=) | =C-c C-s= | =⌃⌘S= | =SPC m d s= (N) | Asks for a date and sets =SCHEDULED= (=org-schedule=). | |
| 892 | 892 | | Set Deadline (=org.deadline=) | =C-c C-d= | =⌃⌘E= | =SPC m d d= (N) | Asks for a date and sets =DEADLINE= (=org-deadline=). | |
| 893 | | Remove Schedule (=org.schedule.remove=) | =C-u C-c C-s= | =⌃⌥⌘S= | =SPC u SPC m d s= (N) | Removes =SCHEDULED= (=org-schedule= with =C-u=). | |
| 894 | | Remove Deadline (=org.deadline.remove=) | =C-u C-c C-d= | =⌃⌥⌘E= | =SPC u SPC m d d= (N) | Removes =DEADLINE= (=org-deadline= with =C-u=). | |
| 893 | 895 | | Increase Timestamp Part (=org.timestamp.up=) | =S-<up>= | =⌃⌘↑= | =C-S-k= (N, I) | On a timestamp, increases the part under the caret: year, month, day, hour or minute (=org-timestamp-up=). | |
| 894 | 896 | | Decrease Timestamp Part (=org.timestamp.down=) | =S-<down>= | =⌃⌘↓= | =C-S-j= (N, I) | On a timestamp, decreases the part under the caret (=org-timestamp-down=). | |
| 895 | 897 | | Timestamp One Day Later (=org.timestamp.day-later=) | =S-<right>= | =⌃⌘→= | =C-S-l= (N, I) | On a timestamp, moves it one day later (=org-timestamp-up-day=). | |
| @@ -1093,8 +1095,6 @@ No preset binds these. Run them from the palette or a menu, or bind them in =key |
| 1093 | 1095 | | Show or Hide Line Numbers (=app.toggle-line-numbers=) | Shows or hides line numbers. View ▸ Show Line Numbers, =⇧⌘L=. | |
| 1094 | 1096 | | Show or Hide Tab Bar (=app.toggle-tab-bar=) | Shows or hides the tab bar. View ▸ Show Tab Bar. | |
| 1095 | 1097 | | Column View of File (=org.columns.global=) | Shows the column view of the whole file (=org-columns= with =C-u=). | |
| 1096 | | | Remove Schedule (=org.schedule.remove=) | Removes =SCHEDULED= (=org-schedule= with =C-u=). | |
| 1097 | | | Remove Deadline (=org.deadline.remove=) | Removes =DEADLINE= (=org-deadline= with =C-u=). | |
| 1098 | 1098 | | Create ID (=org.id.create=) | Gives the entry an =ID= property, a lowercase UUID, unless it has one (=org-id-get-create=). | |
| 1099 | 1099 | | Delete Property… (=org.property.delete=) | Asks for a property of the entry and deletes it (=org-delete-property=). | |
| 1100 | 1100 | | Delete Property Everywhere… (=org.property.delete-globally=) | Asks for a property and deletes it from every entry in the file (=org-delete-property-globally=). | |
docs/manual/guide/06-dates-and-clocking.org
+3 −3
| @@ -139,10 +139,10 @@ DEADLINE: <2026-10-31 Sat -7d> SCHEDULED: <2026-10-20 Tue> |
| 139 | 139 | |------------------+------------------+-------------+------+-------------| |
| 140 | 140 | | Schedule | =org-schedule= | =C-c C-s= | ⌃⌘S | =SPC m d s= | |
| 141 | 141 | | Set Deadline | =org-deadline= | =C-c C-d= | ⌃⌘E | =SPC m d d= | |
| 142 | | | Remove Schedule | =org-schedule= with =C-u= | | | | |
| 143 | | | Remove Deadline | =org-deadline= with =C-u= | | | | |
| 142 | | Remove Schedule | =org-schedule= with =C-u= | =C-u C-c C-s= | ⌃⌥⌘S | =SPC u SPC m d s= | |
| 143 | | Remove Deadline | =org-deadline= with =C-u= | =C-u C-c C-d= | ⌃⌥⌘E | =SPC u SPC m d d= | |
| 144 | 144 | |
| 145 | | Schedule and Set Deadline ask for a date, starting from the entry's current one and its time. They replace an existing date, keep its repeater and warning, and remove a =CLOSED= stamp from the entry. Remove Schedule and Remove Deadline have no default keys; run them from the Org menu or the command palette ([[file:03-keys.org][Keys]]). |
| 145 | Schedule and Set Deadline ask for a date, starting from the entry's current one and its time. They replace an existing date, keep its repeater and warning, and remove a =CLOSED= stamp from the entry. Remove Schedule and Remove Deadline are bound to Org's =C-u= forms as separate sequences, and are in the Org menu and the command palette ([[file:03-keys.org][Keys]]). |
| 146 | 146 | |
| 147 | 147 | With =org-log-reschedule= or =org-log-redeadline= set to =time= or =note= in =config.toml=, or the matching =#+STARTUP= words, orgstar logs each change of an existing date and each removal: |
| 148 | 148 | |