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

Export all notes in a collection as individual markdown files #123

Open cjpoor opened 3 years ago

cjpoor commented 3 years ago

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

argenos commented 3 years ago

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.

cjpoor commented 3 years ago

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.

argenos commented 3 years ago

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.

cjpoor commented 3 years ago

Ok. Thank you. I'll try that.

cjpoor commented 3 years ago

That looks good. Thank you!

cjpoor commented 3 years ago

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.

argenos commented 3 years ago

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).

cjpoor commented 3 years ago

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.

argenos commented 3 years ago

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

cjpoor commented 3 years ago

Ah! Thank you!

elviskahoro commented 3 years ago

I think this issue can be closed

brimwats1 commented 3 years ago

yes