refactor(edit): restructured edit tool with substring find and focused chunk rendering

- Reorganized edit tool from `patch/` to `edit/` directory with dedicated mode subdirectories (chunk, patch, hashline, replace).
- Replaced line-scoped edit operations with substring-based `find` parameter and added `replace_body` operation for preserving signatures.
- Added chunk focus modes (Expanded, Collapsed, Container) and focused rendering to display only touched chunks and adjacent siblings.
- Implemented notebook (ipynb) language support with virtual source conversion and cell-based chunk parsing.
- Enhanced chunk edit error messages with consistent checksum mismatch reporting and improved chunk selector auto-resolution.
- Extracted edit mode implementations into separate modules with improved helper functions and LSP integration for diagnostics.
This commit is contained in:
can1357
2026-04-08 04:18:59 +02:00
parent a5fa614f1a
commit 0f3cced15e
56 changed files with 5572 additions and 4672 deletions
+1 -1
View File
@@ -5,8 +5,8 @@
*/
import * as path from "node:path";
import chalk from "chalk";
import { formatChunkedRead, resolveAnchorStyle } from "../edit/modes/chunk";
import { getLanguageFromPath } from "../modes/theme/theme";
import { formatChunkedRead, resolveAnchorStyle } from "../tools/chunk-tree";
export interface ReadCommandArgs {
path: string;