TiddlyWiki5 icon indicating copy to clipboard operation
TiddlyWiki5 copied to clipboard

Is it possible to disable `.meta` file for markdown format in Node

Open syrte opened this issue 6 years ago • 4 comments

Now for each markdown tiddler, tiddlywiki will create a *.md and a *.md.meta file. So the file folder seems a bit messy, because too many files in it. Is it possible to disable this behavior, and just save into a single .tid file?

Could you give me some hint? Thanks.

syrte avatar Dec 10 '17 04:12 syrte

At the moment this is only possible, if you do create *.tid files on the filesystem. .. If you create md files from TW it will save them as .md and .meta.md

I think I did open a similar issue, but can't find it atm.

The problem is, that we would need an option per file type, that is handled that way now. eg: .txt .jpg ...

pmario avatar Dec 10 '17 17:12 pmario

Thanks for the information. I'll further look at the code of filesystemadaptor.js.

I found a related issue, https://github.com/Jermolene/TiddlyWiki5/issues/2558

syrte avatar Dec 10 '17 18:12 syrte

@syrte If having a single file is the only concern, you can specify a filter like [type[text/x-markdown]then[.tid]] in $:/config/FileSystemExtensions which will save the content of .meta files at top along with the markdown for any newly modified tiddlers. The downside is, the extension will now be .tid though it can be overcome by modifying the internals. See File System Extensions in docs. I am currently figuring out a way to do it for all existing tiddlers. Update: Nifty TW-Commander can be used trigger the save operation for existing tiddlers.

tejasvi avatar Feb 01 '21 13:02 tejasvi

Has this ever been resolved?

kravlost avatar Jul 18 '22 14:07 kravlost