Skip to content

Make link matching use configurable path normalization#111

Open
knu wants to merge 1 commit intolicht1stein:masterfrom
knu:obsidian-normalize-path-function
Open

Make link matching use configurable path normalization#111
knu wants to merge 1 commit intolicht1stein:masterfrom
knu:obsidian-normalize-path-function

Conversation

@knu
Copy link
Contributor

@knu knu commented Jan 11, 2026

Introduce obsidian-normalize-path-function to preprocess both link targets and cached file paths before comparison. This fixes macOS diacritic mismatches (NFD-ish vs. NFC) that cause creating new files when following links to existing files.

The default remains identity with a fast path that skips normalization for users who don't need it. Added a helper for NFC+downcase. Default choices include identity, NFC, NFC+downcase, downcase, or custom function.

Introduce `obsidian-normalize-path-function` to preprocess both link
targets and cached file paths before comparison.  This fixes macOS
diacritic mismatches (NFD-ish vs. NFC) that cause creating new files
when following links to existing files.

The default remains `identity` with a fast path that skips
normalization for users who don't need it.  Added a helper for
NFC+downcase.  Default choices include identity, NFC, NFC+downcase,
downcase, or custom function.
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.

1 participant