Add Support for WSL Environments With Windows-stored Obsidian Vaults#84
Merged
Conversation
Intention is to be on top of #76 but I didn't realize it wasn't from a branch
If we're reading into the windows-stored config.json, then the paths are going to be windows filepaths. This simply applies the same "mnt translation" from the config path lookup to the vault path.
Previously adjustForWslMount only handled C: drive paths. Now detects any drive letter (A-Z) and translates to the corresponding /mnt/ path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Yakitrak
approved these changes
Feb 13, 2026
TriplEight
added a commit
to TriplEight/notesmd-cli
that referenced
this pull request
Feb 17, 2026
getPathForVault matches by strings.HasSuffix(path, name), so vault
names must be a suffix of the configured path. The original tests used
arbitrary keys ('windows', 'secondary', 'linux') that never matched,
causing all three WSL tests to fail since PR Yakitrak#84.
This was referenced Feb 17, 2026
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.
Description
Modifies the obsidian path resolution logic to include an additional check before failing in the case the user is running in WSL. The path resolution will instead do an additional lookup in the users Windows home directory (which is mounted for access from WSL) for the obsidian config
Modifies the vault path resolution logic to include an additional check in the case that we are in a WSL environment. If the received vault path is a windows file path, then we translate it into the WSL-mounted equivalent.
Checklist: