Skip to content

fix: arrows move every match cursor, Shift+Enter leaves a code block - #116

Merged
ttncode merged 2 commits into
mainfrom
fix/match-arrows-and-shift-enter
Dec 5, 2026
Merged

ttncode merged 2 commits into
mainfrom
fix/match-arrows-and-shift-enter

Conversation

@ttncode

@ttncode ttncode commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Change

  • With several matches selected, ← / → move every cursor (moveCarets in app/match-selection.js). A selection collapses to the side moved to; past a text node's edge the caret goes on in the next node, one character in on the same line, or to the next line's edge. Carets that meet merge.
  • Shift+Enter in a code block leaves it like Shift+↓. Before, Chrome put a <br> inside the code line.

Testing

  • node --test tests/: 255 pass.
  • Arrow moves checked in Chrome on a test page with the module: across lines, across bold, collapse then step, typing after.
  • Shift+Enter default confirmed in Chrome (<pre>a<br>b</pre>); the new path is not run in the app.

@ttncode
ttncode merged commit 93cabcf into main Dec 5, 2026
1 check 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