8000 Fix markdown file paths from WSL by strayge · Pull Request #456 · amirlehmam/wmux · GitHub
[go: up one dir, main page]

Skip to content

Fix markdown file paths from WSL - #456

Merged
amirlehmam merged 1 commit into
amirlehmam:masterfrom
strayge:fix/wsl-markdown-paths-pr
Nov 15, 2026
Merged

amirlehmam merged 1 commit into
amirlehmam:masterfrom
strayge:fix/wsl-markdown-paths-pr

Conversation

@strayge
@strayge strayge commented Nov 14, 2026
Copy link
Copy Markdown
Contributor

Problem

Running wmux markdown <file> or wmux markdown set <id> --file <path> in a WSL pane did not open the file. The CLI resolved the path inside WSL (e.g. /home/user/README.md) and sent it as is, and the Windows side resolved it again as C:\home\user\README.md, which does not exist.

Changes

  • In WSL, convert the resolved path with wslpath -w before sending it, so distro files become \\wsl.localhost\<distro>\… and /mnt/<drive>/… becomes a drive path.
  • Pass paths that Windows can already read (C:\…, C:/…, UNC) through unchanged.
  • Report a CLI error when wslpath fails instead of sending a path Windows cannot open.
  • Native Windows, plain Linux and --remote keep their existing path resolution.

Testing

  • Full suite: 6,714 passed, 10 skipped (415 test files passed, 2 skipped).
  • npm run typecheck passed.
  • git diff --check passed.
  • Manually, in a WSL pane: wmux markdown ./README.md opens the file.

@amirlehmam
amirlehmam merged commit 0492b10 into amirlehmam:master Nov 15, 2026
amirlehmam added a commit that referenced this pull request Nov 15, 2026
…h fix (#456)

Co-Authored-By: Claude Opus 5.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.

2 participants

0