Skip to content

Conversation

@gschier
Copy link
Member

@gschier gschier commented Jan 7, 2026

  • Replaces hardcoded Ctrl-Space autocomplete trigger in CodeMirror with the existing configurable hotkey system
  • Adds new editor.autocomplete hotkey action that defaults to Control+Space on all platforms
  • Users can now customize the autocomplete trigger in Settings → Shortcuts
  • Add ability to filter hotkey settings pane
CleanShot 2026-01-07 at 15 05 01@2x

gschier and others added 4 commits January 6, 2026 15:09
Replace the hardcoded Ctrl-Space autocomplete trigger in CodeMirror with
the existing configurable hotkey system. This adds a new 'editor.autocomplete'
hotkey action that defaults to Control+Space on all platforms.

Changes:
- Add 'editor.autocomplete' to HotkeyAction type with default Control+Space
- Filter out the built-in completion trigger from CodeMirror's completionKeymap
- Add custom keydown handler in Editor that triggers startCompletion()
- Export eventMatchesHotkey() helper for checking hotkey matches
- Add 'Space' to layout-insensitive keys for proper spacebar detection

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add 'Space' to LAYOUT_INSENSITIVE_KEYS so that the spacebar is recorded
as 'Space' (using e.code) instead of ' ' (using e.key), matching the
format used in useHotKey.ts for hotkey matching.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@gschier gschier merged commit ebcdee9 into main Jan 7, 2026
4 checks passed
@gschier gschier deleted the autocomplete-hotkey branch January 7, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants