Keys for Remove Schedule and Remove Deadline in every preset !333

merged merged by cmc on 2026-10-14 03:42 UTC · krz/orgstar:remove-planning-keys into main

6 files changed, +31 −6

Layout: unified · split

Sources/OrgCore/Keymap/PresetDoom.swift +8
@@ -400,6 +400,14 @@ extension KeymapPreset {
400400 command = "org.schedule"
401401 mode = "normal"
402402 [[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]]
403411 keys = "SPC m d t"
404412 command = "org.timestamp.active"
405413 mode = "normal"
Sources/OrgCore/Keymap/PresetEmacs.swift +6
@@ -644,6 +644,12 @@ extension KeymapPreset {
644644 keys = "C-c C-d"
645645 command = "org.deadline"
646646 [[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]]
647653 keys = "M-q"
648654 command = "org.fill-paragraph"
649655 [[bind]]
Sources/OrgCore/Keymap/PresetMac.swift +6
@@ -123,6 +123,12 @@ extension KeymapPreset {
123123 keys = "C-s-e"
124124 command = "org.deadline"
125125 [[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]]
126132 keys = "C-s-p"
127133 command = "org.fill-paragraph"
128134 [[bind]]
Tests/OrgCoreTests/KeymapTests.swift +6 −1
@@ -184,10 +184,15 @@ struct KeymapTests {
184184 @Test func structureCommandsAreBound() {
185185 let emacs = KeymapPreset.emacs.keymap, doom = KeymapPreset.doom.keymap
186186 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")] {
188189 #expect(emacs.keyLabels(for: command).contains(keys), "\(command)")
189190 }
190191 #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"))
191196 #expect(doom.keyLabels(for: "org.element.drag-backward", modes: ["normal"]).contains("M-k"))
192197 let labels = doom.keyLabels(for: "org.item.bullet-previous", modes: ["normal"], limit: 5)
193198 #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
890890| Insert Inactive Timestamp (=org.timestamp.inactive=) | =C-c != | =⌃⌥⌘.= | =SPC m d T= (N) | Same, inactive (=org-timestamp-inactive=). |
891891| Schedule (=org.schedule=) | =C-c C-s= | =⌃⌘S= | =SPC m d s= (N) | Asks for a date and sets =SCHEDULED= (=org-schedule=). |
892892| 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=). |
893895| 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=). |
894896| 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=). |
895897| 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
10931095| Show or Hide Line Numbers (=app.toggle-line-numbers=) | Shows or hides line numbers. View ▸ Show Line Numbers, =⇧⌘L=. |
10941096| Show or Hide Tab Bar (=app.toggle-tab-bar=) | Shows or hides the tab bar. View ▸ Show Tab Bar. |
10951097| 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=). |
10981098| Create ID (=org.id.create=) | Gives the entry an =ID= property, a lowercase UUID, unless it has one (=org-id-get-create=). |
10991099| Delete Property… (=org.property.delete=) | Asks for a property of the entry and deletes it (=org-delete-property=). |
11001100| 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>
139139|------------------+------------------+-------------+------+-------------|
140140| Schedule | =org-schedule= | =C-c C-s= | ⌃⌘S | =SPC m d s= |
141141| 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= |
144144
145Schedule 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]]).
145Schedule 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]]).
146146
147147With =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:
148148