Jermolene / TiddlyWiki5

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

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

Open syrte opened 6 years ago

syrte commented 6 years ago

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.

pmario commented 6 years ago

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 ...

syrte commented 6 years ago

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

tejasvi commented 3 years ago

@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.

kravlost commented 1 year ago

Has this ever been resolved?