tiddlywiki 5.2.0 → 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/boot/boot.js +40 -3
- package/contributing.md +1 -1
- package/core/language/en-GB/ControlPanel.multids +15 -0
- package/core/modules/editor/engines/framed.js +1 -1
- package/core/modules/editor/engines/simple.js +1 -1
- package/core/modules/editor/factory.js +1 -1
- package/core/modules/editor/operations/text/focus-editor.js +17 -0
- package/core/modules/filterrunprefixes/cascade.js +53 -0
- package/core/modules/filterrunprefixes/filter.js +16 -9
- package/core/modules/filterrunprefixes/map.js +16 -9
- package/core/modules/filterrunprefixes/reduce.js +16 -18
- package/core/modules/filterrunprefixes/sort.js +10 -8
- package/core/modules/filters/listops.js +12 -0
- package/core/modules/filters/math.js +29 -0
- package/core/modules/filters/strings.js +11 -9
- package/core/modules/parsers/wikiparser/rules/html.js +4 -2
- package/core/modules/parsers/wikiparser/wikiparser.js +11 -8
- package/core/modules/server/routes/put-tiddler.js +1 -1
- package/core/modules/utils/dom/dragndrop.js +8 -2
- package/core/modules/utils/utils.js +0 -18
- package/core/modules/widgets/action-sendmessage.js +17 -7
- package/core/modules/widgets/action-setmultiplefields.js +86 -0
- package/core/modules/widgets/codeblock.js +7 -1
- package/core/modules/widgets/dropzone.js +2 -1
- package/core/modules/widgets/let.js +96 -0
- package/core/modules/widgets/link.js +2 -1
- package/core/modules/widgets/setmultiplevariables.js +81 -0
- package/core/modules/widgets/vars.js +2 -4
- package/core/modules/widgets/widget.js +20 -16
- package/core/modules/wiki.js +9 -4
- package/core/ui/Components/tag-link.tid +1 -1
- package/core/ui/ControlPanel/Cascades/EditTemplateBody.tid +9 -0
- package/core/ui/ControlPanel/Cascades/StoryTiddler.tid +9 -0
- package/core/ui/ControlPanel/Cascades/TiddlerColour.tid +9 -0
- package/core/ui/ControlPanel/Cascades/TiddlerIcon.tid +9 -0
- package/core/ui/ControlPanel/Cascades/ViewTemplateBody.tid +9 -0
- package/core/ui/ControlPanel/Cascades/ViewTemplateTitle.tid +9 -0
- package/core/ui/ControlPanel/Cascades.tid +9 -0
- package/core/ui/EditTemplate/body/canonical-uri.tid +13 -0
- package/core/ui/EditTemplate/body/default.tid +38 -0
- package/core/ui/EditTemplate/body.tid +1 -51
- package/core/ui/EditTemplate/tags.tid +1 -1
- package/core/ui/EditorToolbar/link-dropdown.tid +1 -1
- package/core/ui/EditorToolbar/preview.tid +4 -4
- package/core/ui/ListTaggedCascade.tid +14 -0
- package/core/ui/PageTemplate/story.tid +1 -1
- package/core/ui/PluginListItemTemplate.tid +13 -3
- package/core/ui/StoryTiddlerTemplate.tid +3 -0
- package/core/ui/TagPickerTagTemplate.tid +3 -3
- package/core/ui/TagTemplate.tid +1 -1
- package/core/ui/TiddlerIcon.tid +8 -0
- package/core/ui/ViewTemplate/body/blank.tid +3 -0
- package/core/ui/ViewTemplate/body/code.tid +3 -0
- package/core/ui/ViewTemplate/body/default.tid +7 -0
- package/core/ui/ViewTemplate/{import.tid → body/import.tid} +1 -2
- package/core/ui/ViewTemplate/body/plugin.tid +10 -0
- package/core/ui/ViewTemplate/body.tid +1 -9
- package/core/ui/ViewTemplate/title/default.tid +6 -0
- package/core/ui/ViewTemplate/title/system.tid +6 -0
- package/core/ui/ViewTemplate/title.tid +4 -17
- package/core/wiki/config/EditTemplateBodyFilters.multids +5 -0
- package/core/wiki/config/OfficialPluginLibrary.tid +1 -1
- package/core/wiki/config/StoryTiddlerTemplateFilters.multids +5 -0
- package/core/wiki/config/TiddlerColourFilters.multids +5 -0
- package/core/wiki/config/TiddlerIconFilters.multids +5 -0
- package/core/wiki/config/ViewTemplateBodyFilters.multids +8 -0
- package/core/wiki/config/ViewTemplateTitleFilters.multids +5 -0
- package/core/wiki/debugstylesheets.tid +9 -0
- package/core/wiki/macros/tag.tid +3 -1
- package/core/wiki/peek-stylesheets.tid +3 -0
- package/core/wiki/tags/EditTemplateBodyFilter.tid +2 -0
- package/core/wiki/tags/StoryTiddlerTemplateFilter.tid +2 -0
- package/core/wiki/tags/TiddlerColourFilter.tid +3 -0
- package/core/wiki/tags/TiddlerIconFilter.tid +3 -0
- package/core/wiki/tags/ViewTemplateBodyFilter.tid +3 -0
- package/core/wiki/tags/ViewTemplateTitleFilter.tid +3 -0
- package/editions/fr-FR/tiddlers/HelloThumbnail - Latest Version.tid +1 -1
- package/editions/prerelease/tiddlers/{Release 5.2.1.tid → Release 5.2.2.tid } +10 -18
- package/editions/test/tiddlers/tests/test-filters.js +4 -0
- package/editions/test/tiddlers/tests/test-html-parser.js +17 -11
- package/editions/test/tiddlers/tests/test-prefixes-filter.js +50 -0
- package/editions/test/tiddlers/tests/test-widget.js +34 -0
- package/editions/test/tiddlers/tests/test-wikitext-parser.js +30 -30
- package/editions/tw5.com/tiddlers/$__StoryList.tid +3 -3
- package/editions/tw5.com/tiddlers/{License.tid → about/License.tid} +0 -0
- package/editions/tw5.com/tiddlers/commands/NamedCommandParameters.tid +2 -2
- package/editions/tw5.com/tiddlers/community/Contributing.tid +2 -2
- package/editions/tw5.com/tiddlers/community/TW Icons by morosanuae.tid +2 -2
- package/editions/tw5.com/tiddlers/community/TiddlyWiki Hangouts.tid +2 -2
- package/editions/tw5.com/tiddlers/community/editions/_Noteself_ by Danielo Rodriguez.tid +2 -2
- package/editions/tw5.com/tiddlers/community/examples/Reveal.js by Devin Weaver.tid +2 -2
- package/editions/tw5.com/tiddlers/community/plugins/Encrypt single tiddler plugin.tid +2 -2
- package/editions/tw5.com/tiddlers/community/plugins/TiddlyMap by Felix Kuppers.tid +2 -2
- package/editions/tw5.com/tiddlers/community/resources/TW5 Magick.tid +2 -2
- package/editions/tw5.com/tiddlers/community/resources/_Dynamic Tables_ by Jed Carty.tid +2 -2
- package/editions/tw5.com/tiddlers/community/resources/_TiddlyServer_ by Matt Lauber.tid +5 -3
- package/editions/tw5.com/tiddlers/community/resources/_muritest_ by Simon Huber.tid +2 -2
- package/editions/tw5.com/tiddlers/concepts/Cascades.tid +47 -0
- package/editions/tw5.com/tiddlers/concepts/Concepts.tid +5 -3
- package/editions/tw5.com/tiddlers/concepts/Edit Template Body Cascade.tid +16 -0
- package/editions/tw5.com/tiddlers/concepts/Messages.tid +2 -2
- package/editions/tw5.com/tiddlers/concepts/ModuleType.tid +2 -2
- package/editions/tw5.com/tiddlers/concepts/Order of Tagged Tiddlers.tid +1 -1
- package/editions/tw5.com/tiddlers/concepts/Railroad Diagrams.tid +2 -1
- package/editions/tw5.com/tiddlers/concepts/Story Tiddler Template Cascade.tid +16 -0
- package/editions/tw5.com/tiddlers/concepts/Story Tiddler Template.tid +13 -0
- package/editions/tw5.com/tiddlers/concepts/TagTiddlers.tid +1 -1
- package/editions/tw5.com/tiddlers/concepts/Tiddler Colour Cascade.tid +16 -0
- package/editions/tw5.com/tiddlers/concepts/Tiddler Icon Cascade.tid +16 -0
- package/editions/tw5.com/tiddlers/concepts/View Template Body Cascade.tid +19 -0
- package/editions/tw5.com/tiddlers/concepts/View Template Title Cascade.tid +16 -0
- package/editions/tw5.com/tiddlers/customising/Alternative page layouts.tid +1 -1
- package/editions/tw5.com/tiddlers/customising/Creating new toolbar buttons.tid +35 -0
- package/editions/tw5.com/tiddlers/customising/Customise TiddlyWiki.tid +3 -3
- package/editions/tw5.com/tiddlers/customising/Customising TiddlyWiki's user interface.tid +75 -0
- package/editions/tw5.com/tiddlers/definitions/BT.tid +3 -2
- package/editions/tw5.com/tiddlers/definitions/MathML.tid +2 -2
- package/editions/tw5.com/tiddlers/definitions/Osmosoft.tid +3 -2
- package/editions/tw5.com/tiddlers/definitions/node-webkit.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/Alice in Wonderland.tid +4 -3707
- package/editions/tw5.com/tiddlers/demonstrations/Apple.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/Caruso - Ave Maria.tid +1 -0
- package/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Demo Tiddler List with Custom Story Tiddler Template.tid +10 -0
- package/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid +31 -0
- package/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Template.tid +25 -0
- package/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/TiddlerTemplateFilter.tid +5 -0
- package/editions/tw5.com/tiddlers/demonstrations/CustomTiddlerColourCascadeDemo/CustomTiddlerColourCascadeDemo.tid +9 -0
- package/editions/tw5.com/tiddlers/demonstrations/CustomTiddlerIconCascadeDemo/CustomTiddlerIconCascadeDemo.tid +9 -0
- package/editions/tw5.com/tiddlers/demonstrations/ImageGallery Example.tid +5 -16
- package/editions/tw5.com/tiddlers/demonstrations/KeyboardDrivenInput/Demonstration_ keyboard-driven-input Macro.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/KeyboardDrivenInput/kdi-demo-configtid.tid +4 -3
- package/editions/tw5.com/tiddlers/demonstrations/SampleNotification.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/SampleTiddlerFirst.tid +3 -1
- package/editions/tw5.com/tiddlers/demonstrations/SampleTiddlerSecond.tid +3 -1
- package/editions/tw5.com/tiddlers/demonstrations/SampleTiddlerThird.tid +3 -1
- package/editions/tw5.com/tiddlers/demonstrations/SampleWizard.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/SampleWizard2.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/Contents.tid +3 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/First.tid +3 -3
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/FirstOne.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/FirstThree.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/FirstTwo.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/Fourth.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/Second.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/SecondOne.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/SecondThree.tid +3 -3
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/SecondThreeOne.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/SecondThreeThree.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/SecondThreeTwo.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/SecondTwo.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/Third.tid +3 -3
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/ThirdOne.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/ThirdThree.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/ThirdTwo.tid +2 -2
- package/editions/tw5.com/tiddlers/demonstrations/Tagged with TagMacro.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/Tasks/Compose ballad.tid +3 -3
- package/editions/tw5.com/tiddlers/demonstrations/Tasks/Get the Ring.tid +3 -3
- package/editions/tw5.com/tiddlers/demonstrations/Tasks/Go to Mordor.tid +3 -3
- package/editions/tw5.com/tiddlers/demonstrations/Tasks/Kill the Dragon.tid +4 -4
- package/editions/tw5.com/tiddlers/demonstrations/Tasks/Make the beds.tid +3 -3
- package/editions/tw5.com/tiddlers/demonstrations/Tasks/done.tid +3 -1
- package/editions/tw5.com/tiddlers/demonstrations/Tasks/task.tid +3 -2
- package/editions/tw5.com/tiddlers/demonstrations/Weekdays/Days of the Week.tid +5 -4
- package/editions/tw5.com/tiddlers/demonstrations/Weekdays/Friday.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/Weekdays/Monday.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/Weekdays/Saturday.tid +3 -2
- package/editions/tw5.com/tiddlers/demonstrations/Weekdays/Sunday.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/Weekdays/Thursday.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/Weekdays/Tuesday.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/Weekdays/Wednesday.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/sampletag1.tid +3 -0
- package/editions/tw5.com/tiddlers/demonstrations/sampletag2.tid +3 -0
- package/editions/tw5.com/tiddlers/features/DateFormat.tid +7 -1
- package/editions/tw5.com/tiddlers/features/LazyLoading.tid +2 -3
- package/editions/tw5.com/tiddlers/features/Scalability.tid +4 -2
- package/editions/tw5.com/tiddlers/filters/acos Operator.tid +15 -0
- package/editions/tw5.com/tiddlers/filters/asin Operator.tid +15 -0
- package/editions/tw5.com/tiddlers/filters/atan Operator.tid +13 -0
- package/editions/tw5.com/tiddlers/filters/atan2 Operator.tid +15 -0
- package/editions/tw5.com/tiddlers/filters/cos Operator.tid +13 -0
- package/editions/tw5.com/tiddlers/filters/deserializers Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/enlist-input Operator.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/examples/acos Operator (Examples).tid +7 -0
- package/editions/tw5.com/tiddlers/filters/examples/asin Operator (Examples).tid +7 -0
- package/editions/tw5.com/tiddlers/filters/examples/atan Operator (Examples).tid +7 -0
- package/editions/tw5.com/tiddlers/filters/examples/atan2 Operator (Examples).tid +7 -0
- package/editions/tw5.com/tiddlers/filters/examples/cos Operator (Examples).tid +7 -0
- package/editions/tw5.com/tiddlers/filters/examples/cycle Operator (Examples).tid +1 -1
- package/editions/tw5.com/tiddlers/filters/examples/log Operator (Examples).tid +1 -1
- package/editions/tw5.com/tiddlers/filters/examples/lookup Operator (Examples).tid +2 -1
- package/editions/tw5.com/tiddlers/filters/examples/match Operator (Examples).tid +1 -1
- package/editions/tw5.com/tiddlers/filters/examples/search-replace Operator (Examples).tid +8 -2
- package/editions/tw5.com/tiddlers/filters/examples/sin Operator (Examples).tid +7 -0
- package/editions/tw5.com/tiddlers/filters/examples/subfilter Operator (Examples).tid +25 -3
- package/editions/tw5.com/tiddlers/filters/examples/tan Operator (Examples).tid +7 -0
- package/editions/tw5.com/tiddlers/filters/examples/zth Operator (Examples).tid +10 -0
- package/editions/tw5.com/tiddlers/filters/list.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/nth.tid +9 -7
- package/editions/tw5.com/tiddlers/filters/range.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/sin Operator.tid +13 -0
- package/editions/tw5.com/tiddlers/filters/storyviews.tid +1 -1
- package/editions/tw5.com/tiddlers/filters/subfilter Operator.tid +4 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix (Examples).tid +46 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix.tid +20 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Expression.tid +4 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix (Examples).tid +30 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Filter Run Prefix.tid +27 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Filter Run Prefix (Examples).tid +7 -36
- package/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix (Examples).tid +36 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Intersection Filter Run Prefix.tid +15 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix (Examples).tid +26 -1
- package/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix.tid +9 -1
- package/editions/tw5.com/tiddlers/filters/syntax/Named Filter Run Prefix.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix (Examples).tid +27 -0
- package/editions/tw5.com/tiddlers/filters/syntax/Reduce Filter Run Prefix.tid +38 -0
- package/editions/tw5.com/tiddlers/filters/tan Operator.tid +13 -0
- package/editions/tw5.com/tiddlers/filters/zth Operator.tid +18 -0
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Android.tid +2 -1
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Chrome.tid +2 -1
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Firefox.tid +2 -1
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Internet Explorer.tid +2 -1
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Node.js.tid +2 -1
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Online.tid +2 -2
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Safari.tid +2 -1
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - iOS.tid +2 -1
- package/editions/tw5.com/tiddlers/{AllTiddlers.tid → hellothere/AllTiddlers.tid} +0 -0
- package/editions/tw5.com/tiddlers/hellothere/HelloThere.tid +1 -1
- package/editions/tw5.com/tiddlers/hellothere/Some of the things you can do with TiddlyWiki.tid +2 -2
- package/editions/tw5.com/tiddlers/hellothere/badges/ProductHunt-Badge.svg.tid +1 -0
- package/editions/tw5.com/tiddlers/hellothere/badges/ProductHunt-Link.tid +1 -0
- package/editions/tw5.com/tiddlers/hiddensettings/Hidden Setting NewImageType.tid +3 -1
- package/editions/tw5.com/tiddlers/hiddensettings/Hidden Setting ShowEditPreviewPerTiddler.tid +10 -0
- package/editions/tw5.com/tiddlers/hiddensettings/Hidden Setting_ Typin Refresh Delay.tid +2 -2
- package/editions/tw5.com/tiddlers/howtos/Creating SubStories.tid +21 -33
- package/editions/tw5.com/tiddlers/howtos/Debugging Stylesheets.tid +11 -0
- package/editions/tw5.com/tiddlers/howtos/How to create a custom story tiddler template.tid +40 -0
- package/editions/tw5.com/tiddlers/howtos/How to create a custom tiddler colour rule.tid +36 -0
- package/editions/tw5.com/tiddlers/howtos/How to create a custom tiddler icon rule.tid +36 -0
- package/editions/tw5.com/tiddlers/howtos/How to create dynamic editor toolbar buttons.tid +2 -2
- package/editions/tw5.com/tiddlers/howtos/Simple ways to write protect tiddlers.tid +4 -5
- package/editions/tw5.com/tiddlers/howtos/Text preview.tid +6 -2
- package/editions/tw5.com/tiddlers/howtos/Using Stylesheets.tid +8 -4
- package/editions/tw5.com/tiddlers/images/Icon Gallery.tid +14 -0
- package/editions/tw5.com/tiddlers/images/New Release Banner.png +0 -0
- package/editions/tw5.com/tiddlers/languages/LanguageGallery.tid +2 -2
- package/editions/tw5.com/tiddlers/macros/examples/colour-picker Macro (Example 1).tid +2 -2
- package/editions/tw5.com/tiddlers/macros/examples/image-picker Macro (Example 1).tid +2 -2
- package/editions/tw5.com/tiddlers/macros/examples/image-picker Macro (Example 2).tid +2 -2
- package/editions/tw5.com/tiddlers/macros/examples/unusedtitle Macro (Examples 1).tid +2 -2
- package/editions/tw5.com/tiddlers/mechanisms/RefreshThrottling.tid +2 -2
- package/editions/tw5.com/tiddlers/mechanisms/StateMechanism.tid +2 -2
- package/editions/tw5.com/tiddlers/messages/SampleModal.tid +2 -1
- package/editions/tw5.com/tiddlers/messages/SampleWindowTemplate.tid +10 -0
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-edit-text-operation.tid +3 -0
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-open-window.tid +22 -4
- package/editions/tw5.com/tiddlers/nodejs/Environment Variables on Node.js.tid +4 -2
- package/editions/tw5.com/tiddlers/nodejs/Installing TiddlyWiki on Node.js.tid +10 -3
- package/editions/tw5.com/tiddlers/nodejs/tiddlywiki.files_Files.tid +6 -5
- package/editions/tw5.com/tiddlers/nodejs/tiddlywiki.info_Files.tid +2 -2
- package/editions/tw5.com/tiddlers/platforms/TiddlyFox Apocalypse.tid +2 -2
- package/editions/tw5.com/tiddlers/platforms/TiddlyWiki in the Sky for TiddlyWeb.tid +3 -8
- package/editions/tw5.com/tiddlers/plugins/Plugin Types.tid +2 -2
- package/editions/tw5.com/tiddlers/reference/Reference.tid +1 -0
- package/editions/tw5.com/tiddlers/releasenotes/BetaReleases.tid +2 -2
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.1.tid +118 -0
- package/editions/tw5.com/tiddlers/releasenotes/ReleaseTemplate.tid +3 -0
- package/editions/tw5.com/tiddlers/releasenotes/alpha/AlphaReleases.tid +2 -2
- package/editions/tw5.com/tiddlers/saving/Example config-tiddlyweb-host for IIS.txt.meta +1 -1
- package/editions/tw5.com/tiddlers/saving/Example package.json for IIS.txt.meta +1 -1
- package/editions/tw5.com/tiddlers/saving/Example tiddlywiki.info for IIS.txt.meta +1 -1
- package/editions/tw5.com/tiddlers/saving/Example web.config for IIS.txt.meta +1 -1
- package/editions/tw5.com/tiddlers/saving/Saving via WebDAV.tid +31 -1
- package/editions/tw5.com/tiddlers/styleguide/Documentation Macros.tid +6 -2
- package/editions/tw5.com/tiddlers/{TableOfContents.tid → system/TableOfContents.tid} +0 -0
- package/editions/tw5.com/tiddlers/system/doc-macros.tid +17 -0
- package/editions/tw5.com/tiddlers/system/doc-styles.tid +32 -1
- package/editions/tw5.com/tiddlers/system/operator-macros.tid +12 -5
- package/editions/tw5.com/tiddlers/system/operator-template.tid +8 -8
- package/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_Image.tid +2 -2
- package/editions/tw5.com/tiddlers/variables/examples/Sample Headings 1-2-3.tid +2 -1
- package/editions/tw5.com/tiddlers/variables/examples/Sample Headings 3-4-5.tid +2 -1
- package/editions/tw5.com/tiddlers/variables/examples/Sample Headings 4-5-6.tid +2 -1
- package/editions/tw5.com/tiddlers/widgets/ActionCreateTiddlerWidget Example 1.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/ActionCreateTiddlerWidget Example 2.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/ActionCreateTiddlerWidget Example 3.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/ActionCreateTiddlerWidget Example 4.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/ActionCreateTiddlerWidget Template.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/ActionCreateTiddlerWidget_Example.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid +52 -2
- package/editions/tw5.com/tiddlers/widgets/ActionSendMessageWidget.tid +3 -1
- package/editions/tw5.com/tiddlers/widgets/ActionSetMultipleFieldsWidget.tid +31 -0
- package/editions/tw5.com/tiddlers/widgets/ActionWidget Execution Modes.tid +5 -2
- package/editions/tw5.com/tiddlers/widgets/ActionWidgets.tid +4 -4
- package/editions/tw5.com/tiddlers/widgets/ButtonWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/CheckboxWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/DraggableWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/DroppableWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/DropzoneWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/EditTextWidget.tid +8 -19
- package/editions/tw5.com/tiddlers/widgets/EditWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/FieldManglerWidget.tid +3 -3
- package/editions/tw5.com/tiddlers/{Keyboard Codes.tid → widgets/Keyboard Codes.tid} +0 -0
- package/editions/tw5.com/tiddlers/widgets/KeyboardWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/LetWidget.tid +57 -0
- package/editions/tw5.com/tiddlers/widgets/LinkCatcherWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/ListopsData.tid +1 -0
- package/editions/tw5.com/tiddlers/widgets/MessageCatcherWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/MessageHandlerWidgets.tid +13 -0
- package/editions/tw5.com/tiddlers/widgets/NavigatorWidget.tid +5 -2
- package/editions/tw5.com/tiddlers/widgets/RadioWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/RangeWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/SelectWidget.tid +15 -2
- package/editions/tw5.com/tiddlers/widgets/SetMultipleVariablesWidget.tid +33 -0
- package/editions/tw5.com/tiddlers/widgets/The Extended Listops Filters.tid +2 -1
- package/editions/tw5.com/tiddlers/widgets/TriggeringWidgets.tid +13 -0
- package/editions/tw5.com/tiddlers/widgets/VarsWidget.tid +7 -5
- package/editions/tw5.com/tiddlers/wikitext/Transclusion and Substitution.tid +3 -2
- package/languages/pl-PL/ControlPanel.multids +1 -1
- package/languages/pl-PL/Docs/PaletteColours.multids +1 -1
- package/languages/pl-PL/Import.multids +1 -1
- package/languages/pl-PL/Misc.multids +2 -2
- package/languages/pl-PL/SideBar.multids +1 -1
- package/languages/zh-Hans/ControlPanel.multids +15 -0
- package/languages/zh-Hant/ControlPanel.multids +15 -0
- package/licenses/cla-individual.md +10 -0
- package/package.json +1 -1
- package/plugins/tiddlywiki/codemirror/engine.js +55 -2
- package/readme.md +2 -2
- package/themes/tiddlywiki/vanilla/ThemeTweaks.tid +7 -3
- package/themes/tiddlywiki/vanilla/base.tid +6 -0
- package/themes/tiddlywiki/vanilla/reset.tid +1 -1
- package/core/ui/ViewTemplate/plugin.tid +0 -15
- package/editions/tw5.com/tiddlers/customising/Page and tiddler layout customisation.tid +0 -63
- package/editions/tw5.com/tiddlers/demonstrations/SampleAlert.tid +0 -9
@@ -0,0 +1,15 @@
|
|
1
|
+
created: 20211128212902292
|
2
|
+
modified: 20211128212904721
|
3
|
+
tags: [[Filter Syntax]] [[Filter Run Prefix]]
|
4
|
+
title: Intersection Filter Run Prefix
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
<<.from-version "5.1.23">>
|
8
|
+
|
9
|
+
|''purpose'' |find the intersection of titles from previous runs with titles in this filter run |
|
10
|
+
|''input'' |all titles from previous filter runs |
|
11
|
+
|''output''|the titles that are present in both the result of this filter run and the output from previous runs |
|
12
|
+
|
13
|
+
The filter output from previous runs is set aside. The `:intersection` filter run is started with all tiddler titles as input. Once this latest filter run has completed, the latest output is compared to the set-aside output. A new output is produced that contains only titles that appeared in both the set-aside output and the latest output.
|
14
|
+
|
15
|
+
[[Examples|Intersection Filter Run Prefix (Examples)]]
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20210618134753828
|
2
|
-
modified:
|
2
|
+
modified: 20211125152755859
|
3
3
|
tags: [[Filter Syntax]] [[Filter Run Prefix Examples]] [[Map Filter Run Prefix]]
|
4
4
|
title: Map Filter Run Prefix (Examples)
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -14,3 +14,28 @@ Replace the input titles with the caption field if it exists, otherwise preserve
|
|
14
14
|
For each title in a shopping list, calculate the total cost of purchasing each item:
|
15
15
|
|
16
16
|
<<.operator-example 2 "[tag[shopping]] :map[get[quantity]else[0]multiply{!!price}]">>
|
17
|
+
|
18
|
+
!! Comparison between `:map` and `:and`/`+` filter run prefixes
|
19
|
+
|
20
|
+
The functionality of the `:map` filter run prefix has some overlap with the `:and` prefix (alias `+`). They will sometimes return the same results as each other. In at least these cases, the results will be different:
|
21
|
+
|
22
|
+
# The `:and` filter run can modify the number of items (either increase or decrease). The `:map` run will never alter the number of items.
|
23
|
+
# The number of items in the `:and` filter run will also decrease due to de-duplication. The `:map` run will not de-duplicate.
|
24
|
+
# Explicit references to the "currentTiddler" variable will behave differently
|
25
|
+
# Implicit references to the "currentTiddler" using TextReference will behave differently.
|
26
|
+
|
27
|
+
| `:map` | `:and` |
|
28
|
+
|!results are the same|<|
|
29
|
+
|^<<.operator-example 1.1 "[range[5]] :map[add[1]]">>|^<<.operator-example 1.2 "[range[5]] :and[add[1]]">>|
|
30
|
+
|^<<.operator-example 2.1 "[range[5]] :map[addsuffix[ hello]]">>|^<<.operator-example 2.2 "[range[5]] :and[addsuffix[ hello]]">>|
|
31
|
+
|^<<.operator-example 3.1 "[tag[shopping]] :map[get[quantity]]">>|^<<.operator-example 3.2 "[tag[shopping]] :and[get[quantity]]">>|
|
32
|
+
|!decrease in the number of items|<|
|
33
|
+
|^<<.operator-example 4.1 "[range[5]] :map[sum[]]">>|^<<.operator-example 4.2 "[range[5]] :and[sum[]]">>|
|
34
|
+
|^<<.operator-example 5.1 "[range[5]] :map[join[,]]">>|^<<.operator-example 5.2 "[range[5]] :and[join[,]]">>|
|
35
|
+
|!increase in the number of items|<|
|
36
|
+
|^<<.operator-example 6.1 "[[1,2,3]] [[4,5]] :map[split[,]]">>|^<<.operator-example 6.2 "[[1,2,3]] [[4,5]] :and[split[,]]">>|
|
37
|
+
|!de-duplication|<|
|
38
|
+
|^<<.operator-example 7.1 "[range[5]] :map[[hello]]">>|^<<.operator-example 7.2 "[range[5]] :and[[hello]]">>|
|
39
|
+
|!currentTiddler|<|
|
40
|
+
|^<<.operator-example 8.1 "[tag[shopping]] :map[<currentTiddler>]">>|^<<.operator-example 8.2 "[tag[shopping]] :and[<currentTiddler>]">>|
|
41
|
+
|^<<.operator-example 9.1 "[tag[shopping]] :map[{!!quantity}]">>|^<<.operator-example 9.2 "[tag[shopping]] :and[{!!quantity}]">>|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20210618133745003
|
2
|
-
modified:
|
2
|
+
modified: 20211029025541750
|
3
3
|
tags: [[Filter Syntax]] [[Filter Run Prefix]]
|
4
4
|
title: Map Filter Run Prefix
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -14,6 +14,14 @@ Each input title from previous runs is passed to this run in turn. The filter ru
|
|
14
14
|
|
15
15
|
Note that within the filter run, the "currentTiddler" variable is set to the title of the tiddler being processed. This permits filter runs like `:map[{!!price}multiply{!!cost}]` to be used for computation. The value of currentTiddler outside the run is available in the variable "..currentTiddler".
|
16
16
|
|
17
|
+
The following variables are available within the filter run:
|
18
|
+
|
19
|
+
* ''currentTiddler'' - the input title
|
20
|
+
* ''..currentTiddler'' - the value of the variable `currentTiddler` outside the filter run.
|
21
|
+
* ''index'' - <<.from-version "5.2.1">> the numeric index of the current list item (with zero being the first item in the list).
|
22
|
+
* ''revIndex'' - <<.from-version "5.2.1">> the reverse numeric index of the current list item (with zero being the last item in the list).
|
23
|
+
* ''length'' - <<.from-version "5.2.1">> the total length of the input list.
|
24
|
+
|
17
25
|
Filter runs used with the `:map` prefix should return the same number of items that they are passed. Any missing entries will be treated as an empty string. In particular, when retrieving the value of a field with the [[get Operator]] it is helpful to guard against a missing field value using the [[else Operator]]. For example `[get[myfield]else[default-value]...`.
|
18
26
|
|
19
27
|
[[Examples|Map Filter Run Prefix (Examples)]]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
created: 20201214044413473
|
2
|
-
modified:
|
3
|
-
tags:
|
2
|
+
modified: 20211118025845599
|
3
|
+
tags: [[Filter Syntax]]
|
4
4
|
title: Named Filter Run Prefix
|
5
5
|
|
6
6
|
<$set name="prefixlist" filter="""[all[shadows+tiddlers]has[module-type]module-type[filterrunprefix]trim:prefix[$:/core/modules/filterrunprefixes/]trim:suffix[.js]addprefix["]addsuffix["]join[|]addprefix[(]addsuffix[)]]""">
|
@@ -0,0 +1,27 @@
|
|
1
|
+
created: 20211124151912931
|
2
|
+
modified: 20211124160747921
|
3
|
+
tags: [[Filter Syntax]] [[Reduce Filter Run Prefix]] [[Filter Run Prefix Examples]]
|
4
|
+
title: Reduce Filter Run Prefix (Examples)
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
\define multiply-input() [multiply<accumulator>]
|
8
|
+
|
9
|
+
The following examples use these data tiddlers:
|
10
|
+
|
11
|
+
<ul>
|
12
|
+
<$list filter="[tag[shopping]!has[draft.of]]">
|
13
|
+
<li>
|
14
|
+
''<$link><$text text=<<currentTiddler>>/></$link>'' quantity: <$text text={{!!quantity}}/>, price: <$text text={{!!price}}/>
|
15
|
+
</li>
|
16
|
+
</$list>
|
17
|
+
</ul>
|
18
|
+
|
19
|
+
<<.operator-example 1 "[tag[shopping]] :reduce[get[quantity]add<accumulator>]">>
|
20
|
+
<<.operator-example 2 "[tag[shopping]] :reduce[get[price]multiply{!!quantity}add<accumulator>]">>
|
21
|
+
<<.operator-example 3 "[tag[shopping]] :reduce[<index>compare:number:gt[0]then<accumulator>addsuffix[, ]addsuffix<currentTiddler>else<currentTiddler>]" "Uses `<index>` to act differently on the first item than the rest. Just for demonstration. Better to use the [[join Operator]] to accomplish this task">>
|
22
|
+
<<.operator-example 4 "[tag[non-existent]] :reduce[get[price]multiply{!!quantity}add<accumulator>]" "Empty input produces empty output">>
|
23
|
+
<<.operator-example 5 "[tag[non-existent]] :reduce[get[price]multiply{!!quantity}add<accumulator>] :else[[0]]" "Use `:else` to ensure output if input was empty">>
|
24
|
+
|
25
|
+
<$macrocall $name=".tip" _="""Unlike the [[reduce Operator]], the `:reduce` prefix cannot specify an initial value for the accumulator, so its initial value will always be empty (which is treated as 0 by mathematical operators). So `=1 =2 =3 :reduce[multiply<accumulator>]` will produce 0, not 6. If you need to specify an initial accumulator value, use the [[reduce Operator]]."""/>
|
26
|
+
<<.operator-example 6 "=1 =2 =3 :reduce[multiply<accumulator>]" "Empty initial value is treated as 0 by mathematical operators">>
|
27
|
+
<<.operator-example 7 "=1 =2 =3 +[reduce<multiply-input>,[1]]" "Setting initial value is sometimes necessary for correct results">>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
created: 20211124151912931
|
2
|
+
modified: 20211124170117511
|
3
|
+
tags: [[Filter Syntax]] [[Filter Run Prefix]]
|
4
|
+
title: Reduce Filter Run Prefix
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
<<.from-version "5.1.23">>
|
8
|
+
|
9
|
+
|''purpose'' |replaces all filter output so far with a single item by repeatedly applying a filter run to each input title |
|
10
|
+
|''input'' |all titles from previous filter runs |
|
11
|
+
|''output''|the accumulated single item |
|
12
|
+
|
13
|
+
Each input title from previous runs is passed to this run in turn. The result of each previous call to this run is made available in the next call via the variable named "accumulator". The result of the last call to this run is returned as the output. A typical use is to add up the values in a given field of each input title.
|
14
|
+
|
15
|
+
The following variables are available within the filter run:
|
16
|
+
|
17
|
+
* ''accumulator'' - the result of the previous filter run
|
18
|
+
* ''currentTiddler'' - the input title
|
19
|
+
* ''..currentTiddler'' - the value of the variable `currentTiddler` outside the filter run. <<.from-version "5.2.0">>
|
20
|
+
* ''index'' - the numeric index of the current list item (with zero being the first item in the list)
|
21
|
+
* ''revIndex'' - the reverse numeric index of the current list item (with zero being the last item in the list)
|
22
|
+
* ''length'' - the total length of the input list
|
23
|
+
|
24
|
+
<<.tip "Compare named filter run prefix `:reduce` with [[reduce Operator]] which is used to flatten a list of items down to a single item by repeatedly applying a subfilter.">>
|
25
|
+
|
26
|
+
```
|
27
|
+
[tag[shopping]] :reduce[get[quantity]add<accumulator>]
|
28
|
+
```
|
29
|
+
|
30
|
+
is equivalent to:
|
31
|
+
|
32
|
+
```
|
33
|
+
\define num-items() [get[quantity]add<accumulator>]
|
34
|
+
|
35
|
+
[tag[shopping]reduce<num-items>]
|
36
|
+
```
|
37
|
+
|
38
|
+
[[Examples|Reduce Filter Run Prefix (Examples)]]
|
@@ -0,0 +1,13 @@
|
|
1
|
+
caption: tan
|
2
|
+
created: 20211019211156303
|
3
|
+
modified: 20211021222828332
|
4
|
+
op-input: a [[selection of titles|Title Selection]]
|
5
|
+
op-output: the tangent of the input angles
|
6
|
+
op-purpose: calculate the tangent value of a list of angles (given in radians)
|
7
|
+
tags: [[Filter Operators]] [[Mathematics Operators]] [[Trigonometric Operators]] [[Unary Mathematics Operators]]
|
8
|
+
title: tan Operator
|
9
|
+
type: text/vnd.tiddlywiki
|
10
|
+
|
11
|
+
<<.from-version "5.1.21">> See [[Mathematics Operators]] for an overview.
|
12
|
+
|
13
|
+
<<.operator-examples "tan">>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
caption: zth
|
2
|
+
created: 20211029023242012
|
3
|
+
modified: 20211029023711450
|
4
|
+
op-input: a [[selection of titles|Title Selection]]
|
5
|
+
op-output: the <<.place Z>>th input title
|
6
|
+
op-parameter: an integer, defaulting to 0
|
7
|
+
op-parameter-name: Z
|
8
|
+
op-purpose: select the <<.place Z>>th input title
|
9
|
+
tags: [[Filter Operators]] [[Order Operators]]
|
10
|
+
title: zth Operator
|
11
|
+
type: text/vnd.tiddlywiki
|
12
|
+
|
13
|
+
<<.from-version 5.2.1>>
|
14
|
+
<<.place Z>> is zero-based. In other words, `zth[0]` has the same effect as `nth[1]` and the <<.olink first>> operator.
|
15
|
+
|
16
|
+
<<.tip "See <<.olink nth>> for an equivalent operator with a 1 based parameter">>
|
17
|
+
|
18
|
+
<<.operator-examples "zth">>
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
created: 20130822170200000
|
2
2
|
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?]] [[HelloThumbnail - TWEUM2017]]
|
3
|
-
modified:
|
3
|
+
modified: 20211208115833846
|
4
4
|
tags: TableOfContents
|
5
5
|
title: HelloThere
|
6
6
|
type: text/vnd.tiddlywiki
|
package/editions/tw5.com/tiddlers/hellothere/Some of the things you can do with TiddlyWiki.tid
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20140904090300000
|
2
|
-
modified:
|
2
|
+
modified: 20211018102355896
|
3
3
|
tags: HelloThere
|
4
4
|
title: Some of the things you can do with TiddlyWiki
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -11,7 +11,7 @@ type: text/vnd.tiddlywiki
|
|
11
11
|
* Inventory just about anything: your recipes, personal library, contacts, music collection, and more
|
12
12
|
* Create a blog or website
|
13
13
|
* Write a book
|
14
|
-
* Organise your images into galleries (see
|
14
|
+
* Organise your images into galleries (see [[Icon Gallery]])
|
15
15
|
* Share the information in your ~TiddlyWiki with others, as an online file, as a file attachment, as a tiddler file, or as a link to a specific online tiddler (try clicking and dragging a tiddler from one ~TiddlyWiki file to another to see what happens)
|
16
16
|
* Draw a sketch (Edit [[Motovun Jack.jpg]] and start drawing over the image to see what happens)
|
17
17
|
* Use familiar web user interface elements such as lightboxes - see SampleWizard
|
@@ -1,5 +1,6 @@
|
|
1
1
|
title: ProductHunt-Badge.svg
|
2
2
|
type: image/svg+xml
|
3
|
+
tags: [[HelloThere Badge]]
|
3
4
|
|
4
5
|
<?xml version="1.0" encoding="UTF-8"?>
|
5
6
|
<svg width="250px" height="54px" viewBox="0 0 250 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
@@ -1,3 +1,4 @@
|
|
1
1
|
title: Product Hunt Link
|
2
|
+
tags: [[HelloThere Badge]]
|
2
3
|
|
3
4
|
<a href="https://www.producthunt.com/posts/tiddlywiki-2?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-tiddlywiki-2" alt="Product Hunt: Product of the Day" target="_blank" rel="noopener noreferrer">{{ProductHunt-Badge.svg}}</a>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
created: 20211028083211182
|
2
|
+
modified: 20211029090311444
|
3
|
+
tags: [[Hidden Settings]]
|
4
|
+
title: Hidden Setting: Show Edit Preview per Tiddler
|
5
|
+
|
6
|
+
Controls whether the [[tiddler editing preview|Text preview]] is controlled globally (the default) or on a per-tiddler basis.
|
7
|
+
|
8
|
+
Set it to ''yes'' to enable per-tiddler mode.
|
9
|
+
|
10
|
+
$:/config/ShowEditPreview/PerTiddler
|
@@ -4,10 +4,10 @@ tags: [[Hidden Settings]]
|
|
4
4
|
title: Hidden Setting: Typing Refresh Delay
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
7
|
-
TiddlyWiki defers processing changes to draft tiddlers until a timeout has elapsed (this is called throttling). The mechanism can be extended to other tiddlers by adding a `throttle.refresh` field. See RefreshThrottling for details.
|
7
|
+
TiddlyWiki defers processing changes to draft tiddlers and tiddlers with the prefix `$:/temp/volatile/` until a timeout has elapsed (this is called throttling). The mechanism can be extended to other tiddlers by adding a `throttle.refresh` field. See RefreshThrottling for details.
|
8
8
|
|
9
9
|
The default value of 400ms gives a good balance of responsiveness in most cases but isn't always optimal on lower powered mobile devices.
|
10
10
|
|
11
11
|
The timeout can now be changed by changing this value (in milliseconds):
|
12
12
|
|
13
|
-
$:/config/Drafts/TypingTimeout
|
13
|
+
$:/config/Drafts/TypingTimeout
|
@@ -1,44 +1,32 @@
|
|
1
1
|
created: 20140214215718317
|
2
|
-
modified:
|
2
|
+
modified: 20211127032217828
|
3
3
|
tags: Learning
|
4
4
|
title: Creating SubStories
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
7
|
-
This example shows how to create a sub-story within a tiddler that is independent of the main story.
|
7
|
+
This example shows how to create a sub-story within a tiddler that is independent of the main [[story|Story River]]. The NavigatorWidget and ListWidget work together to:
|
8
8
|
|
9
|
-
|
9
|
+
# Add tiddlers to the [[story|Story River]] when links are clicked. Navigate to the tiddler corresponding to the link click. (''story'' attribute of the NavigatorWidget)
|
10
|
+
# Remove tiddlers from the [[story|Story River]] when tiddler close buttons are clicked. (''story'' attribute of NavigatorWidget)
|
11
|
+
# Animate the opening and closing of tiddlers. (''storyview'' attribute of the ListWidget)
|
12
|
+
# Display the list of open tiddlers. (''filter'' and ''template'' attributes of the ListWidget)
|
13
|
+
# Display tiddlers in [[draft mode|DraftMechanism]]. (''editTemplate'' attribute of the ListWidget)
|
14
|
+
# Track [[navigation history|HistoryMechanism]]. (''history'' attribute of both NavigatorWidget and ListWidget)
|
15
|
+
# And more!
|
10
16
|
|
11
|
-
|
12
|
-
<$navigator story="MySubStoryList" history="MySubHistoryList">
|
17
|
+
Here is the example code (see also StateMechanism for related discussion):
|
13
18
|
|
14
|
-
|
19
|
+
<$macrocall $name='wikitext-example-without-html'
|
20
|
+
src='<$navigator story="$:/temp/DemoStoryList" history="$:/temp/DemoHistoryList">
|
15
21
|
|
16
|
-
|
17
|
-
<div>
|
22
|
+
{{$:/core/ui/SideBarSegments/search}}
|
18
23
|
|
19
|
-
|
24
|
+
<$list
|
25
|
+
filter="[list[$:/temp/DemoStoryList]]"
|
26
|
+
history="$:/temp/DemoHistoryList"
|
27
|
+
template={{$:/config/ui/ViewTemplate}}
|
28
|
+
editTemplate={{$:/config/ui/EditTemplate}}
|
29
|
+
storyview="classic"
|
30
|
+
emptyMessage="Use search box above. Clicked search links will open here instead of in the main story.<p>No search ideas? Click this link to get started: HelloThere</p>"/>
|
20
31
|
|
21
|
-
|
22
|
-
</div>
|
23
|
-
</$list>
|
24
|
-
|
25
|
-
</$navigator>
|
26
|
-
```
|
27
|
-
|
28
|
-
Note how you can open the HelloThere tiddler in the substory by clicking on the link below. Links within the substory open within the substory, and not in the main story.
|
29
|
-
|
30
|
-
<$navigator story="MySubStoryList" history="MySubHistoryList">
|
31
|
-
|
32
|
-
Click this link to get started: HelloThere
|
33
|
-
|
34
|
-
<$list filter="[list[MySubStoryList]]" history="MySubHistoryList">
|
35
|
-
<div>
|
36
|
-
|
37
|
-
! <$button message="tm-close-tiddler" class="tc-btn-invisible">{{$:/core/images/close-button}}</$button> <$view field="title"/>
|
38
|
-
|
39
|
-
<$transclude/>
|
40
|
-
|
41
|
-
</div>
|
42
|
-
</$list>
|
43
|
-
|
44
|
-
</$navigator>
|
32
|
+
</$navigator>'>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
created: 20211125175712017
|
2
|
+
modified: 20211125175906085
|
3
|
+
tags: [[Using Stylesheets]]
|
4
|
+
title: Debugging Stylesheets
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
The core shadow tiddler $:/snippets/DebugStylesheets contains a simple tool for tracking down certain problems with mismatched brackets and other nested structures.
|
8
|
+
|
9
|
+
In the list below, any stylesheets containing an error will be marked with a red cross:
|
10
|
+
|
11
|
+
{{$:/snippets/DebugStylesheets}}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
created: 20211204120244761
|
2
|
+
modified: 20211206165108185
|
3
|
+
tags: Learning Cascades [[Story Tiddler Template]] [[Story Tiddler Template Cascade]] [[Customise TiddlyWiki]]
|
4
|
+
title: How to create a custom story tiddler template
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
Here we show how to add a rule to the [[Story Tiddler Template Cascade]] that causes tiddlers tagged <<tag "$:/tags/TiddlerList">> to be displayed with a custom appearance incorporating thumbnails of the tiddlers named in the list field.
|
8
|
+
|
9
|
+
Open [[Demo Tiddler List with Custom Story Tiddler Template]] to see the demo.
|
10
|
+
|
11
|
+
First, we add a new step to the story tiddler template cascade. The new filter step is:
|
12
|
+
|
13
|
+
```
|
14
|
+
[tag[$:/tags/TiddlerList]then[$:/_tw5.com/CustomStoryTiddlerTemplateDemo/Template]]
|
15
|
+
```
|
16
|
+
|
17
|
+
It can be read as:
|
18
|
+
|
19
|
+
```
|
20
|
+
If the tiddler has the tag $:/tags/TiddlerList then return $:/_tw5.com/CustomStoryTiddlerTemplateDemo/Template
|
21
|
+
```
|
22
|
+
|
23
|
+
> The template $:/_tw5.com/CustomStoryTiddlerTemplateDemo/Template also depends on styles defined in [[$:/_tw5.com/CustomStoryTiddlerTemplateDemo/Styles]].
|
24
|
+
|
25
|
+
The story tiddler template cascade is defined by the tag <<tag "$:/tags/StoryTiddlerTemplateFilter">>, so we need to create a configuration tiddler with that tag.
|
26
|
+
|
27
|
+
We also need to make sure that it is inserted at the correct point in the cascade:
|
28
|
+
|
29
|
+
* The new rule must be after the "draft" rule to ensure that draft tiddlers with the tag $:/tags/TiddlerList can be edited
|
30
|
+
* The new rule must be before the "default" rule otherwise it will never be executed
|
31
|
+
|
32
|
+
The control panel "Cascades" tab shows that this can be achieved by inserting the new step immediately before the default step using the `list-before` field.
|
33
|
+
|
34
|
+
The full list of fields in the configuration tiddler is:
|
35
|
+
|
36
|
+
<<.tiddler-fields "$:/_tw5.com/CustomStoryTiddlerTemplateDemo/Filter">>
|
37
|
+
|
38
|
+
Finally, we need to create the demo tiddler itself:
|
39
|
+
|
40
|
+
<<.tiddler-fields "Demo Tiddler List with Custom Story Tiddler Template">>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
created: 20211206114114698
|
2
|
+
modified: 20211206165150302
|
3
|
+
tags: Learning Cascades [[Customise TiddlyWiki]]
|
4
|
+
title: How to create a custom tiddler colour rule
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
Here we show how to add a rule to the [[Tiddler Colour Cascade]] that causes tiddlers with the tag <<tag "TableOfContents">> to be given a bright blue colour and tiddlers with the tag <<tag "Working with TiddlyWiki">> to be given a dark purple colour.
|
8
|
+
|
9
|
+
<<.tip "[[How to create a custom tiddler icon rule]] describes how the same tiddlers have been given a custom icon">>
|
10
|
+
|
11
|
+
First, we add a new step to the tiddler colour cascade. The new filter step is:
|
12
|
+
|
13
|
+
```
|
14
|
+
[tag[TableOfContents]then[#1e90ff]]
|
15
|
+
[tag[Working with TiddlyWiki]then[darkorchid]]
|
16
|
+
```
|
17
|
+
|
18
|
+
It can be read as:
|
19
|
+
|
20
|
+
```
|
21
|
+
If the tiddler has the tag "TableOfContents" then return the colour #1e90ff
|
22
|
+
Else if the tiddler has the tag "Working with TiddlyWiki" then return the colour darkorchid
|
23
|
+
```
|
24
|
+
|
25
|
+
The tiddler colour cascade is defined by the tag <<tag "$:/tags/TiddlerColourFilter">>, so we need to create a configuration tiddler with that tag.
|
26
|
+
|
27
|
+
We also need to make sure that it is inserted at the correct point in the cascade:
|
28
|
+
|
29
|
+
* The new rule must be after the "colour-field" rule to ensure that tiddlers with an explicit ''color'' field will respect the value of that field
|
30
|
+
* The new rule must be before the "default" icon otherwise it will never be seen if the default colour is specified
|
31
|
+
|
32
|
+
The control panel "Cascades" tab shows that this can be achieved by inserting the new step immediately before the default step using the `list-before` field.
|
33
|
+
|
34
|
+
The full list of fields in the configuration tiddler is:
|
35
|
+
|
36
|
+
<<.tiddler-fields "$:/_tw5.com/CustomTiddlerColourCascadeDemo">>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
created: 20211204161649863
|
2
|
+
modified: 20211206165129215
|
3
|
+
tags: Learning Cascades [[Tiddler Icon Cascade]] [[Customise TiddlyWiki]]
|
4
|
+
title: How to create a custom tiddler icon rule
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
Here we show how to add a rule to the [[Tiddler Icon Cascade]] that causes tiddlers with the tag <<tag "TableOfContents">> to be given the "globe" icon <<.icon $:/core/images/globe>> and tiddlers with the tag <<tag "Working with TiddlyWiki">> to be given the "help" icon <<.icon $:/core/images/help>>.
|
8
|
+
|
9
|
+
<<.tip "[[How to create a custom tiddler colour rule]] describes how the same tiddlers have been given a custom colour">>
|
10
|
+
|
11
|
+
First, we add a new step to the tiddler icon cascade. The new filter step is:
|
12
|
+
|
13
|
+
```
|
14
|
+
[tag[TableOfContents]then[$:/core/images/globe]]
|
15
|
+
[tag[Working with TiddlyWiki]then[$:/core/images/help]]
|
16
|
+
```
|
17
|
+
|
18
|
+
It can be read as:
|
19
|
+
|
20
|
+
```
|
21
|
+
If the tiddler has the tag "TableOfContents" then return $:/core/images/globe
|
22
|
+
Else if the tiddler has the tag "Working with TiddlyWiki" then return $:/core/images/help
|
23
|
+
```
|
24
|
+
|
25
|
+
The tiddler icon cascade is defined by the tag <<tag "$:/tags/TiddlerIconFilter">>, so we need to create a configuration tiddler with that tag.
|
26
|
+
|
27
|
+
We also need to make sure that it is inserted at the correct point in the cascade:
|
28
|
+
|
29
|
+
* The new rule must be after the "icon-field" rule to ensure that tiddlers with an explicit ''icon'' field will respect the value of that field
|
30
|
+
* The new rule must be before the "default" icon otherwise it will never be seen if the default icon is specified
|
31
|
+
|
32
|
+
The control panel "Cascades" tab shows that this can be achieved by inserting the new step immediately before the default step using the `list-before` field.
|
33
|
+
|
34
|
+
The full list of fields in the configuration tiddler is:
|
35
|
+
|
36
|
+
<<.tiddler-fields "$:/_tw5.com/CustomTiddlerIconCascadeDemo">>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20201216182347597
|
2
|
-
modified:
|
2
|
+
modified: 20211018102328148
|
3
3
|
tags:
|
4
4
|
title: How to create dynamic editor toolbar buttons
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -86,7 +86,7 @@ This tiddler contains all the necessary elements that are important for toolbar
|
|
86
86
|
: Is used as the button tooltip
|
87
87
|
|
88
88
|
; icon
|
89
|
-
: Assigns the button icon. We use `$:/core/images/spiral` {{$:/core/images/spiral}} here.
|
89
|
+
: Assigns the button icon. We use `$:/core/images/spiral` {{$:/core/images/spiral}} here. More button icons can be found in the [[Icon Gallery]]
|
90
90
|
|
91
91
|
; shortcuts
|
92
92
|
: This is the [[Keyboard Shortcut Descriptor]] eg: `((temp-bold))`
|
@@ -1,6 +1,6 @@
|
|
1
1
|
created: 20180310002601813
|
2
|
-
modified:
|
3
|
-
tags: Learning
|
2
|
+
modified: 20211106021629911
|
3
|
+
tags: Learning [[How to apply custom styles]]
|
4
4
|
title: Simple ways to write protect tiddlers
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
@@ -10,9 +10,8 @@ Sometimes you want to protect individual tiddlers from accidental changes, eithe
|
|
10
10
|
|
11
11
|
Create a tiddler with the following contents and tag it as `$:/tags/Stylesheet` :
|
12
12
|
|
13
|
-
```
|
14
|
-
|
15
|
-
|
13
|
+
```css
|
14
|
+
[data-tags*="Locked"] button[title="Edit this tiddler"] {display: none;}
|
16
15
|
```
|
17
16
|
|
18
17
|
If your TW language isn't English, then you'll need to change the text in 'title="...."' to whatever the text is when you hover over the edit button.
|
@@ -1,9 +1,9 @@
|
|
1
1
|
created: 20160817104110857
|
2
|
-
modified:
|
2
|
+
modified: 20211029090145708
|
3
3
|
tags: [[Editor toolbar]]
|
4
4
|
title: Text preview
|
5
5
|
|
6
|
-
Pressing the eye icon {{$:/core/ui/EditorToolbar/preview}} will open or close a preview window
|
6
|
+
Pressing the eye icon {{$:/core/ui/EditorToolbar/preview}} will open or close a preview window showing the results of rendering the WikiText (the icon-eye will also open or close).
|
7
7
|
|
8
8
|
Right to the eye there is another icon, {{$:/core/images/chevron-down}}, which when clicked, shows you a dropdown which gives you access to six different types of preview:
|
9
9
|
|
@@ -12,3 +12,7 @@ Right to the eye there is another icon, {{$:/core/images/chevron-down}}, which w
|
|
12
12
|
* //parsetree// and //widgettree// show you the two object trees that ~TiddlyWiki internally generates from ~WikiText. The //parsetree// collects basic information about your ~WikiText. From the informations of the parsetree the //widgettree// then generates extended informations and finally the above html (and the widgettree also does other things).
|
13
13
|
* //differences from current// shows you the differences since the tiddler was last saved. Deleted parts are <span style="color:red;">red</span>, added parts are <span style="color:green;">green</span>.
|
14
14
|
* //differences from shadow (if any)// does the same, but this time it shows you the differences to the underlying [[shadow-tiddler|ShadowTiddlers]].
|
15
|
+
|
16
|
+
<<.tip "By default, the preview pane button controls whether the preview pane is displayed for all tiddlers that are open for editing. There is a [[hidden setting|Hidden Setting: Show Edit Preview per Tiddler]] to make the button work on a per-tiddler basis">>
|
17
|
+
|
18
|
+
<<.tip "The variable [[tv-tiddler-preview|tv-tiddler-preview Variable]] can be used to detect whether content is being displayed in the preview pane.">>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20140305091244145
|
2
|
-
modified:
|
2
|
+
modified: 20211125175708977
|
3
3
|
tags: [[Customise TiddlyWiki]]
|
4
4
|
title: Using Stylesheets
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -16,9 +16,9 @@ type: text/vnd.tiddlywiki
|
|
16
16
|
|
17
17
|
The first steps to changing the appearance of ~TiddlyWiki are to choose and apply:
|
18
18
|
|
19
|
-
* One of the available themes:
|
20
|
-
* Modify the colour palette:
|
21
|
-
* Experiment with the <$button actions=<<openCpTheme>> ><<.icon $:/core/images/options-button>> ControlPanel</$button>
|
19
|
+
* One of the available themes: {{$:/core/ui/Buttons/theme}}
|
20
|
+
* Modify the colour palette: {{$:/core/ui/Buttons/palette}}
|
21
|
+
* Experiment with the <$button actions=<<openCpTheme>> class="tc-btn-invisible"><<.icon $:/core/images/options-button>> ~ControlPanel</$button>
|
22
22
|
|
23
23
|
! Work with Stylesheets
|
24
24
|
|
@@ -73,3 +73,7 @@ A stylesheet tiddler is processed such that it is first wikified and then the te
|
|
73
73
|
!! Stylesheet Macros
|
74
74
|
|
75
75
|
The ~TiddlyWiki core provides several [[global macros that are helpful in constructing stylesheets|Stylesheet Macros]].
|
76
|
+
|
77
|
+
!! See Also
|
78
|
+
|
79
|
+
* <<list-links "[tag[Using Stylesheets]]">>
|