obsidian-pandoc-reference-list icon indicating copy to clipboard operation
obsidian-pandoc-reference-list copied to clipboard

Plugin is wrongly applied to markdown links with `@`as well

Open chrisgrieser opened this issue 2 years ago • 3 comments

Pasted image 2022-05-31 13 13 58

Essentially, the plugins seems to be applied to as soon as there is an @. However, as in the example shown above, the case where I cite someone from Discord (or from Twitter), also has the [@name] syntax. But as opposed to pandoc citations, those are always followed by (link), so this is actually an unequivocal case for the plugin to not consider something a pandoc citation.

And given that many ppl cite someone from Twitter or Discord, this issue should also come up fairly often enough to warrant a general fix for the plugin (as opposed to simply someone fixing it via css snippet)

chrisgrieser avatar May 31 '22 11:05 chrisgrieser

This is a bit of a challenging scenario @chrisgrieser, and relates to #34. In my vault, I have literature notes named @citekey.md that I link to using [[@citekey]], and I'd like the citation tooltip to show for these. It is possible, however, for users to set obsidian to use markdown links rather than wikilinks, meaning I would instead do [@citekey](/path/to/@citekey.md). I'm not quite sure what the ideal solution would be here. I'll have to think on it a bit.

mgmeyers avatar May 31 '22 20:05 mgmeyers

Yeah, I am too much of a coward to ever put characters like @ into my file names, but true, I haven't thought of this scenario. Maybe simply add a toggle in the settings, so users toggle it, depending on whether they sue such files or not?

chrisgrieser avatar May 31 '22 20:05 chrisgrieser

Maybe exclusion mechanism per folder in settings or per file basis via yaml will be a workaround?

danieltomasz avatar Jun 06 '22 08:06 danieltomasz

There's now an option to disable cite key processing in links. Let me know if you run into any issues with it

mgmeyers avatar Sep 19 '23 19:09 mgmeyers

thank you for all the recent improvements to the plugin <3

chrisgrieser avatar Sep 20 '23 09:09 chrisgrieser