Account for Windows quirks in preview#29
Merged
rishi-opensource merged 2 commits intorishi-opensource:mainfrom Apr 12, 2026
Merged
Account for Windows quirks in preview#29rishi-opensource merged 2 commits intorishi-opensource:mainfrom
rishi-opensource merged 2 commits intorishi-opensource:mainfrom
Conversation
Owner
|
Thanks for your contribution 🙌 |
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.
This fixes two issues I noticed when trying to use the preview feature on Windows. After accounting for these, the diff preview seems to work nicely on Windows.
Claude preview installcommand generates mixed-path-delimiter paths in thesettings.local.json. The base bath of the plugin uses\as the path delimiter, but the part within the plugin dir uses/. It looks like Claude is executing commands in Bash, so it doesn't like the backslashes. This updates the code to normalize the paths to forward slashes, which work on all modern Windows versions.python3command does exist, but it's not actually python3. It's a wrapper script that redirects you to download Python from the Windows store (which is dumb IMO, but that's not the point). In addition, some Windows Python 3 builds (e.g. the one I install via Ninite) install only apython.exe, despite still being a valid Python 3 installation. This adds explicit version check inClaude doctorand a note in the README that you can fix this with a symlink.