Skip to content

feat: add patch command for incremental document updates#172

Merged
G9Pedro merged 1 commit intomasterfrom
cursor/document-patch-command-cba8
Mar 14, 2026
Merged

feat: add patch command for incremental document updates#172
G9Pedro merged 1 commit intomasterfrom
cursor/document-patch-command-cba8

Conversation

@G9Pedro
Copy link
Copy Markdown
Contributor

@G9Pedro G9Pedro commented Mar 14, 2026

Closes #167

Adds clawvault patch command with three modes:

  • --append: append content to end of document
  • --replace/--with: find and replace within document
  • --section/--content: upsert a named markdown section

Auto-reindexes only the patched document. Preserves YAML frontmatter.

Files: src/commands/patch.ts, src/commands/patch.test.ts, src/cli/index.ts (registration)

Co-authored-by: G9Pedro <G9Pedro@users.noreply.github.com>
@G9Pedro G9Pedro merged commit 37c51e5 into master Mar 14, 2026
3 checks 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.

Add "patch" command to update files

2 participants