Skip to content

Add Plan Files command to open and edit ~/.claude/plans/*.md#203

Open
leonidasbarkas98-cpu wants to merge 2 commits into
andrepimenta:mainfrom
leonidasbarkas98-cpu:feat/plan-files
Open

Add Plan Files command to open and edit ~/.claude/plans/*.md#203
leonidasbarkas98-cpu wants to merge 2 commits into
andrepimenta:mainfrom
leonidasbarkas98-cpu:feat/plan-files

Conversation

@leonidasbarkas98-cpu

Copy link
Copy Markdown

The CLI writes plan files to ~/.claude/plans/ but the extension ignored that directory entirely. This adds a "Plans" header button + command showing a QuickPick of plan files (mtime-sorted, symlinks filtered) that opens them in the editor. Saving an edited plan offers a "Send to Claude" notification (save-listener only — deliberately no FileSystemWatcher, which would also fire on CLI writes).

Same goal as PR #176, reimplemented on current main.

🤖 Generated with Claude Code

Jonas Kunert and others added 2 commits July 22, 2026 07:17
)

Adds a "Show Plan Files" command and a header button that list plan
markdown files written by the Claude CLI, open the newest/only one
directly or offer a QuickPick for multiple, reusing the existing file
editor helper. Saving a plan file from the editor now offers to notify
the running Claude session via the existing send-message path, but
only shows the info message (no button) if no webview is active.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…pimenta#9)

FileType is a bitmask, so a symlinked .md (File|SymbolicLink) was
skipped by the strict equality check against FileType.File; use a bit
test instead. Also guard against every stat() call failing after
readDirectory succeeded (e.g. file removed in between), which left
showQuickPick called with an empty list instead of showing the
"no plan files" message.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant