Skip to content

Conversation

@matthew-carroll
Copy link
Contributor

@matthew-carroll matthew-carroll commented Jan 1, 2026

Created CodeEditor widget

Gestures:

  • Click: Places caret
  • Click + Shift: Expand selection to the click position
  • Click and drag: Expands the selection
  • Double click: Selects token (or comment word)
  • Double click and drag: Selects token and keeps it selected while dragging to expand the selection
  • Triple click: Selects line
  • Triple click and drag: Selects line and keeps its selected while dragging to expand the selection

Keyboard:

  • Left/Right: Moves caret (or expands selection) by one character.
  • Alt/Opt + Left/Right: Moves caret (or expands selection) by token (or word within comments). Also ignores and stays away from spaces between tokens and words.
  • Cmd/Ctrl + Left/Right: Moves caret (or expands selection) to the start/end of a line.
  • Up/Down: Moves caret (or expands selection) one line up/down. Retains x-offset while moving up/down.
  • Page Up/Page Down: Moves caret (or expands selection) up/down by the height of the viewport. Retains x-offset while moving up/down.
  • Esc: Collapses selection

Creates CodeDocumentSyntaxHighlighter and SyntaxTheme interfaces

The work in this PR is in service of Kalua. I'm building out functionality in Inception that my ongoing work in Kalua requires.

Screen.Recording.2026-01-03.at.5.04.46.PM.mov

@matthew-carroll matthew-carroll merged commit d30fe83 into main Jan 4, 2026
1 of 2 checks passed
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