breadcrumbs icon indicating copy to clipboard operation
breadcrumbs copied to clipboard

Bug: Nodes are added using their basename instead of path. Conflict ensues

Open vitaly opened this issue 3 years ago • 7 comments

I have several journal directories, one per client

this plugin mixes the notes from different journal, but sharing the same file namr

e.g if I have Client A/journal/2021-10-01 that sets client:: [[Client A]] and client B/journal/2021-10-01 that sets client:: [[Client B]], then both of those notes will have both clients as their project (Real).

I enabled the debug logs, and from the looks of it, it only uses the file name for the indexing, ignoring the path.

vitaly avatar Sep 30 '21 01:09 vitaly

There is sort of a limitation here, you see. I only have as much information as is in the wikilink brackets [[info]]. So if I only know that date:: [[2021-10-01]], then that's all I've got to go off of. There is an option to have the full file path in the brackets, which is something I can try account for. But this will take me some time to work out the kinks

SkepticMystic avatar Nov 19 '21 09:11 SkepticMystic

I just bumped into this issue. Why not use getFirstLinkpathDest(linkpath: string, sourcePath: string): TFile when indexing the vault?

zsviczian avatar Apr 05 '22 19:04 zsviczian

Problem still exists?

shixinzi avatar Apr 16 '22 07:04 shixinzi

I can confirm this still exists, i am running into this same issue even when i specify the full path.

wiebe avatar Aug 23 '22 18:08 wiebe

I have the same issue currently. I have multiple files with the same name in different folders. Even though I alwas use the whole path in the up/next relations, the result is a reference to the wrong file.

gbeine avatar Dec 23 '22 17:12 gbeine

Hi guys, any news on this one? After using my vault for quite a while with daily notes in subfolder together with events for that day in respective notes, I increasingly encounter notes with identical names in different subfolders. Is there any workarround or fix for this?

jonnymauser76 avatar Apr 17 '23 10:04 jonnymauser76

This is one of the longest-standing issues, so I think it's a good place to mention that I'm working on rebuilding Breadcrumbs. This issue is resolved in the beta release, so you can start using it today. But please do read more before upgrading: https://github.com/SkepticMystic/breadcrumbs/blob/master/V4.md

I'll keep this issue open until the new version is live

SkepticMystic avatar Feb 03 '24 15:02 SkepticMystic

Now that I've officially announced V4 on the Discord server, I'm going to finally consider this issue closed :) Again, checkout the V4 changes for more info: https://github.com/SkepticMystic/breadcrumbs/blob/master/V4.md

SkepticMystic avatar Mar 21 '24 16:03 SkepticMystic