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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user