argenos / zotero-mdnotes

A Zotero plugin to export item metadata and notes as markdown files
https://argenos.github.io/zotero-mdnotes/
GNU General Public License v3.0
1.34k stars 81 forks source link

The BBT gets the citation key, but there is no file export. #229

Closed jatolispark closed 1 month ago

jatolispark commented 9 months ago

Version

mdnotes v0.2.3 (fiexed) Better BibTeX v6.7.163 Zotero v6.0.33 MacOS 14.1.1 (23B81) Apple M2

how did i fixed the mdnotes add-on

change this funciton


function getCiteKey(item) {
  if (typeof Zotero.BetterBibTeX === "object" && Zotero.BetterBibTeX !== null) {
    var bbtItem = Zotero.BetterBibTeX.KeyManager.get(item.getField("id"));
    return bbtItem.citekey;
  }

it successfully show me the window to choose where I can export the mdfile, but it still didn't work to export a markdown file in the target folder.

the progress of the question happened

  1. i create the mdfile

    image
  2. I choose the folder to export

    image
  3. but it didn't appear in the selected folder.

    image

if you can help me to solve the problem, i will be too much grateful! the add-on has accelerated my workflow a lot! but today it suddenly didn't work.

DivingWhale commented 6 months ago

Here's a solution: #225 by RobaaaT. But you need to repack and reinstall yourself.