feat: allow custom markdown preview command#1
Open
m-hesse wants to merge 6 commits intoKnworks:mainfrom
Open
Conversation
Introduces a new configuration setting 'previewCommand' that allows users to use third-party preview extensions like Markdown Preview Enhanced instead of the hardcoded VS Code default preview. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
openPreview only opens in the same column as a background tab. The correct MPE command for side preview is openPreviewToTheSide. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
isMarkdownPreviewTab now also matches the 'markdown-preview-enhanced' viewType when the custom preview command targets MPE, so the lock group logic works with third-party previews. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds a 'previewViewType' setting so the tab detection works with any third-party preview extension, not just MPE. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When a preview tab already exists, just execute the preview command again to update it in place instead of closing and reopening. This preserves the user's panel sizing. The close-on-non-markdown behavior is unchanged. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
previewCommandandpreviewViewType) that allow users to replace the built-in VS Code Markdown preview with any third-party preview extension (e.g. Markdown Preview Enhanced)previewViewTypeinstead of being hardcoded to the built-in previewConfiguration
previewCommandmarkdown.showPreviewToSidepreviewViewTypemarkdown.previewTest plan
previewCommandandpreviewViewTypeto MPE values and confirm preview opens to the side🤖 Generated with Claude Code