Notes with a dot in their name, like notes.draft, now work like any other note: links to them are found, written so they read back, and kept up to date by iwe rename and by the editor and MCP rename. Wiki links to dotted names resolve too, and go to definition opens the right file for notes whose own name ends in .md. Thanks @acroaticum-ns for reporting the broken rename.
iwe
Changed
- Links to notes with a letter after the last dot in the name (like
notes.draft) are written with.mdwhenrefs_extensionis empty (previously without an extension, so IWE could not read them back)
Fixed
iwe renameupdates links to notes with a letter after the last dot in the name whenrefs_extensionis set (previously the links were not found and were left broken)iwe renameupdates wiki links to notes with a dot in the name, like[[notes.draft]](previously they were not found)- Links to a note whose own name ends in
.mdresolve to that note (previously they pointed at the note without the.md)
iwes
Fixed
- Link completions and the link action add the file extension for notes with a letter after the last dot in the name, so the inserted link points to the note (previously the link had no extension and did not lead to the note)
- Wiki links to notes with a dot in the name are recognized as links to those notes (previously they were taken for file links)
- Go to definition opens the right file for notes whose own name ends in
.md(previously it opened the note without the.md)
iwec
Fixed
- Renaming a note updates links and wiki links to notes with a dot in the name (previously some of them were not found)
Library crates (liwe, diwe)
liwe
Added
Link.documentfield saying whether a link points to a note, decided when the document is readdocument_link_path,document_url,Key::document_link_urlandKey::from_rel_document_linkfor reading and writing note links
Changed
reference::Target::from_link_urlrenamed toTarget::from_document_linkand expects the stored key path, without the file extensionProjector::projectandProjector::resolvetakerefs_extensionand the documentFormatis_document_urlno longer treats a bare.mdor.djas a note
Fixed
- Wiki links are always note references, so dotted names like
[[notes.draft]]resolve (previously they were taken for file links and ignored)
Removed
normalize_url, replaced bydocument_link_path