1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-01 01:33:16 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/concepts
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
..
ColourPalettes.tid Overhaul the macro and variable documentation #1519 2015-02-24 17:41:16 +01:00
Concepts.tid Refine preliminary list macro 2014-09-17 12:13:24 +01:00
CurrentTiddler.tid Overhaul the macro and variable documentation #1519 2015-02-24 17:41:16 +01:00
DataTiddlers.tid Improvements to wording 2014-12-28 09:51:53 +00:00
DateFields.tid Retarget a couple of links and add trailing linefeeds 2015-01-24 21:53:28 +00:00
DictionaryTiddlers.tid Add concept of Dictionary Tiddlers 2014-12-28 09:53:58 +00:00
DominantAppend.tid Documentation updates 2015-09-18 09:19:21 +01:00
ExternalImages.tid Update ExternalImages.tid 2014-12-21 19:32:42 +01:00
Filters.tid Overhaul the macro and variable documentation #1519 2015-02-24 17:41:16 +01:00
HardAndSoftLinks.tid Macros and styles for tips and warnings 2015-02-26 16:32:00 +00:00
InfoPanel.tid Documentation updates 2015-09-18 09:19:21 +01:00
JSONTiddlers.tid Overhaul the macro and variable documentation #1519 2015-02-24 17:41:16 +01:00
Macros.tid Document the tv-* variables 2015-02-28 14:38:00 +00:00
Messages.tid Refine preliminary list macro 2014-09-17 12:13:24 +01:00
Modules.tid updated to point to new location 2015-10-13 12:23:58 +02:00
ModuleType.tid Documentation updates 2015-09-18 09:19:21 +01:00
OrderOfTaggedTiddlers.tid Documentation updates 2015-09-18 09:19:21 +01:00
PermaLinks.tid Lots more docs updates 2014-09-12 16:05:37 +01:00
Pragma.tid Overhaul the macro and variable documentation #1519 2015-02-24 17:41:16 +01:00
RailroadDiagrams.tid Overhaul the filter operator documentation: part 2 2015-01-24 21:18:44 +00:00
SelectionConstructors.tid Documentation updates 2015-09-18 09:19:21 +01:00
ShadowTiddlers.tid More reference docs mangling 2014-09-11 15:52:47 +01:00
Story_River.tid Documentation updates 2015-09-18 09:19:21 +01:00
SystemTags.tid Update system tags docs 2016-02-15 17:43:54 +00:00
SystemTiddlers.tid More reference docs mangling 2014-09-11 15:52:47 +01:00
TagTiddlers.tid Documentation updates 2015-09-18 09:19:21 +01:00
TemplateTiddlers.tid Overhaul the macro and variable documentation #1519 2015-02-24 17:41:16 +01:00
TextReference.tid Clarify TextReference documentation 2015-05-18 19:07:14 +01:00
TiddlerFields.tid More reference docs mangling 2014-09-11 15:52:47 +01:00
TiddlerLinks.tid Typo correction 2014-12-31 09:34:32 +00:00
Tiddlers.tid Update "Tiddlers" docs 2014-11-21 17:06:12 +00:00
TiddlyWiki.tid Docs tweaks 2015-03-26 11:15:43 +00:00
TiddlyWiki5.tid More reference docs mangling 2014-09-11 15:52:47 +01:00
TiddlyWikiFolders.tid Make tiddler file paths configurable (#2379) 2016-04-25 08:36:32 +01:00
TitleList.tid Overhaul the filter operator documentation: part 2 2015-01-24 21:18:44 +00:00
TitleSelection.tid Overhaul the filter operator documentation: part 2 2015-01-24 21:18:44 +00:00
Transclusion.tid add "Transclusion and Substitution" to learn more 2016-01-03 17:11:13 +00:00
Wiki.tid More reference docs mangling 2014-09-11 15:52:47 +01:00
WikiText.tid Docs updates 2014-09-19 21:56:07 +01:00