Skip to content

feat: add markdown Quick Actions (table-append, upsert-bullet, replace-section) #114

@SebTardif

Description

@SebTardif

Problem

The Patchloom CLI exposes 7 heading-aware markdown subcommands (patchloom md), but none are accessible through the VS Code extension Quick Actions. These are among the CLI's strongest differentiators since VS Code has no native equivalent for structured markdown editing by heading.

Proposed solution

Add three markdown Quick Actions to the Quick Action picker, covering the most common use cases:

1. Append table row (md table-append)

  • Prompt for: target file, heading (e.g. ## API), row content (pipe-delimited)
  • Builds: patchloom md table-append <file> --heading "<heading>" --row "<row>"
  • Use case: adding entries to tables in AGENTS.md, README.md, CHANGELOG.md

2. Upsert bullet (md upsert-bullet)

  • Prompt for: target file, heading, bullet text
  • Builds: patchloom md upsert-bullet <file> --heading "<heading>" --bullet "<text>"
  • Use case: adding rules or items to AGENTS.md sections idempotently

3. Replace section (md replace-section)

  • Prompt for: target file, heading, new content (multiline input box)
  • Builds: patchloom md replace-section <file> --heading "<heading>" --content "<content>"
  • Use case: regenerating documentation sections, updating changelogs

All three should use the existing preview-and-apply pattern (diff view, then "Apply Changes" confirmation).

Acceptance criteria

  • Three new items appear in the Quick Action picker
  • Each builds the correct CLI args and shows a diff preview before applying
  • Builder functions are unit-tested
  • npm run check passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions