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

Can't save edit on mac

Open austinmw opened this issue 2 years ago • 6 comments

On mac I try pressing cmd+S to save an edit, but it doesn't work

I also can't seem to select specific text and query it, instead of querying the entire paper

austinmw avatar Apr 15 '23 17:04 austinmw

What is the Zotero version and the zotero-gpt version on your PC?

zfb132 avatar Apr 15 '23 20:04 zfb132

Zotero version 6.0.23 and zotero-gpt version 0.2.0.

from the other thread I changed the tag to say English, but I can't save it.

austinmw avatar Apr 15 '23 20:04 austinmw

I am using Windows, so I can't reproduce this issue now. You can try another way to change the tags.

  • open Zotero, click Edit --> Preference --> Advanced --> config editor in the menu
  • search the zoterogpt keyword
  • double click the extensions.zotero.zoterogpt.tags to change it
[{ "tag": "🌸AskClipboard", "color": "#dc4334", "position": 9, "text": "#🌸AskClipboard[position=9][color=#dc4334]\nRead this:\n\n```js\n\nZotero.ZoteroGPT.utils.getClipboardText()\n\n```\n\n---\n\nplease answer this question based on above content (use English). In the end, you need repeat above content:```js\nZotero.ZoteroGPT.views.inputContainer.querySelector(\"input\").value\n```" }, { "tag": "🪐AskPDF", "color": "#009FBD", "position": 0, "text": "#🪐AskPDF[position=0][color=#009FBD]\n\nYou are a helpful assistant. Context information is below.\n\n---\n```js\nwindow.gptInputString = Zotero.ZoteroGPT.views.inputContainer.querySelector(\"input\").value\nZotero.ZoteroGPT.views.messages = [];\n\nZotero.ZoteroGPT.utils.getRelatedText(\nwindow.gptInputString \n)\n\n```\n---\n\nCurrent date: ```js\nString(new Date())\n```\nUsing the provided context information, write a comprehensive reply to the given query. Make sure to cite results using [number] notation after the reference. If the provided context information refer to multiple subjects with the same name, write separate answers for each subject. Use prior knowledge only if the given context didn't provide enough information. \n\nAnswer the question:\n```js\nwindow.gptInputString \n```\n\nReply in English\n" }, { "tag": "🔍SearchItems", "color": "#ED5629", "position": 9, "text": "#🔍SearchItems[position=9][color=#ED5629]\n\n现在你是一个数据库系统,下面是一些JSON信息,每个JSON对应Zotero一篇文献:\n\n---\n\n```js\nwindow.gptInputString = Zotero.ZoteroGPT.views.inputContainer.querySelector(\"input\").value\nZotero.ZoteroGPT.views.messages = [];\n\nZotero.ZoteroGPT.utils.getRelatedText(\nwindow.gptInputString \n)\n\n```\n\n---\n\n我现在在寻找一篇文献,它很可能就在我上面给你的文献之中。下面是对我想找的文献的描述:\n```js\nwindow.gptInputString \n```\n\n请你回答最有可能是哪几篇文献,请同时给出最可能的一篇。\n\nReply in English" }]

zfb132 avatar Apr 15 '23 20:04 zfb132

This may not be the best method, but it should work.

zfb132 avatar Apr 15 '23 20:04 zfb132

I will test it in mac and try to fix.

MuiseDestiny avatar Apr 15 '23 22:04 MuiseDestiny

I can confirm this. I cannot edit and save the default AskPDF tag on macOS.

wenlzhang avatar Aug 05 '23 15:08 wenlzhang