Skip to content

feat: Ctrl+D match selection, instant symbols, Alt+Shift duplicate line - #115

Merged
ttncode merged 2 commits into
mainfrom
feat/match-select-and-instant-symbols
Dec 5, 2026
Merged

ttncode merged 2 commits into
mainfrom
feat/match-select-and-instant-symbols

Conversation

@ttncode

@ttncode ttncode commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Change

  • Ctrl+D selects the word at the caret, then adds the next match on each press; Ctrl+Shift+L selects every match (VS Code's keys). Matching is case-sensitive. Typing, Backspace, Delete and one-line paste change all selected matches at once, as one undo step; Esc, a click or any other key ends it. The webview keeps one real selection, so the extra matches are ranges painted with the CSS Highlight API, with drawn carets once collapsed (app/match-selection.js).
  • Checklist moves from Ctrl+Shift+L to Ctrl+Shift+C.
  • Ctrl+F closes the find bar when it is open.
  • Duplicate line moves from Ctrl+Alt+Shift+Up/Down to Alt+Shift+Up/Down, as in VS Code. The shortcut editor now accepts Alt+Shift with arrow keys on Windows (the language switch fires only on Alt+Shift alone).
  • ->, <->, =>, --, ... and the other symbols are replaced as the last character is typed, not on Space. retypedRun remembers what was typed behind a symbol, so — then > gives ⟶ and --- goes back to typed text.

Also releases v0.3.0.

Testing

  • node --test tests/: 255 pass.
  • Match selection checked in Chrome on a test page with the module (adding matches across bold, typing, Backspace on emoji, select all, ending on selection change).
  • Not checked in a running app: the editor wiring (keydown, paste, undo), instant symbols, WebKit on Mac. The e2e suite checks every default key reaches the page.

…ne, Ctrl+F toggles find

Ctrl+D adds the next match and Ctrl+Shift+L selects all, as in VS Code; typing edits every
selected match. Checklist moves to Ctrl+Shift+C. Symbols such as -> become their character
on the last key typed. Duplicate line moves to Alt+Shift+Up/Down.
@ttncode
ttncode merged commit d4d006c 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