In the wiki, the external tiddler's name is `scripts/t-sql/detach.sql`, and
I like it exactly that way.
On Saturday, February 6, 2021 at 4:14:59 PM UTC-8 RA wrote:
> 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
>
> On Saturday, February 6, 2021 at 3:28:17 PM UTC-8 [email protected]
> wrote:
>
>> To clarify, what method are you using to load/import these scripts with
>> the Node.js Tiddlywiki server?
>>
>> Best,
>> Joshua F
>>
>> On Saturday, February 6, 2021 at 1:16:01 PM UTC-8 RA wrote:
>>
>>> Forgot to mention I'm running it on Node.js.
>>>
>>> On Saturday, February 6, 2021 at 12:17:36 PM UTC-8 RA wrote:
>>>
>>>>
>>>> I got my collection of scripts to show up in my wiki as plain text
>>>> tiddlers. ( I am using an absolute path, and the scripts have various
>>>> extensions like ".sql",".ps" etc.). When I edit them, however, they get
>>>> saved not at the original location, but along with regular tiddlers. Their
>>>> extensions are stripped and replaced with ".txt", and the absolute path
>>>> added to the name with slashes encoded as "%2F". I'd like the scripts to
>>>> be
>>>> saved back to the original location with the name and extension unchanged.
>>>> Is that possible?
>>>>
>>>>
>>>>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/829b3b94-262a-4c9c-a594-082c6dd92ce2n%40googlegroups.com.