1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-12 18:30:27 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/nodejs
nome 1ae428e323 Make tiddler file paths configurable (#2379)
When saving new tiddlers on node.js, allow the user to override the path of the
generated .tid file. This is done by creating a tiddler
$:/config/FileSystemPaths which contains one or more filter expressions, one
per line. These filters are applied in turn to the tiddler to be saved, and
the first output produced is taken as a logical path relative to the wiki's
tiddlers directory. Any occurences of "/" in the logical path are replaced with
the platform's path separator, the extension ".tid" is appended, illegal
characters are replaced by "_" and the path is disambiguated (if necessary) in
order to arrive at the final tiddler file path. If none of the filters matches,
or the configuration tiddler does not exist, fall back to the previous file
naming scheme (i.e. replacing "/" by "_").

This implies we will now, for tiddlers matching the user-specified filters,
create directory trees below the tiddlers directory. In order to avoid
cluttering it with empty directory trees when renaming or removing tiddlers, any
directories that become empty by deleting a tiddler file are removed
(recursively).

Benefits of this configuration option include the ability to organize git
repositories of TiddlyWikis running on node.js, ability to replace characters
that cause trouble with particular operating systems or workflows (e.g. '$' on
unix) and the ability to replicate tiddler "paths" in the filesystem (by
including a filter like "[!has[draft.of]]") without forcing such a (potentially
problematic) change on all users.
2016-04-25 08:36:32 +01:00
..
Building TiddlyWikiClassic.tid Lots more docs updates 2014-09-12 16:05:37 +01:00
Customizing_Tiddler_File_Naming.tid Make tiddler file paths configurable (#2379) 2016-04-25 08:36:32 +01:00
Environment Variables on Node.js.tid Lots more docs updates 2014-09-12 16:05:37 +01:00
Installing TiddlyWiki on Node.js.tid Add build targets to server edition 2016-04-03 20:22:11 +01:00
Installing_TiddlyWiki_Prerelease_on_Node.js.tid Docs updates 2015-09-27 22:53:46 +01:00
Naming of System Tiddlers.tid Lots more docs updates 2014-09-12 16:05:37 +01:00
Scripts for TiddlyWiki on Node.js.tid Docs updates 2014-10-15 21:56:32 +01:00
TiddlyWiki5 Versioning.tid Lots more docs updates 2014-09-12 16:05:37 +01:00
TiddlyWiki on Node.js.tid Rename "configurations" to "platforms" 2015-06-20 09:24:14 +01:00
Upgrading TiddlyWiki on Node.js.tid Lots more docs updates 2014-09-12 16:05:37 +01:00
Using TiddlyWiki on Node.js.tid Readme updates for Node.js 2014-09-20 15:06:33 +01:00
Working with the TiddlyWiki5 repository.tid Readme updates for Node.js 2014-09-20 15:06:33 +01:00