From 7c4ea6421069c4f183d9c1b6ddd49294247e8033 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Mon, 28 Dec 2015 11:29:43 +0100 Subject: [PATCH 001/383] fixes #2158 check if new fields are present and warn on cancel --- core/modules/wiki.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/modules/wiki.js b/core/modules/wiki.js index b6e9fa068..7dc16f04c 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -1164,7 +1164,9 @@ exports.findDraft = function(targetTitle) { } /* -Check whether the specified draft tiddler has been modified +Check whether the specified draft tiddler has been modified. +If the original tiddler doesn't exist, create a vanilla tiddler variable, +to check if aditional fields have been added. */ exports.isDraftModified = function(title) { var tiddler = this.getTiddler(title); @@ -1172,11 +1174,9 @@ exports.isDraftModified = function(title) { return false; } var ignoredFields = ["created", "modified", "title", "draft.title", "draft.of"], - origTiddler = this.getTiddler(tiddler.fields["draft.of"]); - if(!origTiddler) { - return tiddler.fields.text !== ""; - } - return tiddler.fields["draft.title"] !== tiddler.fields["draft.of"] || !tiddler.isEqual(origTiddler,ignoredFields); + origTiddler = this.getTiddler(tiddler.fields["draft.of"]) || new $tw.Tiddler({text:"", tags:[]}), + titleModified = tiddler.fields["draft.title"] !== tiddler.fields["draft.of"]; + return titleModified || !tiddler.isEqual(origTiddler,ignoredFields); }; /* From 3977cf009b8b8a9e813756beffa1f8a3764b73e9 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Mon, 28 Dec 2015 11:31:36 +0100 Subject: [PATCH 002/383] fixes #2158 check if new fields are present and warn on cancel --- core/modules/wiki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/wiki.js b/core/modules/wiki.js index 7dc16f04c..0c0cdd1d4 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -1166,7 +1166,7 @@ exports.findDraft = function(targetTitle) { /* Check whether the specified draft tiddler has been modified. If the original tiddler doesn't exist, create a vanilla tiddler variable, -to check if aditional fields have been added. +to check if additional fields have been added. */ exports.isDraftModified = function(title) { var tiddler = this.getTiddler(title); From 10df62b24fdf1fbe20199b08c3eb45d980ada0e2 Mon Sep 17 00:00:00 2001 From: Cameron Fischer Date: Fri, 8 Jan 2016 17:26:19 -0500 Subject: [PATCH 003/383] Signed CLA --- licenses/cla-individual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/licenses/cla-individual.md b/licenses/cla-individual.md index a2d314211..e5bc4a399 100644 --- a/licenses/cla-individual.md +++ b/licenses/cla-individual.md @@ -262,3 +262,5 @@ Santiago Pelufo, @spelufo, 2015/12/18 Matthew Lauber, @mklauber, 2015/11/13 Matthew DeAbreu, @mdeabreu, 2016/01/05 + +Cameron Fischer, @flibbles, 2016/01/08 From 6613cc7b2c29714f86d93aa3266cd0a6c174d6cf Mon Sep 17 00:00:00 2001 From: ARRRRGH Date: Mon, 11 Jan 2016 15:09:12 +0100 Subject: [PATCH 004/383] Signing CLA --- licenses/cla-individual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/licenses/cla-individual.md b/licenses/cla-individual.md index e5bc4a399..1e6018d84 100644 --- a/licenses/cla-individual.md +++ b/licenses/cla-individual.md @@ -264,3 +264,5 @@ Matthew Lauber, @mklauber, 2015/11/13 Matthew DeAbreu, @mdeabreu, 2016/01/05 Cameron Fischer, @flibbles, 2016/01/08 + +Jim, @ARRRRGH, 2016/01/11 From 8bf867560cc502679a13fee222accdb02d679f6a Mon Sep 17 00:00:00 2001 From: Devin Weaver Date: Mon, 11 Jan 2016 21:45:23 -0500 Subject: [PATCH 005/383] Add Editing Tiddlers with Vim We have one for Emacs so we need one for Vim. Besides, Vim has never done me wrong. --- .../tiddlers/howtos/Editing Tiddlers with Vim.tid | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 editions/tw5.com/tiddlers/howtos/Editing Tiddlers with Vim.tid diff --git a/editions/tw5.com/tiddlers/howtos/Editing Tiddlers with Vim.tid b/editions/tw5.com/tiddlers/howtos/Editing Tiddlers with Vim.tid new file mode 100644 index 000000000..0ab8d5933 --- /dev/null +++ b/editions/tw5.com/tiddlers/howtos/Editing Tiddlers with Vim.tid @@ -0,0 +1,9 @@ +modified: 20160111190002 +created: 20140406210404245 +tags: Learning +title: Editing Tiddlers with Vim +type: text/vnd.tiddlywiki + +Devin Weaver has written a [[Vim|http://www.vim.org/]] plugin at https://github.com/sukima/vim-tiddlywiki + +It supports most of the TiddlyWiki syntax and includes a filetype plugin which will auto update the `modified` field. From d7c4c87c8c98ca4a55d8e54f2959fb04f18d9a35 Mon Sep 17 00:00:00 2001 From: Devin Weaver Date: Mon, 11 Jan 2016 21:50:01 -0500 Subject: [PATCH 006/383] Add Using ES2016 for Writing Plugins I found using Babel for creating plugins was very helpful. I wanted to share how I integrated ES2015 into my TiddlyWiki development tool bag. --- .../Using ES2016 for Writing Plugins.tid | 194 ++++++++++++++++++ 1 file changed, 194 insertions(+) create mode 100644 editions/tw5.com/tiddlers/howtos/Using ES2016 for Writing Plugins.tid diff --git a/editions/tw5.com/tiddlers/howtos/Using ES2016 for Writing Plugins.tid b/editions/tw5.com/tiddlers/howtos/Using ES2016 for Writing Plugins.tid new file mode 100644 index 000000000..ca4ab0d64 --- /dev/null +++ b/editions/tw5.com/tiddlers/howtos/Using ES2016 for Writing Plugins.tid @@ -0,0 +1,194 @@ +modified: 20160112175004000 +created: 20160111034749658 +tags: documenting Concepts +title: Using ES2016 for Writing Plugins +type: text/vnd.tiddlywiki + +With the advent of ES2015 (also known as ES6) and the availability of [[Babel.js|http://babeljs.io/]] plugin developers can leverage ES2015 when writing TiddlyWiki plugins. Understanding the nuances between TiddlyWiki's module sandbox and how Babel compiles it's output ready for a module system like ~CommonJS/AMD. + +Please understand how the PluginMechanism works since this is all about writing a plugin using Babel to compile the output that will be included in the final TiddlyWiki (for example [[TiddlyWiki on Node.js]]). + +!! Installing and Configuring Babel + +You can install Babel using + +``` +$ npm install --global babel-cli babel-presets-es2015 +``` + +If your developing the plugin for inclusion to the npm registry (or for convenience) you can avoid the global install and save it to the local `package.json` file with + +``` +$ npm install --save-dev babel-cli babel-presets-es2015 +``` + +Inside your plugin project edit the file `.babelrc` and enter the following: + +```json +{ + "presets": [ + "es2015" + ] +} +``` + +<<.tip "I found it easier to manage my plugins as if they were ''npm'' modules complete with a `package.json` that compiles the output via `npm run build`. See [[npm-scripts documentation|https://docs.npmjs.com/misc/scripts]] for details.">> + +!! Compiling the Output + +Pick a folder to store the ES2015 JavaScript and a folder to output the TiddlyWiki ready JavaScript. In this example I will use `src` and `lib` respectively. With Babel installed and working I can compile all the JavaScript in the `src` folder to the `lib` folder by running this command: + +``` +$ babel src -d lib +``` + +<<.warning "Babel will //not// copy over non-JavaScript files. It is up to the developer to include all the supporting files themselves. Babel only converts the ~JavaScript files (ending in `.js`) from the `src` folder to the `lib` folder.">> + +!! Imports and Exports + +In a plugin written pre-ES2015 one would `require` a module through TiddlyWiki like so: + +```javascript +var Widget = require('$:/core/modules/widgets/widget.js').widget; +``` + +But in ES2015 the following would look like: + +```javascript +import { widget as Widget } from '$:/core/modules/widgets/widget.js'; +``` + +Conveniently when Babel compiles this it will essentially output the same JavaScript as the first pre-ES2016 code. + +Also, in ES2016 you are required to declare your imports at the beginning and can not dynamically `require` things. This means you can not have an `import` statement in an if block or in a function. If that functionality is desired then you will have to go back to using the `require()` statement directly. But conciser that by doing so that you may be missing an oppertunity to make your code cleaner and better. + +Exporting is the same thing. Instead of assigning to a property of the `exports` variable you use the `export` keyword: + +```javascript +export { MyWidget as mywidget }; +``` + +<<.tip "It is illegal JavaScript to export with a name that is not an identifier even though it is ok to use a non-identifier (string) as a property key. What this means is if you want a widget to have a dash in it then you have to revert to using the `exports['my-widget'] = MyWidget;` syntax.">> + +It is important to understand that in ES2016 the ''default'' export is not supported in TiddlyWiki. This is mostly because the core code expects specific properties to be attached to the `exports` variable. Bable's `export` conversion plays well with this //except// with the default export. + +!! Classes + +In the example of a widget ES2016 plays well with class inheritance. To contrast the typical Widget definition would look something like this: + +```javascript +function MyWidget() { + Widget.call(this); +} +MyWidget.prototype = new Widget(); +MyWidget.prototype.render = function(parent, nextSibling) {…}; +// And so on… +``` + +With classes this ceremony can be tightened up: + +```javascript +class MyWidget extends Widget { + render(parent, nextSibling) {…} + // And so on… +} +``` + +With classes one //could// eliminate much of the `Widget.execute()` cruft using <<.def "getters">>. I found this to be more readable then the typical mass assignment to `this`. It gave me the added benefit of allowing calculations in properties that normally would have conflated the `execute()` method. For example developing a compound property like so: + +```javascript +class NameWidget extends Widget { + get title() { return this.getAttribute('title'); } + get firstName() { return this.getAttribute('first'); } + get lastName() { return this.getAttribute('last'); } + get fullName() { return `${this.title}. ${this.firstName} ${this.lastName}`; } +} +``` + +!!! Non Class Modules + +For non class modules you can use the `export` keyword. Here is a simple [[Startup Module|ModuleType]]: + +```javascript +export function startup() { + // Do stuff here +} +``` + +Or in the case of a [[Macro|http://tiddlywiki.com/dev/#JavaScript%20Macros]]: + +```javascript +export const name = 'my-macro'; +export const params = {}; +export function run() {…} +``` + +!! Polyfills + +ES2015 comes with some features that are part of the JavaScript core objects. These are not supported by all browsers. To use these features in [[most browsers|BrowserCompatibility]] you will need a <<.def "polyfill">>. Babel has a polyfill package that you can include. See [[Adding Babel Polyfill to TiddlyWiki]] for how to accomplish this. + +!! Example + +Here is an example ES2015 plugin/widget that will show the time and update it: + +```javascript + +/*\ +title: $:/plugins/sukima/clock-widget.js +type: application/javascript +module-type: widget + +A updating time stamp + +\*/ +import { widget as Widget } from '$:/core/modules/widgets/widget.js'; + +class ClockWidget extends Widget { + constructor(parseTreeNode, options) { + super(parseTreeNode, options); + this.logger = new $tw.utils.Logger('clock-widget'); + } + + render(parent, nextSibling) { + if (!$tw.browser) { return; } + this.logger.log('Rendering clock DOM nodes'); + this.computeAttributes() + this.parentDomNode = parent; + this.domNode = $tw.utils.domMaker('div', {class: 'tc-clock-widget'}); + parent.insertBefore(this.domNode, nextSibling); + this.tick(); + } + + tick() { + this.logger.log('Tick!'); + if (!document.contains(this.domNode)) { + // Apparently the widget was removed from the DOM. Do some clean up. + return this.stop(); + } + this.start(); + this.domNode.innerHTML = this.dateString; + } + + start() { + if (!this.clockTicker) { + this.logger.log('Starting clock'); + this.clockTicker = setInterval(this.tick.bind(this), 1000); + } + } + + stop() { + this.logger.log('Stopping clock'); + clearInterval(this.clockTicker); + this.clockTicker = null; + } + + get dateString() { + const format = 'DDth MMM YYYY at hh12:0mm:0ss am'; + return $tw.utils.formatDateString(new Date(), format); + } +} + +export { ClockWidget as clock }; +``` + +<<.tip "Adding an extra space at the top causes Babel's output the preamble tiddler comment without any obscene indenting. Although it doesn't affect TiddlyWiki any, when reading the output it can be confusing when the tiddler information is rendered off the screen to the right.">> From f79856a6d77616d42fffe0de007c6fe194f13493 Mon Sep 17 00:00:00 2001 From: Devin Weaver Date: Mon, 11 Jan 2016 21:55:06 -0500 Subject: [PATCH 007/383] Add Adding Babel Polyfill to TiddlyWiki Having the ability to write your plugins with ES2015 syntax is nice but it is missing a large part of the ES2015 spec. Since not all browsers support this a polyfill is offered. So far it is IE10 which holds the need for the polyfill. This tiddler offers a simple how to on adding the babel-polyfill to your TiddlyWiki. NOTE: This how to would be obsolete if a proper ES2015 polyfill was part of the official plugins offered in core. (Want a pull request?) --- .../Adding Babel Polyfill to TiddlyWiki.tid | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 editions/tw5.com/tiddlers/howtos/Adding Babel Polyfill to TiddlyWiki.tid diff --git a/editions/tw5.com/tiddlers/howtos/Adding Babel Polyfill to TiddlyWiki.tid b/editions/tw5.com/tiddlers/howtos/Adding Babel Polyfill to TiddlyWiki.tid new file mode 100644 index 000000000..944daadca --- /dev/null +++ b/editions/tw5.com/tiddlers/howtos/Adding Babel Polyfill to TiddlyWiki.tid @@ -0,0 +1,65 @@ +modified: 20160112175006000 +created: 20160112025328000 +title: Adding Babel Polyfill to TiddlyWiki +tags: documenting Concepts +type: text/vnd.tiddlywiki + +Not all browsers support the latest features of ES2015. The Babel project offers a polyfill that can be included into your TiddlyWiki so those features can be available to your plugins. To do this you will need a copy of the polyfill source. + +You can obtain the source either through <<.def "npm">> or downloaded/saved. See the [[Babel Polyfill documentation|https://babeljs.io/docs/usage/polyfill/]] for specific information on installing it. + +In your TiddlyWiki editions folder make sure you have a `plugins/babel-polyfill` folder. Then create the `plugins/babel-polyfill/plugin.info` file with the following in it: + +```json +{ + "title": "$:/plugins/babel/babel-polyfill", + "description": "Babel Polyfills for ES2015 support", + "author": "Your Name Here", + "core-version": ">=5.0.0" +} +``` + +Create the folder `plugins/babel-polyfill/files` folder. Then create the `plugins/babel-polyfill/files/tiddlywiki.files` file with the following in it: + +```json +{ + "tiddlers": [ + { + "file": "polyfill.min.js", + "fields": { + "title": "$:/plugins/babel/babel-polyfill/polyfill.min.js", + "type": "application/javascript", + "module-type": "library", + "global-module": "true" + } + } + ] +} +``` + +Now copy the `polyfill.min.js` you downloaded/saved. + +<<.tip "If you downloaded this via ''npm'' then it would be available in `./node_modules/babel-polyfill/dist/polyfill.min.js`.">> + +Lastly you need a initializer so create the `plugins/babel-polyfill/plugin.js` file with the following in it: + +```javascript +/*\ +title: $:/plugins/babel/babel-polyfill/plugin.js +type: application/javascript +module-type: startup + +Load the babel-polyfill library on startup + +\*/ + +exports.startup = function() { + $tw.modules.execute('$:/plugins/babel/babel-polyfill/polyfill.min.js'); +} +``` + +<<.warning "Because the polyfill is meant to be used in the browser we need to conditionally load the library which ES2016 doesn't allow. This is why it is written using TiddlyWiki's dependency resolver instead of using ES2015 `import` statements.">> + +Now all the //runtime// ES2015 features are available like using `Promise` in your plugin code. + +See [[Using ES2016 for Writing Plugins]] on how to use the ES2015 //syntax// for your plugin code. From fa6dc5677d4c5b64f59fd512658347397bf55d08 Mon Sep 17 00:00:00 2001 From: gernert Date: Mon, 18 Jan 2016 19:19:13 +0100 Subject: [PATCH 008/383] Update SystemTags.tid Added missing $:/tags/ToolbarButtonStyle --- editions/tw5.com/tiddlers/concepts/SystemTags.tid | 1 + 1 file changed, 1 insertion(+) diff --git a/editions/tw5.com/tiddlers/concepts/SystemTags.tid b/editions/tw5.com/tiddlers/concepts/SystemTags.tid index 6742b1351..93ce439fb 100644 --- a/editions/tw5.com/tiddlers/concepts/SystemTags.tid +++ b/editions/tw5.com/tiddlers/concepts/SystemTags.tid @@ -37,6 +37,7 @@ These are the available system tags * {{$:/tags/Stylesheet||$:/core/ui/TagTemplate}} to indicate that a tiddler should be applied as a CSS stylesheet * {{$:/tags/TiddlerInfo||$:/core/ui/TagTemplate}} for tiddler info panel tabs * {{$:/tags/TiddlerInfo/Advanced||$:/core/ui/TagTemplate}} for tabs under the advanced tiddler tab +* {{$:/tags/ToolbarButtonStyle||$:/core/ui/TagTemplate}} for the style of the buttons * {{$:/tags/TopLeftBar||$:/core/ui/TagTemplate}} for the top left bar * {{$:/tags/TopRightBar||$:/core/ui/TagTemplate}} for the top right bar * {{$:/tags/ViewTemplate||$:/core/ui/TagTemplate}} for the view template From ac345c86a148edf8e7544f0619a48d57d47059bc Mon Sep 17 00:00:00 2001 From: "jose-manuel.urio@at.seg-social.es" Date: Wed, 27 Jan 2016 15:57:23 +0100 Subject: [PATCH 009/383] Ask permission Jermolene for make a pull request --- licenses/cla-individual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/licenses/cla-individual.md b/licenses/cla-individual.md index 1e6018d84..b219cb0e1 100644 --- a/licenses/cla-individual.md +++ b/licenses/cla-individual.md @@ -266,3 +266,5 @@ Matthew DeAbreu, @mdeabreu, 2016/01/05 Cameron Fischer, @flibbles, 2016/01/08 Jim, @ARRRRGH, 2016/01/11 + +Koke Laast, @Koke24, 2016/01/27 From def26a40ac1bb6fe04650ee873822b2c9227a70a Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 7 Jan 2016 23:26:41 +0000 Subject: [PATCH 010/383] Version number update for 5.1.10 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 40d1b0158..442c005ae 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tiddlywiki", "preferGlobal": "true", - "version": "5.1.10-prerelease", + "version": "5.1.10", "author": "Jeremy Ruston ", "description": "a non-linear personal web notebook", "contributors": [ From f1deea3b742aae69f5522fa319be7d9e29895c3f Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 29 Jan 2016 17:15:57 +0000 Subject: [PATCH 011/383] Preparing for 5.1.11 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 442c005ae..f1a633b64 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "tiddlywiki", "preferGlobal": "true", - "version": "5.1.10", + "version": "5.1.11-prerelease", "author": "Jeremy Ruston ", "description": "a non-linear personal web notebook", "contributors": [ From d240ab5003ff0b46568e59c6f24e420c7f2651a2 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 29 Jan 2016 17:16:16 +0000 Subject: [PATCH 012/383] Fix broken plugin library Fixes #2260 --- core/wiki/config/OfficialPluginLibrary.tid | 2 +- .../PrereleaseOfficialPluginLibrary.tid | 2 +- .../tiddlers/releasenotes/Release 5.1.11.tid | 35 +++++++++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 editions/tw5.com/tiddlers/releasenotes/Release 5.1.11.tid diff --git a/core/wiki/config/OfficialPluginLibrary.tid b/core/wiki/config/OfficialPluginLibrary.tid index e4bfbc02c..0d294343a 100644 --- a/core/wiki/config/OfficialPluginLibrary.tid +++ b/core/wiki/config/OfficialPluginLibrary.tid @@ -1,6 +1,6 @@ title: $:/config/OfficialPluginLibrary tags: $:/tags/PluginLibrary -url: http://tiddlywiki.com/library/v5.1.9/index.html +url: http://tiddlywiki.com/library/v5.1.11/index.html caption: {{$:/language/OfficialPluginLibrary}} {{$:/language/OfficialPluginLibrary/Hint}} diff --git a/editions/prerelease/tiddlers/system/PrereleaseOfficialPluginLibrary.tid b/editions/prerelease/tiddlers/system/PrereleaseOfficialPluginLibrary.tid index 417681328..9a259024e 100644 --- a/editions/prerelease/tiddlers/system/PrereleaseOfficialPluginLibrary.tid +++ b/editions/prerelease/tiddlers/system/PrereleaseOfficialPluginLibrary.tid @@ -1,6 +1,6 @@ title: $:/config/OfficialPluginLibrary tags: $:/tags/PluginLibrary -url: http://tiddlywiki.com/prerelease/library/v5.1.10/index.html +url: http://tiddlywiki.com/prerelease/library/v5.1.11/index.html caption: {{$:/language/OfficialPluginLibrary}} (Prerelease) The prerelease version of the official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team. diff --git a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.11.tid b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.11.tid new file mode 100644 index 000000000..0807eeaa2 --- /dev/null +++ b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.11.tid @@ -0,0 +1,35 @@ +caption: 5.1.11 +created: 20160128231609312 +modified: 20160128231609312 +tags: ReleaseNotes +title: Release 5.1.11 +type: text/vnd.tiddlywiki + +//[[See GitHub for detailed change history of this release|https://github.com/Jermolene/TiddlyWiki5/compare/v5.1.10...v5.1.11]]// + +! Major Improvements + + + +! Other Improvements + +!! Translation Improvements + + +!! Usability Improvements + + +!! Hackability Improvements + + +!! Bug Fixes + + +!! Node.js Improvements + +!! Contributors + +[[@Jermolene|https://github.com/Jermolene]] would like to thank the contributors to this release who have generously given their time to help improve TiddlyWiki: + +* [[@koke24|https://github.com/koke24]] +* [[@BramChen|https://github.com/BramChen]] From 8b2f320f7feae83e4b14bfd62feb7bcadf984eb7 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 29 Jan 2016 17:24:11 +0000 Subject: [PATCH 013/383] Missed off d240ab5003ff0b46568e59c6f24e420c7f2651a2 --- .../prerelease/tiddlers/system/PrereleaseLocalPluginLibrary.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editions/prerelease/tiddlers/system/PrereleaseLocalPluginLibrary.tid b/editions/prerelease/tiddlers/system/PrereleaseLocalPluginLibrary.tid index 1a03b1a77..2618d1c41 100644 --- a/editions/prerelease/tiddlers/system/PrereleaseLocalPluginLibrary.tid +++ b/editions/prerelease/tiddlers/system/PrereleaseLocalPluginLibrary.tid @@ -1,6 +1,6 @@ title: $:/config/LocalPluginLibrary tags: $:/tags/PluginLibrary -url: http://127.0.0.1:8080/prerelease/library/v5.1.10/index.html +url: http://127.0.0.1:8080/prerelease/library/v5.1.11/index.html caption: {{$:/language/OfficialPluginLibrary}} (Prerelease Local) A locally installed version of the official ~TiddlyWiki plugin library at tiddlywiki.com for testing and debugging. //Requires a local web server to share the library// From 5bba45bb0aec1ed6302fe3cb26cfedc40b4098e6 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 30 Jan 2016 08:51:53 +0000 Subject: [PATCH 014/383] =?UTF-8?q?Rename=20TiddlyWiki=5FJingle=5Fby=5FMa?= =?UTF-8?q?=CC=8Ans=5FMa=CC=8Artensson.tid=20to=20TiddlyWiki=5FJingle=5Fby?= =?UTF-8?q?=5FMans=5FMartensson.tid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #2227 (Note I fixed this by editing the filename in the github.com online editor. It's happened before; I've raised #2261 to address the root cause) --- ...̊ns_Mårtensson.tid => TiddlyWiki_Jingle_by_Mans_Martensson.tid} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename editions/tw5.com/tiddlers/community/resources/{TiddlyWiki_Jingle_by_Måns_Mårtensson.tid => TiddlyWiki_Jingle_by_Mans_Martensson.tid} (100%) diff --git a/editions/tw5.com/tiddlers/community/resources/TiddlyWiki_Jingle_by_Måns_Mårtensson.tid b/editions/tw5.com/tiddlers/community/resources/TiddlyWiki_Jingle_by_Mans_Martensson.tid similarity index 100% rename from editions/tw5.com/tiddlers/community/resources/TiddlyWiki_Jingle_by_Måns_Mårtensson.tid rename to editions/tw5.com/tiddlers/community/resources/TiddlyWiki_Jingle_by_Mans_Martensson.tid From 3bf9ad78fac5e3e13236ee01fa8c3d278c125553 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 30 Jan 2016 12:44:58 +0000 Subject: [PATCH 015/383] Update release note for 5.1.11 --- .../tiddlers/releasenotes/Release 5.1.11.tid | 32 +++---------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.11.tid b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.11.tid index 0807eeaa2..18eff4b38 100644 --- a/editions/tw5.com/tiddlers/releasenotes/Release 5.1.11.tid +++ b/editions/tw5.com/tiddlers/releasenotes/Release 5.1.11.tid @@ -1,35 +1,11 @@ caption: 5.1.11 -created: 20160128231609312 -modified: 20160128231609312 +created: 20160130124109312 +modified: 20160130124109312 tags: ReleaseNotes title: Release 5.1.11 type: text/vnd.tiddlywiki +released: 20160130124109312 //[[See GitHub for detailed change history of this release|https://github.com/Jermolene/TiddlyWiki5/compare/v5.1.10...v5.1.11]]// -! Major Improvements - - - -! Other Improvements - -!! Translation Improvements - - -!! Usability Improvements - - -!! Hackability Improvements - - -!! Bug Fixes - - -!! Node.js Improvements - -!! Contributors - -[[@Jermolene|https://github.com/Jermolene]] would like to thank the contributors to this release who have generously given their time to help improve TiddlyWiki: - -* [[@koke24|https://github.com/koke24]] -* [[@BramChen|https://github.com/BramChen]] +This is a bug-fix release for [[Release 5.1.10]] that fixes a serious issue affecting the operation of the official plugin library. From c24598885a4152829786fdc286b9b73e29919820 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 30 Jan 2016 14:26:24 +0000 Subject: [PATCH 016/383] Preparing for release of 5.1.11 --- editions/tw5.com/tiddlers/hellothere/HelloThere.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/hellothere/HelloThere.tid b/editions/tw5.com/tiddlers/hellothere/HelloThere.tid index 108b460bc..3c3dc9262 100644 --- a/editions/tw5.com/tiddlers/hellothere/HelloThere.tid +++ b/editions/tw5.com/tiddlers/hellothere/HelloThere.tid @@ -1,6 +1,6 @@ created: 20130822170200000 list: [[A Gentle Guide to TiddlyWiki]] [[Discover TiddlyWiki]] [[Some of the things you can do with TiddlyWiki]] [[Ten reasons to switch to TiddlyWiki]] Examples [[What happened to the original TiddlyWiki?]] -modified: 20160107231609312 +modified: 20160130124109312 tags: TableOfContents title: HelloThere type: text/vnd.tiddlywiki From a869316b1fc947a2ca801c2fda0d5bb9ac5ab17d Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 30 Jan 2016 14:27:29 +0000 Subject: [PATCH 017/383] Readme update --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 60fbf3601..682f64a7c 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -

