Skip to content

fix(editor): add monaco-style punctuation wrap opportunities - #2890

Merged
bajrangCoder merged 1 commit into
mainfrom
punctuation-word-wrap
Sep 12, 2026
Merged

bajrangCoder merged 1 commit into
mainfrom
punctuation-word-wrap

Conversation

@bajrangCoder

Copy link
Copy Markdown
Member

No description provided.

@bajrangCoder bajrangCoder changed the title fix(editor): add monac-style punctuation wrap opportunities fix(editor): add monaco-style punctuation wrap opportunities Sep 12, 2026
@greptile-apps

greptile-apps Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no concrete correctness, security, integration, or repository-rule issue was identified.

Summary

  • Adds zero-width <wbr> widget decorations after closing punctuation and before opening punctuation.
  • Enables punctuation opportunities for every wrapping-indentation mode, including none.
  • Adds unit coverage for ASCII and Unicode punctuation, edit updates, text preservation, and extension removal.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Wrapping enabled] --> B[indentedLineWrapping]
  B --> C[Native line wrapping]
  B --> D[punctuationWrapping plugin]
  D --> E[Match visible punctuation boundaries]
  E --> F[Insert zero-width wbr widgets]
  F --> G[Browser chooses additional soft-wrap points]
Loading

Reviews (1) · Last reviewed commit: "fix(editor): add monac-style punctuation..."

@bajrangCoder
bajrangCoder added this pull request to the merge queue Sep 12, 2026
Merged via the queue into main with commit 86527ea Sep 12, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in The Code Board - Acode Sep 12, 2026
@bajrangCoder
bajrangCoder deleted the punctuation-word-wrap branch September 12, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant