Saving imported images to git(lab|hub) instead of embedding

59 views
Skip to first unread message

Chas Emerick

unread,
Feb 10, 2021, 10:02:12 AM2/10/21
to TiddlyWiki
I have set up a tiddlywiki to save changes to gitlab, and enabled gitlab pages for the corresponding repository, so I always load my wiki from https://username.gitlab.com/repository/index.html.

What I'd like to have happen is for imported images, instead of being embedded as base64, to be queued to be committed as new files in the same repository. This would result in ideal storage of the images (i.e. no bloating of the tiddlywiki HTML file), and trivial loading from the corresponding gitlab pages URL.

Has anyone implemented this? If not, I may try to find time to do so.

Thanks,

- Chas

Chas Emerick

unread,
Feb 11, 2021, 4:05:55 PM2/11/21
to TiddlyWiki
I have implemented a prototype of this that works reasonably well, but via a custom button that takes just one image at a time, and via a (minor) hack to the Gitlab saver.

It seems a worthwhile thing to be supported more generally, and through the existing multi-file, drag-and-drop-capable import facility, so I've opened an issue:


Cheers,

- Chas
Reply all
Reply to author
Forward
0 new messages