Skip to content

Editor: word-wrap / soft-wrap long lines (deferred from code-editor v1) #105

Description

@blendsdk

Deferred from the v1 code-grade editor scope — see #102 and codeops/features/code-editor/shared-understanding.md (decision A).

Why deferred

Word-wrap breaks the editor's 1-buffer-line = 1-screen-row invariant. Today drawEditor walks one buffer line per screen row, vertical scroll counts buffer lines, editorMousePtr maps a screen row to a buffer line, and the gutter's line numbers align 1:1. Soft-wrap makes one logical line span N rows, changing scroll math, lineMove, mouse-hit mapping, caret up/down (visual vs logical line), the line:col indicator, and gutter alignment. The TV editor excluded it for the same reason.

Scope (rough)

  • Visual-vs-logical line model; wrap layout; caret up/down over wrapped lines.
  • Gutter line-number alignment for wrapped rows.
  • Toggle + wrap-column policy.

Its own RD; revisit after the v1 code editor ships.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: frameworkLarger framework infrastructureeffort: LLarge — multi-planenhancementNew feature or requestneeds-decisionOpen design decision blocks or scopes the workpriority: lowNice to have / defer

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions