You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been experimenting with your library and discovered what appears to be a bug in indexFolder. When populating the links index, it skips [[wikiLink]] style links in cases where the wikiLink body !== relative file path.
This can be reproduced with a directory containing 2 files, separated by a level of directory hierarchy:
Foo.md: "[[Bar]]"
folder/Bar.md: ""
The resulting set of links indexed is 0 in this case, despite containing a valid [[wikiLink]], or at least a valid Obsidian-compatible wikiLink.
The function findFileToInsert in DatabaseUtils.ts seems to assume that the link target is a relative file path (excluding the extension), and will fail to recognize the wikiLink as a valid link, and the system will skip indexing it.
Whereas updating the above example to omit the sub-directory, i.e.,
Foo.md: "[[Bar]]"
Bar.md: ""
correctly results in a link being indexed.
I'm curious if this is a bug, or if this kind of Obsidian-compatible [[wikiLink]] is not supported?
The text was updated successfully, but these errors were encountered:
Jsmithrud37
changed the title
indexFolder does not populate links for [[wikiLinks]]indexFolder does not populate links for some [[wikiLinks]]Sep 27, 2024
Jsmithrud37
changed the title
indexFolder does not populate links for some [[wikiLinks]]indexFolder does not index links for some [[wikiLinks]]Sep 27, 2024
I've been experimenting with your library and discovered what appears to be a bug in
indexFolder
. When populating the links index, it skips[[wikiLink]]
style links in cases where the wikiLink body !== relative file path.This can be reproduced with a directory containing 2 files, separated by a level of directory hierarchy:
Foo.md
: "[[Bar]]"folder/Bar.md
: ""The resulting set of links indexed is 0 in this case, despite containing a valid
[[wikiLink]]
, or at least a valid Obsidian-compatible wikiLink.The function findFileToInsert in
DatabaseUtils.ts
seems to assume that the link target is a relative file path (excluding the extension), and will fail to recognize the wikiLink as a valid link, and the system will skip indexing it.Whereas updating the above example to omit the sub-directory, i.e.,
Foo.md
: "[[Bar]]"Bar.md
: ""correctly results in a link being indexed.
I'm curious if this is a bug, or if this kind of Obsidian-compatible
[[wikiLink]]
is not supported?The text was updated successfully, but these errors were encountered: