zotero-mdnotes icon indicating copy to clipboard operation
zotero-mdnotes copied to clipboard

When mdnotes replaces a file of the same name it should delete the attachment within zotero

Open brimwats1 opened this issue 4 years ago • 10 comments

Is your feature request related to a problem? Please describe. I have these settings

image image

Describe the solution you'd like

The reason I have these settings is so mdnotes will produce and replace the same file, allowing lit notes to grow as i read and re-read. However when i remake the lit note it does this:

image

image

As you can see it has just replaced the older file but it creates a duplicate link. Could mdnotes just remove this older duplicate?

brimwats1 avatar Dec 23 '20 07:12 brimwats1

for what it's worth, these duplicate attachments do not show up in "duplicate items" section of zotero, for ovious reasons (they're not top level)

brimwats1 avatar Dec 23 '20 07:12 brimwats1

There shouldn't be any duplicate attachments, so this might be a bug. Do you have by any chance the setting to use the obsidian URI as well? That might be the only case where seemingly duplicate attachments could happen.

argenos avatar Jan 14 '21 12:01 argenos

here are my current settings! image image

brimwats1 avatar Jan 14 '21 22:01 brimwats1

The preference for this one is hidden! So it would only appear on the config editor (similar to here) after you filter for Obsidian.

argenos avatar Jan 16 '21 18:01 argenos

Here is what I have!

image

brimwats1 avatar Jan 16 '21 18:01 brimwats1

@brimwats I haven't been able to reproduce this at all. Could you show me the config editor but filter instead by mdnotes.obsidian?

image

argenos avatar Feb 17 '21 23:02 argenos

@argenos mine is "false" and missing "notes" dunno why

image

brimwats1 avatar Feb 18 '21 16:02 brimwats1

oh god i just realized I made #90 without looking at this. they're related so copying here:

When trying to get my template right, or when refactoring it, I end up generating a TON of .md notes. I would love to be able to wipe them clean

Here are some examples of the problem: image image

It would be great to select a few and then to choose "delete MDnote links"

brimwats1 avatar May 01 '21 18:05 brimwats1

Oh, that's a good idea for sure!

Are you exporting on multiple directories? The attached links shouldn't be duplicated otherwise. If you don't want file:// links, you can disable them in the preferences. If all these go into your vault, you could enable (instead or in addition) links using the Obsidian URI (those don't depend on the path... I assume people are using the shortest-path settings and file names are unique until told otherwise!)

argenos avatar May 01 '21 19:05 argenos

Oh, that's a good idea for sure!

Are you exporting on multiple directories? The attached links shouldn't be duplicated otherwise. If you don't want file:// links, you can disable them in the preferences. If all these go into your vault, you could enable (instead or in addition) links using the Obsidian URI (those don't depend on the path... I assume people are using the shortest-path settings and file names are unique until told otherwise!)

No, i've been exporting to same directory since the beginning

C:\Users\Brian\Box Sync\000-PKB\ZoteroNotes

I use shortest path, and do want file:// names

brimwats1 avatar May 01 '21 20:05 brimwats1