Commit 82594f0cde
82594f0cde1816f45583a9ffc218db803a063672
parent: 424b251694
Verified · cmc
cmc <hello@cleberg.net> · 2026-10-08 03:51 UTC
Correct key hints in comments and the footnote message
The footnote jump named C-c &, which nothing binds; going back is C-c
C-c or C-c C-x f on the definition's label. MarkSubtree is bound to
C-c @ and the @ speed key, not M-h. The C-c C-c header now mentions
checkbox toggling.
Layout: unified · split
Sources/OrgCore/Commands/CtrlCCtrlC.swift
+2 −2
| @@ -2,8 +2,8 @@ import Foundation |
| 2 | |
2 | |
| 3 | // C-c C-c (`org-ctrl-c-ctrl-c`, Org 9.8.7) for the contexts no more specific binding takes: |
3 | // C-c C-c (`org-ctrl-c-ctrl-c`, Org 9.8.7) for the contexts no more specific binding takes: |
| 4 | // headings set tags, clock lines get their duration again, timestamps their weekday, cookies |
4 | // headings set tags, clock lines get their duration again, timestamps their weekday, cookies |
| 5 | // update, items without a checkbox have their list repaired, setup keywords refresh, and |
5 | // update, items toggle their checkbox, or without one have their list repaired, setup keywords |
| 6 | // elsewhere there's nothing to do. |
6 | // refresh, and elsewhere there's nothing to do. |
| 7 | |
7 | |
| 8 | /// `org-ctrl-c-ctrl-c`. |
8 | /// `org-ctrl-c-ctrl-c`. |
| 9 | public struct CtrlCCtrlC: OrgCommand { |
9 | public struct CtrlCCtrlC: OrgCommand { |
Sources/OrgCore/Commands/Footnotes.swift
+1 −1
| @@ -513,7 +513,7 @@ public struct FootnoteAction: OrgCommand { |
| 513 | return .commit(EditResult(baseRevision: result.baseRevision, edits: result.edits, selection: result.selection, effects: result.effects + [.message(message)])) |
513 | return .commit(EditResult(baseRevision: result.baseRevision, edits: result.edits, selection: result.selection, effects: result.effects + [.message(message)])) |
| 514 | } |
514 | } |
| 515 | |
515 | |
| 516 | static let definitionMessage = "Edit definition and go back with `C-c &' or, if unique, with `C-c C-c'." |
516 | static let definitionMessage = "Edit definition and go back with `C-c C-c' or `C-c C-x f' on its label." |
| 517 | |
517 | |
| 518 | private func move(_ context: EditContext, to offset: Int, message: String? = nil) -> CommandStep { |
518 | private func move(_ context: EditContext, to offset: Int, message: String? = nil) -> CommandStep { |
| 519 | .commit(EditResult(baseRevision: context.revision, edits: [], selection: [offset..<offset], effects: message.map { [.message($0)] } ?? [])) |
519 | .commit(EditResult(baseRevision: context.revision, edits: [], selection: [offset..<offset], effects: message.map { [.message($0)] } ?? [])) |
Sources/OrgCore/Commands/ToggleCommands.swift
+1 −1
| @@ -326,7 +326,7 @@ extension EmacsBuffer { |
| 326 | } |
326 | } |
| 327 | } |
327 | } |
| 328 | |
328 | |
| 329 | /// C-c @ and M-h on a heading: `org-mark-subtree`, the subtree selected from its heading. |
329 | /// C-c @ (and the speed key @) on a heading: `org-mark-subtree`, the subtree selected from its heading. |
| 330 | public struct MarkSubtree: OrgCommand { |
330 | public struct MarkSubtree: OrgCommand { |
| 331 | public init() {} |
331 | public init() {} |
| 332 | public var id: String { "org.subtree.mark" } |
332 | public var id: String { "org.subtree.mark" } |