1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-03 02:33:15 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers
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
..
about Add podcast link 2016-02-27 10:50:51 +01:00
commands Overhaul the filter operator documentation: part 1 2015-01-18 18:39:00 +00:00
community Add link to @stevenleeg's twproxy 2016-04-24 16:03:46 +01:00
concepts Make tiddler file paths configurable (#2379) 2016-04-25 08:36:32 +01:00
customising Update Customise TiddlyWiki.tid 2014-12-21 12:33:21 +01:00
definitions Docs update 2016-01-07 23:11:59 +00:00
demonstrations Docs updates 2016-01-07 23:00:38 +00:00
editions Docs updates 2016-01-07 23:00:38 +00:00
features Docs: Correct faulty tab reference (#2385) 2016-04-22 11:25:11 +01:00
fields Overhaul the filter operator documentation: part 2 2015-01-24 21:18:44 +00:00
fileformats Add a syntax specification to MultiTiddlerFiles 2015-06-21 14:35:55 -04:00
filters Move staged content from prerelease 2016-01-05 13:05:10 +00:00
gettingstarted Docs updates 2015-04-17 17:07:47 +01:00
hellothere Add YouTube banner to HelloThere 2016-02-27 12:25:04 +00:00
hiddensettings Introduce text editor toolbar (#2315) 2016-04-22 08:36:29 +01:00
howtos Add instructions for adding a table of contents tab to the sidebar 2016-04-24 16:15:11 +01:00
images Revised banner for 5.1.10 2015-12-31 14:03:48 +00:00
languages Add Korean (Korea Republic) Edition (#2392) 2016-04-24 13:11:25 +01:00
learning Docs updates 2015-04-16 18:33:55 +01:00
macros Fix docs example (#2393) 2016-04-24 15:53:43 +01:00
mechanisms Docs updates 2016-01-07 23:00:38 +00:00
messages Add missing widget message documentation (#2399) 2016-04-25 08:28:42 +01:00
nodejs Make tiddler file paths configurable (#2379) 2016-04-25 08:36:32 +01:00
platforms Rename "configurations" to "platforms" 2015-06-20 09:24:14 +01:00
plugins Docs updates 2016-01-07 23:00:38 +00:00
readme Add dev docs to readme 2014-09-22 10:42:12 +01:00
reference Docs tweaks 2014-10-07 21:44:54 +01:00
releasenotes Updated Dutch translation from @gernert 2016-04-24 13:43:07 +01:00
roadmap Introduce text editor toolbar (#2315) 2016-04-22 08:36:29 +01:00
saving Improve encryption docs 2015-06-07 12:26:11 +01:00
styleguide My first attempt at editing the TW documentation 2015-09-15 02:01:06 +12:00
system Switch tw5.com to fluid-fixed layout 2016-04-22 17:37:45 +01:00
tiddlydesktop Add information about TiddlyDesktop v0.0.8 2016-01-05 11:11:09 -08:00
variables Correct filename typo 2015-06-20 12:56:54 +01:00
videos Add introduction video 2014-11-26 15:46:06 +00:00
widgets Introduce text editor toolbar (#2315) 2016-04-22 08:36:29 +01:00
wikitext Wrong macro name in example description 2015-06-30 11:01:49 +02:00
workingwithtw Docs update 2016-01-06 16:03:50 +00:00
AllTiddlers.tid More tag colours 2014-02-25 21:22:21 +00:00
GettingStarted_-_WebDAV.tid Add gettingstarted doc for webdav (#2291) 2016-04-23 08:51:52 +01:00
SampleAlert.tid Restore sample alert 2016-01-07 23:01:52 +00:00
TableOfContents.tid Rename "configurations" to "platforms" 2015-06-20 09:24:14 +01:00
TiddlyWiki_extensions_for_Sublime_Text_3_by_roma0104.tid Add link to @roma0104's Sublime Text TW extension 2016-04-24 13:20:03 +01:00