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:
@@ -1,7 +1,7 @@
|
||||
import { stripTypePrefix } from "../../commit/analysis/summary";
|
||||
import { validateSummary } from "../../commit/analysis/validation";
|
||||
import type { CommitType, ConventionalDetail } from "../../commit/types";
|
||||
import { normalizeUnicode } from "../../patch/normalize";
|
||||
import { normalizeUnicode } from "../../edit/normalize";
|
||||
|
||||
export const SUMMARY_MAX_CHARS = 72;
|
||||
export const MAX_DETAIL_ITEMS = 6;
|
||||
|
||||
Reference in New Issue
Block a user