Issue 1: Path Separator Inconsistency
Problem: Windows file watcher provides paths with backslashes (\), but other code paths use forward slashes (/), resulting in different cache keys for the same file.
Example:
First: "1 Journal/2025/2025-W41.md" (forward slash)
Second: "1 Journal\2025/2025-W41.md" (backslash)
Issue 2: BaseDir Prefix Not Stripped
Problem: The toGlobalPath() method wasn't properly stripping baseDir prefixes when paths contained different separators or ./ prefixes.
Example:
Input: "./vault/1 Journal/2025/file.md"
BaseDir: "./vault/"
Result: "vault/1 Journal/2025/file.md" (WRONG - should be "1 Journal/2025/file.md")
Issue 1: Path Separator Inconsistency
Problem: Windows file watcher provides paths with backslashes (
\), but other code paths use forward slashes (/), resulting in different cache keys for the same file.Example:
Issue 2: BaseDir Prefix Not Stripped
Problem: The
toGlobalPath()method wasn't properly stripping baseDir prefixes when paths contained different separators or./prefixes.Example: