Skip to content

feat(windows): word wrap, bracket pairs, statement band, Go to Error, code folding and color schemes in the editor - #4324

Merged
datlechin merged 9 commits into
mainfrom
feat/windows-editor-wave-2
Nov 18, 2026
Merged

datlechin merged 9 commits into
mainfrom
feat/windows-editor-wave-2

Conversation

@datlechin

@datlechin datlechin commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Editor: word wrap from Settings; rows break by columns as a monospaced font lays them out, Up, Down, Home and End move by rows (W-39)
  • Editor: the bracket beside the caret and its pair get a box; brackets in strings, comments and quoted names never pair (W-39)
  • Editor: a band behind the statement at the caret, the one Run Statement sends, on by default in Settings (W-39)
  • Results: Go to Error on a failed run's error bar puts the caret where the server said the statement failed (W-39)
  • Editor: code folding of statements, brackets, BEGIN/CASE blocks and block comments, with gutter chevrons, a chip on the folded line, Ctrl+Shift+[ and Ctrl+Shift+], and Fold, Unfold, Fold All and Unfold All on the menu; folds come back with the session (W-41)
  • Editor: light and dark color schemes from the macOS app's built-in themes (windows/scripts/editor-schemes.py), picked in Settings (W-55)
  • Model: VisualRows maps lines to rows under wrap and folds; drawing, hit testing, carets, scrolling and UIA read rows. UIA gives a rectangle per row and splits the visible ranges at a fold
  • Core: tablepro_script_statements C ABI gives every statement's UTF-16 span as statement_at and the drivers split; PostgreSQL error positions now count from the start of the SQL the run was given, as MongoDB's do
  • Decision 0002 and core/ARCHITECTURE.md updated
  • Not here: W-40 Vim mode

Test plan

  • Editor.Model: wrap breaks and rows, row moves, fold regions, fold mapping through edits, statement at the caret, bracket pairs, schemes
  • Editor control (Windows): wrap rectangles, Fold All and the fold keys, the band, bracket pairs
  • App.Model: settings defaults and round trip, Go to Error offsets (statement, selection, whole text with CRLF), folds in the session
  • Interop and core: Statements and tablepro_script_statements, the PostgreSQL position rebase, and a PostgreSQL integration test with the error in a script's second statement
  • UI tests with screenshots 133 to 137: Settings cards, word wrap, Fold All and Unfold All, band and brackets, a color scheme

Screenshots

Before (main): Settings, Editor section

Settings on main

After: Settings with word wrap, statement band, folding and the two color schemes

Settings

After: word wrap, with the band over the statement's rows

Word wrap

After: Fold All, a chevron and a chip on the folded line (dark)

Folded

After: the brackets beside the caret and the statement band

Brackets and band

After: GitHub Light and Dracula schemes

GitHub Light
Dracula

@datlechin
datlechin merged commit 7a59829 into main Nov 18, 2026
34 checks passed
@datlechin
datlechin deleted the feat/windows-editor-wave-2 branch November 19, 2026 15:54
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.

1 participant