Welcome to TiddlyWiki, a non-linear personal web notebook that anyone can use and keep forever, independently of any corporation.

TiddlyWiki is a complete interactive wiki in JavaScript. It can be used as a single HTML file in the browser or as a powerful Node.js application. It is highly customisable: the entire user interface is itself implemented in hackable WikiText.

Learn more and see it in action at http://tiddlywiki.com/

Developer documentation is in progress at http://tiddlywiki.com/dev/

Installing TiddlyWiki on Node.js

  1. Install Node.js from http://nodejs.org
  2. Open a command line terminal and type:

    npm install -g tiddlywiki

    If it fails with an error you may need to re-run the command as an administrator:

    sudo npm install -g tiddlywiki (Mac/Linux)

  3. Check TiddlyWiki is installed by typing:

    tiddlywiki --version

  4. In response, you should see TiddlyWiki report its current version (eg "5.1.9"; you may also see other debugging information reported)
  5. Try it out:
    1. tiddlywiki mynewwiki --init server to create a folder for a new wiki that includes server-related components
    2. tiddlywiki mynewwiki --server to start TiddlyWiki
    3. Visit http://127.0.0.1:8080/ in your browser
    4. Try editing and creating tiddlers

The -g flag causes TiddlyWiki to be installed globally. Without it, TiddlyWiki will only be available in the directory where you installed it.

If you are using Debian or Debian-based Linux and you are reciving a node: command not found error though node.js package is installed, you may need to create a symbolic link between nodejs and node. Consult your distro's manual and whereis to correctly create a link. See github issue 1434

Example Debian v8.0: sudo ln -s /usr/bin/nodejs /usr/bin/node

Using TiddlyWiki on Node.js

TiddlyWiki5 can be used on the command line to perform an extensive set of operations based on TiddlyWikiFolders, TiddlerFiles and TiddlyWikiFiles.

For example, the following command loads the tiddlers from a TiddlyWiki HTML file and then saves one of them in static HTML:

tiddlywiki --verbose --load mywiki.html --rendertiddler ReadMe ./readme.html

Running tiddlywiki from the command line boots the TiddlyWiki kernel, loads the core plugins and establishes an empty wiki store. It then sequentially processes the command line arguments from left to right. The arguments are separated with spaces.

The first argument is the optional path to the TiddlyWikiFolder to be loaded. If not present, then the current directory is used.

The commands and their individual arguments follow, each command being identified by the prefix --.

tiddlywiki [<wikipath>] [--<command> [<arg>[,<arg>]]]

The available commands are: