From ec00dc5042fdd63d391eb7c706c36357188f207d Mon Sep 17 00:00:00 2001 From: twMat Date: Thu, 13 Jul 2023 20:31:54 +0200 Subject: [PATCH 1/3] Update Saving on Browser with TiddlyStow.tid (#7605) Prevent CC linking in the GettingStarted card display --- .../tw5.com/tiddlers/Saving on Browser with TiddlyStow.tid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/Saving on Browser with TiddlyStow.tid b/editions/tw5.com/tiddlers/Saving on Browser with TiddlyStow.tid index 870936ffc..5823ca30d 100644 --- a/editions/tw5.com/tiddlers/Saving on Browser with TiddlyStow.tid +++ b/editions/tw5.com/tiddlers/Saving on Browser with TiddlyStow.tid @@ -1,4 +1,4 @@ -caption: TiddlyStow (experimental) +caption: ~TiddlyStow (experimental) color: #FF8A65 created: 20230403170650008 delivery: Saver @@ -13,4 +13,4 @@ url: https://github.com/btheado/tiddlystow ''Link:'' {{!!url}} Tiddlystow saves TiddlyWiki files locally using the browser file system API (Chrome-based browsers currently). -This is a simple web page for loading a local TiddlyWiki file and storing it back to the same local file requiring no plugins or extensions. \ No newline at end of file +This is a simple web page for loading a local TiddlyWiki file and storing it back to the same local file requiring no plugins or extensions. From 3a90c37816ff39104ee2851e1c6c1732c4528763 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston <174761+Jermolene@users.noreply.github.com> Date: Sat, 15 Jul 2023 17:58:14 +0100 Subject: [PATCH 2/3] Update substitute operator docs Fixes #7609 --- editions/tw5.com/tiddlers/filters/substitute Operator.tid | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editions/tw5.com/tiddlers/filters/substitute Operator.tid b/editions/tw5.com/tiddlers/filters/substitute Operator.tid index 85da915da..c7f98384e 100644 --- a/editions/tw5.com/tiddlers/filters/substitute Operator.tid +++ b/editions/tw5.com/tiddlers/filters/substitute Operator.tid @@ -18,9 +18,9 @@ The <<.op substitute>> operator replaces any placeholders in the input titles in # variables |placeholder syntax|description|h -|`$n$`|Text substitution of a parameter provided to the operator, where n is the position of the parameter starting with 1 for the first parameter. Unmatched placeholders pass through unchanged.| -|`$(varname)$`|Text substitution of a variable. Undefined variables are replaced with an empty string.| -|`${ filter expression }$`|Text substitution with the first result of evaluating the filter expression. | +|`$n$`|Text substitution of a parameter provided to the operator, where n is the position of the parameter starting with 1 for the first parameter. Unmatched placeholders pass through unchanged. | +|`$(varname)$`|Text substitution of a variable. Undefined variables are replaced with an empty string. | +|`${ filter expression }$`|Text substitution of the first result of evaluating a filter expression. In other words, if the filter returns multiple titles only the first one will be used. | <<.tip """Placeholders that contain square bracket characters are not valid filter syntax when used directly in a filter expression. However they can be provided as input to the <$macrocall $name=".op" _="substitute"/> operator as text references or variables""">> From 963887c8c411a9d3d0843a8b22b97bd880171130 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston <174761+Jermolene@users.noreply.github.com> Date: Thu, 20 Jul 2023 17:07:45 +0100 Subject: [PATCH 3/3] Update Saving via a Minimal Web Server.tid (#7617) Co-Authored-By: hffqyd <10190817+hffqyd@users.noreply.github.com> --- .../Saving via a Minimal Web Server.tid | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/editions/tw5.com/tiddlers/saving/Saving via a Minimal Web Server.tid b/editions/tw5.com/tiddlers/saving/Saving via a Minimal Web Server.tid index 5bbf79485..a625627be 100644 --- a/editions/tw5.com/tiddlers/saving/Saving via a Minimal Web Server.tid +++ b/editions/tw5.com/tiddlers/saving/Saving via a Minimal Web Server.tid @@ -1,4 +1,4 @@ -caption: tw5-server +caption: tw5server color: #70c9a0 community-author: hffqyd created: 20230302011710789 @@ -10,27 +10,23 @@ tags: Android Chrome Firefox [[Internet Explorer]] Linux Mac Opera Safari Saving title: Saving via a Minimal Web Server type: text/vnd.tiddlywiki -A local server for TiddlyWiki5 that saves and backups wikis, inspired by +A local mini binary server for TiddlyWiki5 that saves and backups wikis and uploads files for TiddlyWiki, inspired by [[tw5-server.rb | https://gist.github.com/jimfoltz/ee791c1bdd30ce137bc23cce826096da]]. -tw5-server provides features of: +tw5server provides features of: * Server for TiddlyWiki5, as well as other files (e.g. images used in TW5 `[img[images/*.png]]`); * Easy to save wiki via browsers; * Backup wiki in compress format (.gz), to save disk space; * Auto clean backups: keep one newest per previous month, keep all backups in current month. -* Upload files/images to server, for use in tiddlywiki as external links. -* Offer binary executable for Linux, macos and windows. +* Upload files/images to server via pressing button or drag-and-drop, for use in tiddlywiki as external links. +* Offer binary executable for Linux, macos, Android and windows. -Download executable script and binary at the github.com [[tw5-server|https://github.com/hffqyd/tw5-server]]. +Download executable binary at the github.com [[tw5-server|https://github.com/hffqyd/tw5-server]]. ! Usage ```bash -# python script: -python tw5-server.py -p 8000 -d ./ -b backup_dir - -# binary file: tw5server -a:192.168.0.10 -p:8000 -d:./ -b:backup -h usage help @@ -44,6 +40,7 @@ Backups auto-clean strategy: Keep all backups in current month, keep only the newest one for previous months. ``` -In Unix/Linux, just excute `./tw5-server.py` (with `chmod +x tw5-server.py`). +In Unix/Linux, maybe first `chmod +x tw5server`), then run it. +For Android version, run it in Termux, or some other terminals. Then go to http://localhost:8000 (or other address:port specified in command) in your web browser, and click on your wiki html file.