Hi everyone ! I’m in the process to learn a software and to that end, I’m taking a lot of screenshots that I copy/paste into my tiddlers while I’m editing. The photos are then automatically sent to github with the file upload plugin.
I dont want these screenshot to clutter the search so I prefix them with $:/screenshot/. How can I make this the default file name or prefix for new picture, instead of image.png ? I did an advanced search ([all[tiddlers+shadows]search:*[image.png]]) to see if it was defined somewhere in the core but I couldn’t find anything.
If memory serves (I remember it did once !) that name is actually coming from the browser. So you’d have to find the part of the import logic that renames incoming items and tweak/override that.
Mh I tried to modify $:/core/ui/EditorToolbar/file-import because it looks like this part could allow me to change the name of the image tiddler after the fact, but it didn’t work. Here’s what I did:
Glad you were able to find where the action happens! The following changes will quietly add the $:/screen prefix to the name. The question is whether you also want them to change the entire name at the same time. The main thing to note is that imageTitle after the reduce contains a string that represents a mix and match of titles or wikitext image references.
Since there doesn’t seem to be a bundler topic thread, I’ll mention here a thought. It would be useful if there was a way to open all tiddlers in a bundle. In this way the bundle becomes a story list manager as well as managing groups of exports.