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

Export all notes in a collection as individual markdown files

Open cjpoor opened this issue 4 years ago • 12 comments

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like At present, as far as I can see, mdnotes can only be used on one item at a time by mouse clicking on the item and using the context menu which mdnotes is added to (but it is only added to the context menu for items, not collections). What I am wanting to do is export all notes in a collection or library as individual .md files without having to click on every item. I am using a workaround script to split selected notes dragged to a .txt file. The BetterBibTeX Collected Notes export translator can be used on collections and libraries and can export all notes but only as a single file. I know these plugins use a different API from the export translators (and I see that you say the API is changing rapidly), but is it possible to add mdnotes to the context menu when clicking on collections and libraries to allow bulk export of markdown notes?

Additional context See the recent comments in this discussion: https://github.com/retorquere/zotero-better-bibtex/issues/1878

cjpoor avatar Aug 19 '21 00:08 cjpoor

This should already be possible to a degree I think... have you tried selecting them with shift, then using right-click and export to markdown?

If you want to export all contents (that is the metadata AND all Zotero notes - the yellow ones), selecting the collection (or multiple top level items with shift) and right-click with Batch export to markdown should export all of them.

argenos avatar Aug 20 '21 12:08 argenos

What I am wanting to do is export all notes in a collection or library as individual .md files without having to click on every item. I know that it is possible to export .md notes from multiple items by Ctrl-clicking each one and then right-clicking on one and then doing mdnotes export. However it doesn't seem possible to right click on a collection (in the left pane where My Library is - see attached Screenshot from 2021-08-21 09-41-25 ) to export in bulk. In some of my collections I have about 50 items with notes so I was hoping for a more efficient way of exporting en masse.

cjpoor avatar Aug 20 '21 21:08 cjpoor

Not Ctrl, Shift! See the difference here:

Peek 2021-08-23 16-14

I'll leave the issue open, though! It should be possible to add a way to do it when right-clicking on collections, I just can't say when I'll have some time to tackle it.

argenos avatar Aug 23 '21 14:08 argenos

Ok. Thank you. I'll try that.

cjpoor avatar Aug 24 '21 11:08 cjpoor

That looks good. Thank you!

cjpoor avatar Aug 24 '21 12:08 cjpoor

I found that the export of a library using Shift-right-click-mdnotes severely truncated many notes. Individually exporting these notes preserves the full note on export.

cjpoor avatar Aug 26 '21 01:08 cjpoor

Which menu were you using to create the exports?

I'll also ping @brimwats in case they can comment on the steps (although they are using single-file exports, so there might be a difference there).

argenos avatar Aug 26 '21 07:08 argenos

I tried using the context menu (right-click>mdnotes>Export to markdown) on the central items pane when all items were selected using Shift-left-click.

cjpoor avatar Aug 26 '21 14:08 cjpoor

That won't work, as it will only export the metadata files. You need to use the Batch export to markdown option as described (albeit maybe not clearly enough) here: https://argentinaos.com/zotero-mdnotes/docs/next/getting-started/file-organization/multi-file

argenos avatar Aug 26 '21 14:08 argenos

Ah! Thank you!

cjpoor avatar Aug 26 '21 15:08 cjpoor

I think this issue can be closed

elviskahoro avatar Sep 05 '21 17:09 elviskahoro

yes

brimwats1 avatar Sep 05 '21 18:09 brimwats1