The title isn't completely accurate as it is difficult to summarize the problem. Plain text .txt files or .md files, loaded via a tiddlywiki.files declaration load in the TiddlyWiki just fine. However, editing them is problematic.
With a subdir in my tiddlers directory called "notes", containing a file "mynote.txt", editing results in a file "mynote 1.txt" and "mynote 1txt.meta" whereas I would expect the original "mynote.txt" to be updated and a .meta file created. This behavior leads to duplication of tiddler files and is rather confusing. If the intent was that files loaded in this manner should not be editable, then we should find a way to set them as read only.
It is possible that the problem may arise from my tiddlywiki.files declaration as I am new to this, so here it is:
{
"directories" : [
{
"path" : "../notes",
"filesRegExp" : ".+\\.txt",
"isTiddlerFile" : false,
"fields" : {
"title" : {"source" : "basename-uri-decoded"},
"created": {"source" : "created"},
"modified": {"source" : "modified"},
"type": "text/plain",
"tags": ["note", "externalnote"]
}
}
]
}
Likely this is the problem and leads the save handler to rename the tiddler because of an assumed file name clash, leading to file names like "mynote 1.txt".
Have I missed something with my configuration? If not, feature or bug?
Regards,
Saq