Commit 0d88e898d3

0d88e898d32328efaac2cb4fd4f0e2d086a1993a

parent: 8835742e44

Verified · cmc

cmc <hello@cleberg.net> · 2026-11-22 21:22 UTC

Mac preset: Complete at Point on ⌥Esc

⌃Space is macOS's default for switching input sources, so the preset binds ⌥Esc, the system's text completion key, and leaves ⌃Space alone.

Ref #138

Layout: unified · split

Changed files (4)
Sources/OrgCore/Keymap/PresetMac.swift +3 · view
@@ -298,6 +298,9 @@ extension KeymapPreset {
298 [[bind]] 298 [[bind]]
299 keys = "C-M-s-v" 299 keys = "C-M-s-v"
300 command = "org.babel.tangle-target" 300 command = "org.babel.tangle-target"
301 [[bind]]
302 keys = "M-ESC"
303 command = "editor.complete"
301 304
302 """ 305 """
303} 306}
Tests/OrgCoreTests/KeymapTests.swift +2 · view
@@ -155,6 +155,8 @@ struct KeymapTests {
155 } 155 }
156 #expect(KeymapPreset.mac.keymap.keys(for: "org.tags.set") == [KeyChord("g", [.control, .command])]) 156 #expect(KeymapPreset.mac.keymap.keys(for: "org.tags.set") == [KeyChord("g", [.control, .command])])
157 #expect(KeymapPreset.mac.keymap.keys(for: "org.deadline") == [KeyChord("e", [.control, .command])]) 157 #expect(KeymapPreset.mac.keymap.keys(for: "org.deadline") == [KeyChord("e", [.control, .command])])
158 // ⌃Space switches input sources, so Complete at Point is ⌥Esc, the system's completion key.
159 #expect(KeymapPreset.mac.keymap.keys(for: "editor.complete") == [KeyChord("ESC", [.meta])])
158 } 160 }
159 161
160 /// The Mac preset reaches links, clocking, export and act-at-point without the palette. 162 /// The Mac preset reaches links, clocking, export and act-at-point without the palette.
docs/manual/guide/02-the-editor.org +1 −1 · view
@@ -236,7 +236,7 @@ Complete at Point (=completion-at-point=) completes the word before the caret fr
236|--------+----------------------------------------------------------| 236|--------+----------------------------------------------------------|
237| Emacs | =C-M-i= | 237| Emacs | =C-M-i= |
238| Doom | =C-SPC= or =C-@= in insert state; the list also opens by itself after you type two characters and pause for 0.4 seconds, as Doom's corfu does | 238| Doom | =C-SPC= or =C-@= in insert state; the list also opens by itself after you type two characters and pause for 0.4 seconds, as Doom's corfu does |
239| Mac | no key; run Complete at Point from the palette, or bind one in =keymap.toml= | 239| Mac | =⌥⎋= (Option-Escape) while Option is Meta; =⌃Space= stays with macOS, which switches input sources with it |
240 240
241With one candidate, it is inserted. With several, a list opens under the caret, showing up to 16 rows. Nothing is selected until you pick a row. 241With one candidate, it is inserted. With several, a list opens under the caret, showing up to 16 rows. Nothing is selected until you pick a row.
242 242
docs/manual/guide/03-keys.org +1 −1 · view
@@ -802,7 +802,7 @@ When a key appears in several rows, it runs the command whose condition holds at
802| Find Next (=edit.find-next=) | — | — | — | Goes to the next match of the find bar's text. | 802| Find Next (=edit.find-next=) | — | — | — | Goes to the next match of the find bar's text. |
803| Find Previous (=edit.find-previous=) | — | — | — | Goes to the previous match. | 803| Find Previous (=edit.find-previous=) | — | — | — | Goes to the previous match. |
804| Use Selection for Find (=edit.use-selection-for-find=) | — | — | — | Puts the selection in the find bar. | 804| Use Selection for Find (=edit.use-selection-for-find=) | — | — | — | Puts the selection in the find bar. |
805| Complete at Point (=editor.complete=) | =C-M-i= | — | =C-SPC= (I), =C-@= (I) | Completes what is typed at the caret: =#+= keywords and their values, link types, entities, tags, TODO keywords, headings, drawers, properties, src languages and header arguments, and =<s=-style templates (=completion-at-point=). One candidate is inserted; several open a list. | 805| Complete at Point (=editor.complete=) | =C-M-i= | =⌥⎋= |=C-SPC= (I), =C-@= (I) | Completes what is typed at the caret: =#+= keywords and their values, link types, entities, tags, TODO keywords, headings, drawers, properties, src languages and header arguments, and =<s=-style templates (=completion-at-point=). One candidate is inserted; several open a list. |
806| Fill Paragraph (=org.fill-paragraph=) | =M-q= | =⌃⌘P= | — | Refills the paragraph or list item to the fill column (=org-fill-paragraph=); with a selection, every paragraph it touches. In the Doom preset, =gq= and =gw= fill the lines a motion covers; see [[*Operators][Operators]]. | 806| Fill Paragraph (=org.fill-paragraph=) | =M-q= | =⌃⌘P= | — | Refills the paragraph or list item to the fill column (=org-fill-paragraph=); with a selection, every paragraph it touches. In the Doom preset, =gq= and =gw= fill the lines a motion covers; see [[*Operators][Operators]]. |
807 807
808** Outline: visibility and narrowing 808** Outline: visibility and narrowing
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form