TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
8k stars 1.18k forks source link

Export .tid file only exports 1 tiddler #2608

Closed cawoodm closed 9 months ago

cawoodm commented 7 years ago

TW Desktop

image

Jermolene commented 7 years ago

Hi @cawoodm

A limitation of the .tid file format is that it is only be able to contain a single tiddler. The CSV, JSON, and Static HTML file formats can all contain multiple tiddlers.

The reason that the .tid file format is listed here is that we're showing a generic list of all the available exporters, regardless of any limitations. You'll see the same list in the "Filter" tab of advanced search; there again, using .tid only makes sense if you just want to export the first result.

cawoodm commented 7 years ago

OK, then arguably it should not appear in the "Export All" menu.

Jermolene commented 7 years ago

Hi @cawoodm

OK, then arguably it should not appear in the "Export All" menu.

Yes, definitely. Fixing it would require more logic so that the menu listing the available formats can modify itself according to the various locations it is displayed (export wiki, export tiddler, export search).

danielo515 commented 7 years ago

Maybe a better solution would be to make possible to export a bundle of Tiddlers, maybe a zip...

Jermolene commented 7 years ago

Maybe a better solution would be to make possible to export a bundle of Tiddlers, maybe a zip...

Exporting multiple files in a ZIP is on the roadmap; I integrated JSZip some time ago for another project but with half an eye on that.

cawoodm commented 7 years ago

If .tid content is encoded you could conceivably include multiple tiddlers in one file by inventing a separator. Might mean that older TWs can't import it properly but that's progress for ya.

pmario commented 7 years ago

If .tid content is encoded you could conceivably include multiple tiddlers in one file by inventing a separator. Might mean that older TWs can't import it properly but that's progress for ya.

What you describe here is export as .json, without compatibility problems.

tobibeer commented 7 years ago

hi @cawoodm, #1947 may also be interesting in terms of tid file complexities

pmario commented 9 months ago

@cawoodm, @Jermolene -- This one can be closed, since the "export all" button does not show the ".tid" format anymore.

image

Jermolene commented 9 months ago

Thank you @pmario