Skip to content

Additional sync messages being sent on Windows due to path comparision issues. #29

@sytone

Description

@sytone

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions