I am using `tiddlywiki.files` method.
tiddlywiki.files:
{
"directories": [
{
"path": "/srv/git/scripts/t-sql",
"isTiddlerFile" :false,
"isEditableFile": true,
"fields": {
"title": {"source": "filename", "prefix": "scripts/t-sql/"},
"created": {"source": "created"},
"modified": {"source": "modified"},
"type": "text/plain",
"tags": ["t-sql", "external"],
"linux-path": {"source": "filename", "prefix": "/srv/git/scripts/t-sql/"},
"win-path": {"source": "filename", "prefix": "c:\\vm\\srv\\git\\scripts\\t-sql\\"}
}
}
]
}iddler
$:/config/FileSystemPaths:
[is[system]!has[draft.of]removeprefix[$:/]addprefix[_system/]]
[is[draft]search-replace:g:regexp[/|\\],[_]addprefix[drafts/]]
[tag[task]addprefix[mytasks/]]
[!tag[external]] -- Tried without this filter, same result. (This comment is for the posting, it's not in the tiddler.)
Wiki directory structure:
.
+-- tiddlers
¦ +-- %2Fsrv%2Fgit%2Fscripts%2Ft-sql%2Fdetach.txt -- these two appear after I edit and save the external tiddler
¦ +-- %2Fsrv%2Fgit%2Fscripts%2Ft-sql%2Fdetach.txt.meta -- and the original file `/srv/git/scripts/t-sql/detach.sql` is deleted
¦ +-- …
¦ +-- scripts
¦ ¦ +-- t-sql
¦ ¦ +-- tiddlywiki.files
¦ +-- _system
¦ ¦ +-- config
¦ ¦ ¦ +-- …
¦ ¦ ¦ +-- FileSystemPaths.txt
¦ ¦ ¦ +-- FileSystemPaths.txt.meta
¦ ¦ +-- …
¦ +-- …
+--
tiddlywiki.info