Great, thanks for the update! Looks like you've accidentally sent the message to me, privately, here it is:
Hi Yakov,
Thanks for the good feedback! I have updated the documentation and followed your suggestion to
reuse the code from HTML5DownloadSaveFile.The plugin currently only works for text files, as for my own needs I just want to save various text formats (.ics, .xml, .json).
I'll merge the PR and update the source URL accordingly when it is agreed it looks good.
Best,
James
This makes much more sense now. A couple of other quick notes:
- I've tested the plugin with a .txt file and got the content wrapped with <script> tag inside the tiddler, I guess that's a bug;
- You may want to also check the usage of showOpenFilePicker and showSaveFilePicker in my ContinuousSavingPlugin – they are limited to Chromium-based browsers, but may be helpful to attach by picking (as an alternative option to drag-and-drop).
Best regards,
Yakov
четверг, 10 апреля 2025 г. в 16:57:44 UTC+3, Yakov: