How to copy a figure from note editor?
Hello there,
I am getting used to the new note editor in Zotero 6. Using Obsidian, I'd like to copy over text and figures from time to time.
I noticed, once I selected a note panel on the left side, if I press [cmd]+[c] it copies the location of the note, like:
-----------
“fancy sentence from the document” ([Author et al., 2013, p. 1](zotero://select/library/items/ABC123)) ([pdf](zotero://open-pdf/library/items/DEF456?page=1&annotation=GHI789))
-----------
That is quite nice, but doing that with figures leads to:
-----------
\[image\] ([pdf](zotero://open-pdf/library/items/DEF456?page=2&annotation=GHI789))
-----------
I see the markdown as a great benefit here, but also I miss a way to copy just the image, or just the plain text without links. Maybe something like [cmd]+[e] for "export to clipboard" would be nice, to avoid collisions with existing implementation.
Side note from skimming the repository: Smells to me like a decorator pattern/higher order component, which could be configured in the Zotero preferences and used once the note editor is initialised (if not already possible somehow).
I am getting used to the new note editor in Zotero 6. Using Obsidian, I'd like to copy over text and figures from time to time.
I noticed, once I selected a note panel on the left side, if I press [cmd]+[c] it copies the location of the note, like:
-----------
“fancy sentence from the document” ([Author et al., 2013, p. 1](zotero://select/library/items/ABC123)) ([pdf](zotero://open-pdf/library/items/DEF456?page=1&annotation=GHI789))
-----------
That is quite nice, but doing that with figures leads to:
-----------
\[image\] ([pdf](zotero://open-pdf/library/items/DEF456?page=2&annotation=GHI789))
-----------
I see the markdown as a great benefit here, but also I miss a way to copy just the image, or just the plain text without links. Maybe something like [cmd]+[e] for "export to clipboard" would be nice, to avoid collisions with existing implementation.
Side note from skimming the repository: Smells to me like a decorator pattern/higher order component, which could be configured in the Zotero preferences and used once the note editor is initialised (if not already possible somehow).
1. Copy the image file link in Zotero storage. This could be dangerous because these cached images may be removed anytime.
2. Copy the encoded string of the image. These strings are usually very long, making the markdown file massive and rendering slowly.
The best way to export note content to markdown files is to export the note to a markdown file directly.
Right now Zotero's note2markdown cannot handle images. You could try the plugin https://github.com/windingwind/zotero-better-notes
Images will be copied to the 'attachments' folder under the export target directory, the same as what Obsidian does.
I am well aware of base64-encoded data URLs in markdown files and they make the files hard to maintain sometimes - no option in my opinion.
But you can also paste images as an ordinary BLOB. Doing so and using the Custom Attachment Location Plugin (see: https://github.com/RainCat1998/obsidian-custom-attachment-location ) images are copied (and hidden in a subfolder) within my Obsidian vault. Pretty convenient, but the question is how to copy the images from the notes editor because I am not able to get the only figure/image from it.
At the moment I make screenshots from some figures, which feels wrong to me since I already highlighted/marked them. Shouldn't something like that not be supported by Zotero itself? That was never a problem using Paperpile.
I use a subset of the figures to paraphrase some papers for learning reasons in Obsidian. And like I said: I do it by screenshots at the moment.
Do you have an advice?
This isn't possible now. We're just trying to understand what you're actually asking for.
Hi, I made some effort to realize this 'copy selected annotation as image blob'.
Later I'll make it part of the addon mentioned above. Any ideas about how to trigger it? As I don't want to overwrite Zotero's default copy method, placing a small icon on the annotation sidebar may be a workaround.
Hi, the plugin update v0.5.14 adds a small button for every annotation(type=image) on the annotation sidebar. Click it and the image will be copied as blob.
See how to use it here: https://github.com/windingwind/zotero-better-notes/raw/master/image/README/copyimage.png
Plugins are the non-official way to realize what currently is not supported. We can advance the tasks quickly without historical burdens. Pull requests must be carefully reviewed and are time-costing.
Just like Zotfile: plugins first realize some features and after a long time that these are proved useful, Zotero will do them.
Time waits for no one. When these features are finally officially supported, many users that used to need them may have already graduated or quit their job and no longer need to read papers.
Anyway, the code is always there. Zotero developers can use them freely. I'll be glad to see these features be supported in the future and at last no one will need my plugins.
The first reply about the plugin may be misleading. My bad. Sorry for that.
I guess, it's like @hsiangyu_wong wrote: I want to copy images as blob. And for whatever it's worth, I am with @dstillman on this, since I have a strong feeling something like this should be part of Zotero itself. To give a better impression, I will try to express my use case:
- I use the Zotero client on my iPad to mark lines and figures while I commute.
- Back on the desk I rephrase some paragraphs to get a deeper understanding (copy&paste is not learning to me). There are two situations I want to copy the pure image without markdown:
- a) I discuss some of the recently read papers with my colleagues and paste them figures via chat. Since I am not able to copy it directly, I use the screenshot feature of macOS. Linking a paper never makes them so curious as sending them some images :)
- b) While paraphrasing a paper, sometimes I need a figure which contains an example or table of results, etc. At this moment I open the papers in Zotero and make a screenshot too.
As I already marked those figures (marked with the rectangle tool), I wonder if it wouldn't be easier to copy the images from the note editor somehow. Kind of a "raw" copy.
So WDYT @dstillman ?