From f0515f28bd28703da85fbe6a95c8e819792a6002 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 00:49:57 -0300 Subject: modal, edit, normal: the selection ops splice their primary range's offsets (Text.primaryRange): d, c, the selection's text, r, R and the chords' replace, ~ ` Alt-`, C-a and C-x, ms, md and insert-mode Delete; selRange and the cursor-pair half of modal's row/col edit layer go (rangeBytes, rangeText, deleteRange, replaceRange, replaceChars, deleteChar, clearLine, lineFrom), with their unit tests, and deleteLines no longer builds the removed text no caller read; a key-level test pins r and Delete on whole graphemes; the insert-mode and paste ops keep insertAt, deleteSpan, pasteLineBelow and advanceBy, whose callers hold cells; no key does anything new Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- docs/helix-keys.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/helix-keys.md b/docs/helix-keys.md index 1d1058ef..135e1610 100644 --- a/docs/helix-keys.md +++ b/docs/helix-keys.md @@ -169,10 +169,10 @@ capped 0xffff), the prefix key's role (`g` `z` `m` `f` `F` `t` `T` `r` `]` `[` ``. `find_op`/`find_ch` (the `Alt-.` repeat target) stay on the body's `Text`, because the parser emits `repeat_find` without remembering what was found. Pure text math in `modal.zig`: `findTarget`, `matchBracket`, -`paragraphFwd`/`paragraphBwd`/`paragraphRange`, textobject/surround ranges, -`replaceRange`/`replaceChars`, `changeCase`, `joinLine`, `indentLines`, -`adjustNumber`, `deleteSpan`, `advanceBy` — each with inline tests that -`zig build unit-test` runs. +`moveParagraph`/`selectParagraph`, textobject/surround ranges, +`changeCase`, `incrementDecimal`, `deleteSpan`, `advanceBy`, most with +inline tests that `zig build unit-test` runs. An op on a selection splices +the offsets of its range (`Text.primaryRange`). ### Counts -- cgit v1.3