Keys for Remove Schedule and Remove Deadline in every preset !333
6 files changed, +31 −6
Layout: unified · split
Sources/OrgCore/Keymap/PresetDoom.swift +8
| @@ -400,6 +400,14 @@ extension KeymapPreset { | |||
| 400 | command = "org.schedule" | 400 | command = "org.schedule" |
| 401 | mode = "normal" | 401 | mode = "normal" |
| 402 | [[bind]] | 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 | keys = "SPC m d t" | 411 | keys = "SPC m d t" |
| 404 | command = "org.timestamp.active" | 412 | command = "org.timestamp.active" |
| 405 | mode = "normal" | 413 | mode = "normal" |
Sources/OrgCore/Keymap/PresetEmacs.swift +6
| @@ -644,6 +644,12 @@ extension KeymapPreset { | |||
| 644 | keys = "C-c C-d" | 644 | keys = "C-c C-d" |
| 645 | command = "org.deadline" | 645 | command = "org.deadline" |
| 646 | [[bind]] | 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 | keys = "M-q" | 653 | keys = "M-q" |
| 648 | command = "org.fill-paragraph" | 654 | command = "org.fill-paragraph" |
| 649 | [[bind]] | 655 | [[bind]] |
Sources/OrgCore/Keymap/PresetMac.swift +6
| @@ -123,6 +123,12 @@ extension KeymapPreset { | |||
| 123 | keys = "C-s-e" | 123 | keys = "C-s-e" |
| 124 | command = "org.deadline" | 124 | command = "org.deadline" |
| 125 | [[bind]] | 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 | keys = "C-s-p" | 132 | keys = "C-s-p" |
| 127 | command = "org.fill-paragraph" | 133 | command = "org.fill-paragraph" |
| 128 | [[bind]] | 134 | [[bind]] |
Tests/OrgCoreTests/KeymapTests.swift +6 −1
| @@ -184,10 +184,15 @@ struct KeymapTests { | |||
| 184 | @Test func structureCommandsAreBound() { | 184 | @Test func structureCommandsAreBound() { |
| 185 | let emacs = KeymapPreset.emacs.keymap, doom = KeymapPreset.doom.keymap | 185 | let emacs = KeymapPreset.emacs.keymap, doom = KeymapPreset.doom.keymap |
| 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"), | 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 | #expect(emacs.keyLabels(for: command).contains(keys), "\(command)") | 189 | #expect(emacs.keyLabels(for: command).contains(keys), "\(command)") |
| 189 | } | 190 | } |
| 190 | #expect(doom.keyLabels(for: "app.refile.goto", modes: ["normal"]).contains("SPC u SPC m r r")) | 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 | #expect(doom.keyLabels(for: "org.element.drag-backward", modes: ["normal"]).contains("M-k")) | 196 | #expect(doom.keyLabels(for: "org.element.drag-backward", modes: ["normal"]).contains("M-k")) |
| 192 | let labels = doom.keyLabels(for: "org.item.bullet-previous", modes: ["normal"], limit: 5) | 197 | let labels = doom.keyLabels(for: "org.item.bullet-previous", modes: ["normal"], limit: 5) |
| 193 | #expect(labels.contains("C-H"), "\(labels)") | 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 | | Insert Inactive Timestamp (=org.timestamp.inactive=) | =C-c != | =⌃⌥⌘.= | =SPC m d T= (N) | Same, inactive (=org-timestamp-inactive=). | | 890 | | Insert Inactive Timestamp (=org.timestamp.inactive=) | =C-c != | =⌃⌥⌘.= | =SPC m d T= (N) | Same, inactive (=org-timestamp-inactive=). | |
| 891 | | Schedule (=org.schedule=) | =C-c C-s= | =⌃⌘S= | =SPC m d s= (N) | Asks for a date and sets =SCHEDULED= (=org-schedule=). | | 891 | | Schedule (=org.schedule=) | =C-c C-s= | =⌃⌘S= | =SPC m d s= (N) | Asks for a date and sets =SCHEDULED= (=org-schedule=). | |
| 892 | | Set Deadline (=org.deadline=) | =C-c C-d= | =⌃⌘E= | =SPC m d d= (N) | Asks for a date and sets =DEADLINE= (=org-deadline=). | | 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 | | 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=). | | 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 | | 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=). | | 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 | | 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=). | | 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 | | Show or Hide Line Numbers (=app.toggle-line-numbers=) | Shows or hides line numbers. View ▸ Show Line Numbers, =⇧⌘L=. | | 1095 | | Show or Hide Line Numbers (=app.toggle-line-numbers=) | Shows or hides line numbers. View ▸ Show Line Numbers, =⇧⌘L=. | |
| 1094 | | Show or Hide Tab Bar (=app.toggle-tab-bar=) | Shows or hides the tab bar. View ▸ Show Tab Bar. | | 1096 | | Show or Hide Tab Bar (=app.toggle-tab-bar=) | Shows or hides the tab bar. View ▸ Show Tab Bar. | |
| 1095 | | Column View of File (=org.columns.global=) | Shows the column view of the whole file (=org-columns= with =C-u=). | | 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 | | Create ID (=org.id.create=) | Gives the entry an =ID= property, a lowercase UUID, unless it has one (=org-id-get-create=). | | 1098 | | Create ID (=org.id.create=) | Gives the entry an =ID= property, a lowercase UUID, unless it has one (=org-id-get-create=). | |
| 1099 | | Delete Property… (=org.property.delete=) | Asks for a property of the entry and deletes it (=org-delete-property=). | | 1099 | | Delete Property… (=org.property.delete=) | Asks for a property of the entry and deletes it (=org-delete-property=). | |
| 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=). | | 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 | | Schedule | =org-schedule= | =C-c C-s= | ⌃⌘S | =SPC m d s= | | 140 | | Schedule | =org-schedule= | =C-c C-s= | ⌃⌘S | =SPC m d s= | |
| 141 | | Set Deadline | =org-deadline= | =C-c C-d= | ⌃⌘E | =SPC m d d= | | 141 | | Set Deadline | =org-deadline= | =C-c C-d= | ⌃⌘E | =SPC m d d= | |
| 142 | | Remove Schedule | =org-schedule= 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= | | | | | 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 | 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: | 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 | ||