1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 02:50:27 +00:00
TiddlyWiki5/plugins/tiddlywiki
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
..
async Add plugin wrappers for async and jszip 2015-12-19 18:47:42 +00:00
blog Remove extraneous icon for blog plugin 2015-12-13 18:26:37 +00:00
browser-sniff Left off last commit 2015-03-19 10:53:51 +00:00
cecily Improve plugin readmes 2015-03-19 10:53:45 +00:00
classictools Improve plugin readmes 2015-03-19 10:53:45 +00:00
codemirror Update codemirror and markdown plugins from #2315 2016-04-22 08:41:31 +01:00
d3 Improve plugin readmes 2015-03-19 10:53:45 +00:00
evernote Minor tweaks to #2275 2016-02-16 16:35:28 +00:00
filesystem Make tiddler file paths configurable (#2379) 2016-04-25 08:36:32 +01:00
github-fork-ribbon Left off last commit 2015-03-19 10:53:51 +00:00
googleanalytics Improve plugin readmes 2015-03-19 10:53:45 +00:00
help Tweak size of help panel 2015-03-22 15:52:17 +00:00
highlight Highlight plugin: add static demo 2015-09-11 22:36:30 +01:00
internals Introduce text editor toolbar (#2315) 2016-04-22 08:36:29 +01:00
jasmine Improve plugin readmes 2015-03-19 10:53:45 +00:00
jszip Add plugin wrappers for async and jszip 2015-12-19 18:47:42 +00:00
katex Update KaTeX plugin to v0.6.0 2016-04-22 15:50:23 +01:00
markdown Update codemirror and markdown plugins from #2315 2016-04-22 08:41:31 +01:00
nodewebkitsaver Improve plugin readmes 2015-03-19 10:53:45 +00:00
pluginlibrary Improve plugin readmes 2015-03-19 10:53:45 +00:00
powered-by-tiddlywiki Add simple "powered by TiddlyWiki" plugin 2015-05-14 17:04:20 +01:00
railroad Improve plugin readmes 2015-03-19 10:53:45 +00:00
stacked-view Make the stacked view play well with the new fluid-fixed mode 2015-05-05 07:24:14 +01:00
tahoelafs Improve plugin readmes 2015-03-19 10:53:45 +00:00
text-slicer Text-slicer: style edit and view templates 2016-02-29 17:47:46 +00:00
tiddlyweb Expand description of "TiddlyWeb and TiddlySpace components" 2015-11-03 19:56:14 +01:00
translators Introduce text editor toolbar (#2315) 2016-04-22 08:36:29 +01:00
tw2parser fix for #2189 2016-01-07 22:11:26 +00:00
tw5.com-docs Create a plugin and edition for tw5.com docs 2015-09-15 13:37:01 +01:00
upgrade Make upgrade wizard download link be relative 2015-03-31 19:14:49 +01:00
xmldom Add xmldom parser 2016-02-01 21:28:52 +00:00