Skip to content

Added auto Plan Preview tab and EXCEPT_PLAN mode for inline diff preview - #117

Merged
oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:feature/auto-plan-preview
May 16, 2026
Merged

oleg68 merged 1 commit into
nbplugins:mainfrom
oleg68:feature/auto-plan-preview

Conversation

@oleg68

@oleg68 oleg68 commented May 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Automatically opens a live Markdown Preview tab when Claude writes a plan file to any plans/ directory (configurable in Settings → General)
  • Replaced mdPreviewInDiff boolean with MdPreviewInDiffMode enum (ALWAYS / NEVER / EXCEPT_PLAN) with matching combobox in the Options panel
  • Fixed EXCEPT_PLAN suppressing inline preview for all .md files when any plan tab was open — now only suppresses when the diffed file itself is a plan file and Auto Plan Preview is on (or its tab is already open)
  • Fixed plan preview tab going empty after Accept when editing an existing plan file (current content read immediately; forceReload scheduled unconditionally)
  • Fixed Refresh hidden for pinned preview tabs of files that already exist on disk
  • Updated settings-general.png screenshot and settings table in user manual

Test plan

  • TC-1: Ask for a plan → diff opens → Allow → Markdown Preview tab opens and fills within ≤5 s
  • TC-2: Ask for a second plan → same tab updates in-place
  • TC-3: Ask Claude to create a non-plan .md file → no auto preview tab
  • TC-7: EXCEPT_PLAN + non-plan .md → inline preview IS shown even when plan tab is open
  • TC-8: EXCEPT_PLAN + Auto Plan Preview on + plan file → inline preview NOT shown
  • TC-9: EXCEPT_PLAN + Auto Plan Preview off + no open tab → inline preview IS shown
  • TC-12: Pin preview for existing .md → Refresh visible in right-click menu
  • TC-13: show_markdown MCP tab → Refresh NOT visible
  • TC-15: Edit existing plan → preview tab does not go empty after Accept

🤖 Generated with Claude Code

- Auto-opens a live Markdown Preview tab when Claude writes a plan file
  to any plans/ directory (configurable in Settings → General)
- Replaced mdPreviewInDiff boolean with MdPreviewInDiffMode enum
  (ALWAYS / NEVER / EXCEPT_PLAN) with matching UI combobox
- Fixed EXCEPT_PLAN suppressing inline preview for all .md files when any
  plan tab was open; now suppresses only when the diffed file itself is a
  plan file and autoPlanPreview is on (or its tab is already open)
- Fixed plan preview tab going empty after Accept when editing an existing
  plan file; current content is read immediately and forceReload scheduled
  unconditionally
- Fixed Refresh hidden for pinned preview of files that exist on disk

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@oleg68
oleg68 merged commit 894c019 into nbplugins:main May 16, 2026
3 checks passed
@oleg68
oleg68 deleted the feature/auto-plan-preview branch May 16, 2026 14:20
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