tiddlywiki 5.2.1 → 5.2.2
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/.eslintignore +5 -12
- package/.eslintrc.yml +17 -1
- package/.github/workflows/ci.yml +3 -0
- package/bin/build-site.sh +1 -1
- package/bin/build-tw-org.sh +97 -0
- package/boot/boot.js +44 -17
- package/boot/bootprefix.js +1 -0
- package/contributing.md +1 -1
- package/core/copyright.tid +1 -1
- package/core/language/en-GB/ControlPanel.multids +3 -1
- package/core/language/en-GB/Fields.multids +4 -3
- package/core/language/en-GB/Misc.multids +1 -1
- package/core/modules/commands/init.js +1 -1
- package/core/modules/commands/savelibrarytiddlers.js +1 -1
- package/core/modules/commands/savewikifolder.js +1 -1
- package/core/modules/deserializers.js +7 -10
- package/core/modules/editor/operations/text/wrap-lines.js +5 -3
- package/core/modules/filters/crypto.js +27 -0
- package/core/modules/filters/insertbefore.js +1 -1
- package/core/modules/filters/is/draft.js +2 -2
- package/core/modules/filters/listops.js +2 -1
- package/core/modules/filters/lookup.js +29 -6
- package/core/modules/filters/prefix.js +30 -12
- package/core/modules/filters/removeprefix.js +16 -6
- package/core/modules/filters/removesuffix.js +20 -6
- package/core/modules/filters/search.js +1 -0
- package/core/modules/filters/suffix.js +32 -10
- package/core/modules/filters/untagged.js +1 -1
- package/core/modules/filters.js +4 -2
- package/core/modules/parsers/parseutils.js +2 -2
- package/core/modules/pluginswitcher.js +1 -1
- package/core/modules/savers/gitea.js +2 -2
- package/core/modules/savers/github.js +2 -2
- package/core/modules/savers/gitlab.js +2 -2
- package/core/modules/server/routes/put-tiddler.js +1 -1
- package/core/modules/server/server.js +37 -12
- package/core/modules/startup/browser-messaging.js +2 -2
- package/core/modules/startup/render.js +7 -2
- package/core/modules/startup/rootwidget.js +14 -0
- package/core/modules/startup/windows.js +22 -9
- package/core/modules/tiddler.js +3 -3
- package/core/modules/upgraders/plugins.js +1 -1
- package/core/modules/utils/crypto.js +2 -2
- package/core/modules/utils/dom/dragndrop.js +8 -6
- package/core/modules/utils/dom/scroller.js +11 -7
- package/core/modules/utils/edition-info.js +1 -5
- package/core/modules/utils/pluginmaker.js +2 -4
- package/core/modules/widgets/action-listops.js +2 -2
- package/core/modules/widgets/button.js +1 -1
- package/core/modules/widgets/draggable.js +16 -9
- package/core/modules/widgets/eventcatcher.js +34 -30
- package/core/modules/widgets/image.js +10 -0
- package/core/modules/widgets/importvariables.js +1 -1
- package/core/modules/widgets/list.js +3 -0
- package/core/modules/widgets/navigator.js +2 -17
- package/core/modules/widgets/radio.js +2 -2
- package/core/modules/widgets/scrollable.js +11 -9
- package/core/modules/widgets/widget.js +30 -14
- package/core/modules/wiki-bulkops.js +20 -15
- package/core/modules/wiki.js +39 -17
- package/core/templates/tiddlywiki5.html.tid +1 -1
- package/core/ui/ControlPanel/Cascades/FieldEditor.tid +9 -0
- package/core/ui/EditTemplate/body/default.tid +2 -2
- package/core/ui/EditTemplate/fieldEditor-default.tid +3 -0
- package/core/ui/EditTemplate/fields.tid +6 -4
- package/core/ui/EditTemplate/type.tid +1 -1
- package/core/ui/EditTemplate.tid +2 -2
- package/core/ui/MoreSideBar/plugins/Languages.tid +1 -1
- package/core/ui/MoreSideBar/plugins/Plugins.tid +1 -1
- package/core/ui/MoreSideBar/plugins/Theme.tid +1 -1
- package/core/ui/SideBar/Open.tid +2 -2
- package/core/wiki/allfields.tid +1 -1
- package/core/wiki/config/FieldEditorFilters.multids +4 -0
- package/core/wiki/config/OfficialPluginLibrary.tid +1 -1
- package/core/wiki/config/ViewTemplateBodyFilters.multids +2 -1
- package/core/wiki/macros/list.tid +2 -2
- package/core/wiki/tags/ViewTemplateBodyFilter.tid +1 -1
- package/editions/dev/tiddlers/from Heigele and Jurke/Syncadaptor.tid +2 -2
- package/editions/dynaviewdemo/tiddlers/SideBar-Open.tid +1 -1
- package/editions/fr-FR/output/images/Blurry%20Lawn.jpg +0 -0
- package/editions/fr-FR/output/images/Newnham%20Horizon.jpg +0 -0
- package/editions/fr-FR/output/index.html +5051 -0
- package/editions/fr-FR/output/text/Alice%20in%20Wonderland.tid +3709 -0
- package/editions/fr-FR/tiddlers/$ _config_ViewTemplateTitleFilters_fr-default.tid +7 -0
- package/editions/fr-FR/tiddlers/$ _core_ui_ViewTemplate_title_fr-default.tid +8 -0
- package/editions/fr-FR/tiddlers/$__deprecated.tid +9 -0
- package/editions/fr-FR/tiddlers/$__editions_fr-FR_util-macros.tid +1 -0
- package/editions/fr-FR/tiddlers/$__editions_tw5.com_doc-macros.tid +69 -5
- package/editions/fr-FR/tiddlers/$__editions_tw5.com_version-macros.tid +15 -0
- package/editions/fr-FR/tiddlers/$__editions_tw5.com_wikitext-macros.tid +2 -2
- package/editions/fr-FR/tiddlers/Block_Quotes_in_WikiText.tid +15 -8
- package/editions/fr-FR/tiddlers/CamelCase.tid +6 -3
- package/editions/fr-FR/tiddlers/Code Blocks in WikiText.tid +27 -16
- package/editions/fr-FR/tiddlers/Community Links Aggregator.tid +11 -0
- package/editions/fr-FR/tiddlers/Community.tid +6 -4
- package/editions/fr-FR/tiddlers/Creating and editing tiddlers.tid +11 -11
- package/editions/fr-FR/tiddlers/Deprecated - What does it mean.tid +17 -0
- package/editions/fr-FR/tiddlers/Developers.tid +10 -5
- package/editions/fr-FR/tiddlers/Federatial.tid +11 -0
- package/editions/fr-FR/tiddlers/Formatting in WikiText.tid +12 -12
- package/editions/fr-FR/tiddlers/Forums.tid +27 -13
- package/editions/fr-FR/tiddlers/GettingStarted.tid +16 -14
- package/editions/fr-FR/tiddlers/Glossaire en-GB -_ fr-FR.tid +3 -1
- package/editions/fr-FR/tiddlers/HTML in WikiText.tid +77 -28
- package/editions/fr-FR/tiddlers/Headings in WikiText.tid +2 -2
- package/editions/fr-FR/tiddlers/HelloThere.tid +15 -12
- package/editions/fr-FR/tiddlers/How to export tiddlers.tid +31 -0
- package/editions/fr-FR/tiddlers/ImageWidget.tid +33 -0
- package/editions/fr-FR/tiddlers/Images in WikiText.tid +69 -0
- package/editions/fr-FR/tiddlers/Importing Tiddlers.tid +26 -0
- package/editions/fr-FR/tiddlers/JeremyRuston.tid +9 -9
- package/editions/fr-FR/tiddlers/Linking in WikiText.tid +108 -19
- package/editions/fr-FR/tiddlers/ListField.tid +6 -6
- package/editions/fr-FR/tiddlers/Macros in WikiText.tid +5 -5
- package/editions/fr-FR/tiddlers/Macros.tid +17 -8
- package/editions/fr-FR/tiddlers/PermaLinks.tid +19 -19
- package/editions/fr-FR/tiddlers/Philosophy of Tiddlers.tid +2 -2
- package/editions/fr-FR/tiddlers/Saving.tid +63 -4
- package/editions/fr-FR/tiddlers/Share Plugin.tid +15 -0
- package/editions/fr-FR/tiddlers/{Sharing_a_TiddlyWiki_on_Dropbox.tid → Sharing a TiddlyWiki on Dropbox.tid } +12 -4
- package/editions/fr-FR/tiddlers/Sharing your tiddlers with others.tid +18 -0
- package/editions/fr-FR/tiddlers/Structuring TiddlyWiki.tid +6 -6
- package/editions/fr-FR/tiddlers/Styles and Classes in WikiText.tid +11 -10
- package/editions/fr-FR/tiddlers/Tagging.tid +24 -18
- package/editions/fr-FR/tiddlers/TaskManagementExample.tid +3 -1
- package/editions/fr-FR/tiddlers/TiddlerLinks.tid +5 -5
- package/editions/fr-FR/tiddlers/TiddlyFox Apocalypse.tid +46 -0
- package/editions/fr-FR/tiddlers/TiddlyFox.tid +6 -3
- package/editions/fr-FR/tiddlers/TiddlyWiki.tid +6 -4
- package/editions/fr-FR/tiddlers/_TiddlyWiki for Scholars_ by Alberto Molina.tid +2 -2
- package/editions/prerelease/tiddlers/{Release 5.2.2.tid → Release 5.2.3.tid } +15 -11
- package/editions/prerelease/tiddlers/system/PrereleaseOfficialPluginLibrary.tid +1 -1
- package/editions/prerelease/tiddlers/system/download-empty.tid +1 -0
- package/editions/test/tiddlers/tests/data/tabs-macro/expected-html-tabs-horizontal-all.tid +33 -0
- package/editions/test/tiddlers/tests/data/tabs-macro/expected-html-tabs-horizontal.tid +43 -0
- package/editions/test/tiddlers/tests/data/tabs-macro/expected-html-tabs-vertical.tid +43 -0
- package/editions/test/tiddlers/tests/test-action-widgets.js +55 -0
- package/editions/test/tiddlers/tests/test-filters.js +225 -64
- package/editions/test/tiddlers/tests/test-html-parser.js +15 -0
- package/editions/test/tiddlers/tests/test-prefixes-filter.js +5 -5
- package/editions/test/tiddlers/tests/test-tags.js +19 -0
- package/editions/test/tiddlers/tests/test-utils.js +10 -0
- package/editions/test/tiddlers/tests/test-wikitext-parser.js +14 -1
- package/editions/test/tiddlers/tests/test-wikitext-tabs-macro.js +86 -0
- package/editions/tw.org/tiddlers/$__DefaultTiddlers.tid +6 -0
- package/editions/tw.org/tiddlers/$__SiteSubtitle.tid +6 -0
- package/editions/tw.org/tiddlers/$__SiteTitle.tid +6 -0
- package/editions/tw.org/tiddlers/$__StoryList.tid +3 -0
- package/editions/tw.org/tiddlers/$__favicon.ico.png +0 -0
- package/editions/tw.org/tiddlers/$__favicon.ico.png.meta +4 -0
- package/editions/tw.org/tiddlers/$__palette.tid +6 -0
- package/editions/tw.org/tiddlers/$__palettes_BlueFlavour +165 -0
- package/editions/tw.org/tiddlers/$__palettes_BlueFlavour.meta +8 -0
- package/editions/tw.org/tiddlers/$__palettes_FlowingSun +165 -0
- package/editions/tw.org/tiddlers/$__palettes_FlowingSun.meta +8 -0
- package/editions/tw.org/tiddlers/$__themes_tiddlywiki_vanilla_metrics_bodyfontsize.tid +6 -0
- package/editions/tw.org/tiddlers/$__themes_tiddlywiki_vanilla_metrics_bodylineheight.tid +6 -0
- package/editions/tw.org/tiddlers/$__themes_tiddlywiki_vanilla_metrics_sidebarwidth.tid +6 -0
- package/editions/tw.org/tiddlers/$__themes_tiddlywiki_vanilla_options_sidebarlayout.tid +6 -0
- package/editions/tw.org/tiddlers/HelloThere.tid +14 -0
- package/editions/tw.org/tiddlers/Table of Contents.tid +11 -0
- package/editions/tw.org/tiddlers/TiddlyWiki.tid +8 -0
- package/editions/tw.org/tiddlywiki.info +30 -0
- package/editions/tw5.com/tiddlers/community/Contributor License Agreement.tid +3 -3
- package/editions/tw5.com/tiddlers/community/Forums.tid +16 -13
- package/editions/tw5.com/tiddlers/community/Signing the Contributor License Agreement.tid +2 -2
- package/editions/tw5.com/tiddlers/community/plugins/TiddlyClip by buggyjay.tid +3 -3
- package/editions/tw5.com/tiddlers/concepts/Cascades.tid +1 -0
- package/editions/tw5.com/tiddlers/concepts/Customizing EditTemplate Field Rendering.tid +31 -0
- package/editions/tw5.com/tiddlers/concepts/Field Editor Cascade.tid +17 -0
- package/editions/tw5.com/tiddlers/concepts/Filters.tid +15 -10
- package/editions/tw5.com/tiddlers/concepts/Macros.tid +1 -3
- package/editions/tw5.com/tiddlers/concepts/Pragma.tid +2 -2
- package/editions/tw5.com/tiddlers/concepts/TiddlerFields.tid +2 -1
- package/editions/tw5.com/tiddlers/demonstrations/Alice in Wonderland.tid +3707 -4
- package/editions/tw5.com/tiddlers/demonstrations/Apple.tid +6 -1
- package/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid +1 -0
- package/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Template.tid +1 -0
- package/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/TiddlerTemplateFilter.tid +1 -0
- package/editions/tw5.com/tiddlers/features/Importing Tiddlers.tid +1 -1
- package/editions/tw5.com/tiddlers/features/Modals.tid +2 -1
- package/editions/tw5.com/tiddlers/filters/Filter Operators.tid +9 -5
- package/editions/tw5.com/tiddlers/filters/all.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/butlast.tid +3 -1
- package/editions/tw5.com/tiddlers/filters/examples/butlast.tid +4 -3
- package/editions/tw5.com/tiddlers/filters/examples/insertbefore Operator (Examples).tid +28 -0
- package/editions/tw5.com/tiddlers/filters/examples/lookup Operator (Examples).tid +5 -0
- package/editions/tw5.com/tiddlers/filters/examples/prefix.tid +4 -3
- package/editions/tw5.com/tiddlers/filters/examples/removeprefix.tid +2 -1
- package/editions/tw5.com/tiddlers/filters/examples/removesuffix.tid +2 -3
- package/editions/tw5.com/tiddlers/filters/examples/rest.tid +4 -3
- package/editions/tw5.com/tiddlers/filters/examples/search.tid +6 -1
- package/editions/tw5.com/tiddlers/filters/examples/sortan.tid +5 -1
- package/editions/tw5.com/tiddlers/filters/examples/suffix.tid +3 -2
- package/editions/tw5.com/tiddlers/filters/insertbefore Operator.tid +21 -5
- package/editions/tw5.com/tiddlers/filters/lookup Operator.tid +28 -10
- package/editions/tw5.com/tiddlers/filters/prefix.tid +17 -2
- package/editions/tw5.com/tiddlers/filters/removeprefix.tid +18 -3
- package/editions/tw5.com/tiddlers/filters/removesuffix.tid +18 -3
- package/editions/tw5.com/tiddlers/filters/search.tid +10 -9
- package/editions/tw5.com/tiddlers/filters/sha256 Operator.tid +18 -0
- package/editions/tw5.com/tiddlers/filters/subfilter Operator.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/suffix.tid +17 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Cascade Filter Run Prefix.tid +2 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Named Filter Run Prefix.tid +1 -1
- package/editions/tw5.com/tiddlers/hellothere/HelloThere.tid +3 -3
- package/editions/tw5.com/tiddlers/howtos/Concatenating text and variables using macro substitution.tid +4 -14
- package/editions/tw5.com/tiddlers/images/New Release Banner.png +0 -0
- package/editions/tw5.com/tiddlers/macros/list-links-draggable Macro.tid +1 -1
- package/editions/tw5.com/tiddlers/messages/SampleWindowTemplate.tid +2 -2
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-close-all-windows.tid +20 -0
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-close-window.tid +39 -0
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-download-file.tid +6 -1
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-open-window.tid +16 -12
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-relink-tiddler.tid +26 -0
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-rename-tiddler.tid +4 -2
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-scroll.tid +3 -0
- package/editions/tw5.com/tiddlers/plugins/Highlight Plugin.tid +3 -1
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.1.21.tid +6 -0
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.1.22.tid +6 -0
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.1.23.tid +6 -0
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.0.tid +6 -0
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.1.tid +6 -0
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.2.tid +162 -0
- package/editions/tw5.com/tiddlers/releasenotes/Releases.tid +4 -2
- package/editions/tw5.com/tiddlers/saving/Saving on Browser with the File System Access API.tid +21 -0
- package/editions/tw5.com/tiddlers/saving/Saving on TidGi.tid +26 -0
- package/editions/tw5.com/tiddlers/saving/Saving via WebDAV.tid +3 -1
- package/editions/tw5.com/tiddlers/saving/Saving with Polly.tid +29 -0
- package/editions/tw5.com/tiddlers/system/doc-macros.tid +25 -1
- package/editions/tw5.com/tiddlers/system/doc-styles.tid +5 -1
- package/editions/tw5.com/tiddlers/system/download-empty.tid +1 -0
- package/editions/tw5.com/tiddlers/system/operator-macros.tid +4 -2
- package/editions/tw5.com/tiddlers/system/operator-template.tid +6 -3
- package/editions/tw5.com/tiddlers/system/style-guide-macros.tid +5 -1
- package/editions/tw5.com/tiddlers/system/variable-macros.tid +4 -2
- package/editions/tw5.com/tiddlers/system/wikitext-macros.tid +17 -3
- package/editions/tw5.com/tiddlers/webserver/Using HTTPS.tid +17 -2
- package/editions/tw5.com/tiddlers/webserver/WebServer API_ Get All Tiddlers.tid +1 -1
- package/editions/tw5.com/tiddlers/webserver/WebServer Authorization.tid +15 -3
- package/editions/tw5.com/tiddlers/webserver/WebServer Parameter_ admin.tid +8 -0
- package/editions/tw5.com/tiddlers/webserver/WebServer Parameter_ required-plugins.tid +8 -0
- package/editions/tw5.com/tiddlers/webserver/WebServer Parameter_ tls-passphrase.tid +10 -0
- package/editions/tw5.com/tiddlers/widgets/$__editions_tw5.com_widget-examples_qualify-transcluded.tid +14 -0
- package/editions/tw5.com/tiddlers/widgets/DraggableWidget.tid +7 -3
- package/editions/tw5.com/tiddlers/widgets/EditTextWidget.tid +1 -1
- package/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid +7 -6
- package/editions/tw5.com/tiddlers/widgets/ImageWidget.tid +9 -1
- package/editions/tw5.com/tiddlers/widgets/LinkCatcherWidget.tid +2 -1
- package/editions/tw5.com/tiddlers/widgets/MacroCallWidget.tid +3 -1
- package/editions/tw5.com/tiddlers/widgets/MessageCatcherWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/QualifyWidget.tid +39 -0
- package/editions/tw5.com/tiddlers/widgets/TranscludeWidget.tid +7 -6
- package/editions/tw5.com/tiddlers/widgets/ViewWidget.tid +26 -8
- package/editions/tw5.com/tiddlers/widgets/WikifyWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/wikitext/HTML in WikiText.tid +30 -4
- package/editions/tw5.com/tiddlers/wikitext/Images in WikiText.tid +3 -3
- package/editions/tw5.com/tiddlers/wikitext/Linking in WikiText.tid +44 -1
- package/editions/tw5.com/tiddlers/wikitext/Macro Calls in WikiText.tid +3 -3
- package/editions/tw5.com/tiddlers/wikitext/Transclusion in WikiText.tid +2 -1
- package/editions/tw5.com/tiddlers/wikitext/Widgets in WikiText.tid +3 -3
- package/editions/tw5.com/tiddlers/wikitext/parser/Block Mode WikiText (Examples).tid +51 -0
- package/editions/tw5.com/tiddlers/wikitext/parser/Block Mode WikiText.tid +35 -0
- package/editions/tw5.com/tiddlers/wikitext/parser/Inline Mode WikiText.tid +26 -0
- package/editions/tw5.com/tiddlers/wikitext/parser/Places where the parser ignores WikiText.tid +14 -0
- package/editions/tw5.com/tiddlers/wikitext/parser/WikiText Parser Modes.tid +16 -0
- package/editions/tw5.com/tiddlers/wikitext/parser/WikiText parser mode transitions.tid +59 -0
- package/editions/tw5.com/tiddlers/wikitext/parser/WikiText parser mode_ HTML examples.tid +72 -0
- package/editions/tw5.com/tiddlers/wikitext/parser/WikiText parser mode_ macro examples.tid +55 -0
- package/editions/tw5.com/tiddlers/wikitext/parser/WikiText parser mode_ transclusion examples.tid +56 -0
- package/editions/tw5.com/tiddlers/wikitext/parser/table-example.tid +8 -0
- package/languages/de-DE/ControlPanel.multids +17 -0
- package/languages/de-DE/Fields.multids +6 -5
- package/languages/de-DE/SideBar.multids +1 -0
- package/languages/pl-PL/ControlPanel.multids +15 -2
- package/languages/zh-Hans/ControlPanel.multids +2 -0
- package/languages/zh-Hans/Fields.multids +4 -2
- package/languages/zh-Hans/Misc.multids +1 -1
- package/languages/zh-Hant/ControlPanel.multids +2 -0
- package/languages/zh-Hant/Fields.multids +4 -2
- package/languages/zh-Hant/Misc.multids +1 -1
- package/license +1 -1
- package/licenses/cla-individual.md +13 -1
- package/package.json +5 -3
- package/plugins/tiddlywiki/dynannotate/examples/viewtemplate.tid +3 -4
- package/plugins/tiddlywiki/highlight/files/default.min.css +9 -0
- package/plugins/tiddlywiki/highlight/files/highlight.min.js +1401 -0
- package/plugins/tiddlywiki/highlight/files/tiddlywiki.files +2 -2
- package/plugins/tiddlywiki/highlight/highlightblock.js +27 -21
- package/plugins/tiddlywiki/highlight/plugin.info +1 -1
- package/plugins/tiddlywiki/highlight/readme.tid +18 -47
- package/plugins/tiddlywiki/highlight/styles.tid +10 -5
- package/plugins/tiddlywiki/highlight/usage.tid +48 -1
- package/plugins/tiddlywiki/highlight-legacy/TypeMappings.multids +8 -0
- package/plugins/tiddlywiki/{highlight → highlight-legacy}/files/default.css +0 -0
- package/plugins/tiddlywiki/{highlight → highlight-legacy}/files/highlight.pack.js +0 -0
- package/plugins/tiddlywiki/highlight-legacy/files/tiddlywiki.files +22 -0
- package/plugins/tiddlywiki/highlight-legacy/highlightblock.js +44 -0
- package/plugins/tiddlywiki/highlight-legacy/license.tid +27 -0
- package/plugins/tiddlywiki/highlight-legacy/plugin.info +7 -0
- package/plugins/tiddlywiki/highlight-legacy/readme.tid +65 -0
- package/plugins/tiddlywiki/highlight-legacy/styles.tid +82 -0
- package/plugins/tiddlywiki/highlight-legacy/usage.tid +28 -0
- package/plugins/tiddlywiki/internals/editpreviews/raw.tid +1 -0
- package/plugins/tiddlywiki/markdown/config_renderWikiTextPragma.tid +1 -1
- package/plugins/tiddlywiki/markdown/wrapper.js +33 -22
- package/plugins/tiddlywiki/menubar/menu.tid +1 -1
- package/readme.md +2 -2
- package/themes/tiddlywiki/snowwhite/base.tid +2 -1
- package/themes/tiddlywiki/vanilla/base.tid +13 -3
- package/themes/tiddlywiki/vanilla/sticky.tid +1 -0
- package/editions/fr-FR/tiddlers/$__core_ui_ViewTemplate_title.tid +0 -46
- package/editions/fr-FR/tiddlers/Images_in_WikiText.tid +0 -48
- package/editions/fr-FR/tiddlers/ImportTiddlers.tid +0 -14
- package/editions/fr-FR/tiddlers/Sharing_your_tiddlers_with_others.tid +0 -16
- package/plugins/tiddlywiki/highlight/howto.tid +0 -10
@@ -1,6 +1,11 @@
|
|
1
1
|
created: 20180222072026299
|
2
2
|
list: [[Apple 6]] [[Apple 7]] [[Apple 8]] [[Apple 9]] [[Apple 10]] [[Apple 20]] [[Apple 30]] [[Apple 100]]
|
3
|
-
modified:
|
3
|
+
modified: 20220227210835979
|
4
4
|
tags: Demonstrations
|
5
5
|
title: Apple
|
6
6
|
|
7
|
+
<<.this-is-operator-example>>
|
8
|
+
|
9
|
+
It has a <<.field list>> field containing the following items:
|
10
|
+
|
11
|
+
<<list-links "[list[]]">>
|
@@ -22,5 +22,5 @@ Most files are imported as individual tiddlers. The exceptions are:
|
|
22
22
|
|
23
23
|
!! Importing content from other ~TiddlyWiki browser windows
|
24
24
|
|
25
|
-
Tiddlers can be imported from other ~TiddlyWiki browser windows via [[Drag and Drop]]. Drag a
|
25
|
+
Tiddlers can be imported from other ~TiddlyWiki browser windows via [[Drag and Drop]]. Drag a TiddlyWiki internal link or a tag from one ~TiddlyWiki browser window to another. Dragging an internal link will import a single tiddler while dragging a tag pill will import all of the tiddlers that carry that tag.
|
26
26
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20160107225427489
|
2
|
-
modified:
|
2
|
+
modified: 20211221102625141
|
3
3
|
tags: Features
|
4
4
|
title: Modals
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -12,6 +12,7 @@ The tiddler to be displayed can contain the following optional fields that are u
|
|
12
12
|
|footer|The footer text for the modal|
|
13
13
|
|subtitle|The subtitle text for a modal, displayed in a `h3` html tag|
|
14
14
|
|class|An additional class to apply to the modal wrapper|
|
15
|
+
|help|An optional external link that will be displayed at the left of the footer with the text "Help"|
|
15
16
|
|
16
17
|
Note that the footer and subtitle fields are not limited to plain text, and wiki text features such as widgets and transclusions can be used as well.
|
17
18
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20140410103123179
|
2
|
-
modified:
|
2
|
+
modified: 20211217141224284
|
3
3
|
tags: Filters
|
4
4
|
title: Filter Operators
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -10,18 +10,21 @@ type: text/vnd.tiddlywiki
|
|
10
10
|
<td>{{!!op-purpose}}</td>
|
11
11
|
<td align="center"><$list filter="[all[current]tag[Common Operators]]">✓</$list></td>
|
12
12
|
<td align="center"><$list filter="[all[current]tag[Negatable Operators]]">`!`</$list></td>
|
13
|
+
<td align="center"><$list filter="[all[current]tag[Selection Constructors]!tag[Selection Constructors: Conditional]]">`C`</$list><$list filter="[all[current]tag[Selection Constructors]tag[Selection Constructors: Conditional]]">`C?`</$list></td>
|
13
14
|
</tr></$list>
|
14
15
|
\end
|
15
16
|
|
16
17
|
\define .group-heading(_)
|
17
|
-
<tr class="doc-table-subheading"><th colspan="
|
18
|
+
<tr class="doc-table-subheading"><th colspan="5" align="center">$_$</th></tr>
|
18
19
|
\end
|
19
20
|
|
20
21
|
A <<.def "filter operator">> is a predefined keyword attached to an individual [[step|Filter Step]] of a [[filter|Filters]]. It defines the particular action of that step.
|
21
22
|
|
22
23
|
''Important:'' Each first [[step|Filter Step]] of a [[filter run|Filter Run]] not given any input titles receives the output of <$link to="all Operator">[all[tiddlers]]</$link> as its input.
|
23
24
|
|
24
|
-
The following table lists all core operators, the most common ones marked ✓. The
|
25
|
+
The following table lists all core operators, the most common ones marked ✓. The `!` column indicates whether an operator allows ''negation'' using the <$link to="Filter Step"><code>!</code> prefix</$link>. For specifics as to each operator's negated output please refer to its documentation.
|
26
|
+
|
27
|
+
Most steps process the [[selection of titles|Title Selection]] that are supplied as their input, but a few [[construct an entirely new selection|Selection Constructors]] instead, as indicated by the last column. A `C?` indicates it might construct a new selection, depending on usage. For specifics as to each operator's selection creation please refer to its documentation.
|
25
28
|
|
26
29
|
<table>
|
27
30
|
<tr>
|
@@ -29,6 +32,7 @@ The following table lists all core operators, the most common ones marked ✓. T
|
|
29
32
|
<th align="left">Purpose</th>
|
30
33
|
<th align="center">✓</th>
|
31
34
|
<th align="center">`!`</th>
|
35
|
+
<th align="center">`C`</th>
|
32
36
|
</tr>
|
33
37
|
<<.operator-rows "[tag[Filter Operators]!tag[Order Operators]!tag[Mathematics Operators]!tag[String Operators]!tag[Tag Operators]!tag[Special Operators]sort[]]">>
|
34
38
|
<<.group-heading "Order Operators">>
|
@@ -45,6 +49,6 @@ The following table lists all core operators, the most common ones marked ✓. T
|
|
45
49
|
<<.operator-rows "[tag[Filter Operators]!tag[Order Operators]!tag[Mathematics Operators]!tag[String Operators]!tag[Tag Operators]tag[Special Operators]sort[]]">>
|
46
50
|
</table>
|
47
51
|
|
48
|
-
A typical step is written as `[operator[parameter]]`, although not all of the operators need a [[parameter|Filter Parameter]].
|
52
|
+
A typical step is written as `[operator[parameter]]`, although not all of the operators need a [[parameter|Filter Parameter]].
|
49
53
|
|
50
|
-
|
54
|
+
For the exact rules, see [[Filter Syntax]].
|
@@ -1,11 +1,11 @@
|
|
1
1
|
caption: all
|
2
2
|
created: 20140410103123179
|
3
|
-
modified:
|
3
|
+
modified: 20211217135719266
|
4
4
|
op-input: ignored, unless the parameter is empty
|
5
5
|
op-output: the titles that belong to all the specified categories
|
6
6
|
op-parameter: zero or more categories
|
7
7
|
op-purpose: find all titles of a fundamental category
|
8
|
-
tags: [[Filter Operators]] [[Common Operators]] [[Selection Constructors]]
|
8
|
+
tags: [[Filter Operators]] [[Common Operators]] [[Selection Constructors]] [[Selection Constructors: Conditional]]
|
9
9
|
title: all Operator
|
10
10
|
type: text/vnd.tiddlywiki
|
11
11
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20140410103123179
|
2
|
-
modified:
|
2
|
+
modified: 20220226043344258
|
3
3
|
tags: [[Filter Operators]] [[Order Operators]]
|
4
4
|
title: butlast Operator
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -10,4 +10,6 @@ op-parameter: an integer, defaulting to 1
|
|
10
10
|
op-parameter-name: N
|
11
11
|
op-output: all but the last <<.place N>> input titles
|
12
12
|
|
13
|
+
<<.from-version "5.2.2">> The <<.op butlast>> operator returns the input list unchanged if <<.place N>> is 0. This is consistent with the behaviour of the [[rest Operator]].
|
14
|
+
|
13
15
|
<<.operator-examples "butlast">>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20150118134611000
|
2
|
-
modified:
|
2
|
+
modified: 20220226043344258
|
3
3
|
tags: [[butlast Operator]] [[Operator Examples]]
|
4
4
|
title: butlast Operator (Examples)
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -7,5 +7,6 @@ type: text/vnd.tiddlywiki
|
|
7
7
|
<<.using-days-of-week>>
|
8
8
|
|
9
9
|
<<.operator-example 1 "[list[Days of the Week]butlast[]]">>
|
10
|
-
<<.operator-example 2 "[list[Days of the Week]butlast[
|
11
|
-
<<.operator-example 3 "
|
10
|
+
<<.operator-example 2 "[list[Days of the Week]butlast[0]]">>
|
11
|
+
<<.operator-example 3 "[list[Days of the Week]butlast[2]]">>
|
12
|
+
<<.operator-example 4 "A B C D E F G H I J K L M +[butlast[7]]">>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
created: 20220223004441865
|
2
|
+
modified: 20220223004441865
|
3
|
+
tags: [[Operator Examples]] [[insertbefore Operator]]
|
4
|
+
title: insertbefore Operator (Examples)
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
\define before-title() Friday
|
8
|
+
\define missing-title() Yesterday
|
9
|
+
\define display-variable(name)
|
10
|
+
''<$text text=<<__name__>>/>'': <code><$text text={{{ [<__name__>getvariable[]] }}}/></code>
|
11
|
+
\end
|
12
|
+
|
13
|
+
These examples use the following predefined variables:
|
14
|
+
|
15
|
+
* <<display-variable before-title>>
|
16
|
+
* <<display-variable missing-title>>
|
17
|
+
|
18
|
+
<<.operator-example 1 """[list[Days of the Week]insertbefore[Today]]""">>
|
19
|
+
|
20
|
+
<<.operator-example 2 """[list[Days of the Week]insertbefore[Today],[Tuesday]]""">>
|
21
|
+
|
22
|
+
<<.operator-example 3 """[list[Days of the Week]insertbefore[Today],<before-title>]""">>
|
23
|
+
|
24
|
+
<<.operator-example 4 """[list[Days of the Week]insertbefore:before-title[Today]]""">>
|
25
|
+
|
26
|
+
<<.operator-example 5 """[list[Days of the Week]insertbefore[Today],<missing-title>]""">>
|
27
|
+
|
28
|
+
<<.operator-example 6 """[list[Days of the Week]insertbefore:missing-title[Today]]""">>
|
@@ -6,3 +6,8 @@ type: text/vnd.tiddlywiki
|
|
6
6
|
|
7
7
|
<<.operator-example 1 "[all[shadows+tiddlers]tag[$:/tags/PageControls]lookup[$:/config/PageControlButtons/Visibility/]]" "Retrieve the visibility status of each page control button">>
|
8
8
|
<<.operator-example 2 "[all[shadows+tiddlers]tag[$:/tags/PageControls]lookup:show[$:/config/PageControlButtons/Visibility/]]" "Retrieve the visibility status of each page control button, this time with a default value">>
|
9
|
+
<<.operator-example 3 "[all[tiddlers]has[plugin-type]removeprefix[$:/plugins/tiddlywiki/]lookup:missing-description:field[$:/plugins/tiddlywiki/],[description]]" "Retrieve the description of all plugin-tiddlers that are in the `$:/plugins/tiddlywiki/` namespace.">>
|
10
|
+
<<.operator-example 4 "OriginalTiddlerPaths +[lookup:missing-index:index[$:/config/],[HelloThere]]" "Lookup the original tiddler path on disk for the [[Hello There]] tiddler.">>
|
11
|
+
<<.operator-example 5 "OriginalTiddlerPaths +[lookup:missing-index:index[$:/config/],[MissingTiddler]]" "Lookup the original tiddler path on disk for the [[MissingTiddler]] tiddler.">>
|
12
|
+
<<.operator-example 6 "HistoryList MissingHistoryList +[lookup:missing-0:index[$:/]]" "Retrieve index `0` from the `$:/HistoryList` and `$:/MissingHistoryList`.">>
|
13
|
+
<<.operator-example 7 "OriginalTiddlerPaths MissingTiddlerPaths +[lookup:missing-tiddler:index[$:/config/],[$:/key-test]]" "Retrieve index `$:/key-test` from `$:/config/OriginalTiddlerPaths` and `$:/config/MissingTiddlerPaths`.">>
|
@@ -1,9 +1,10 @@
|
|
1
1
|
created: 20150123223129000
|
2
|
-
modified:
|
2
|
+
modified: 20220218023400000
|
3
3
|
tags: [[prefix Operator]] [[Operator Examples]]
|
4
4
|
title: prefix Operator (Examples)
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
7
7
|
<<.operator-example 1 "[tag[task]!prefix[Go]]">>
|
8
|
-
<<.operator-example 2 "[prefix[
|
9
|
-
<<.operator-example 3 "[prefix[$:/]]"
|
8
|
+
<<.operator-example 2 "[tag[task]!prefix:caseinsensitive[go]]">>
|
9
|
+
<<.operator-example 3 "[prefix[$:/languages/]]">>
|
10
|
+
<<.operator-example 4 "[prefix[$:/]]" "same as `[is[system]]`">>
|
@@ -1,7 +1,8 @@
|
|
1
1
|
created: 20150118132851000
|
2
|
-
modified:
|
2
|
+
modified: 20220218023400000
|
3
3
|
tags: [[removeprefix Operator]] [[Operator Examples]]
|
4
4
|
title: removeprefix Operator (Examples)
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
7
7
|
<<.operator-example 1 "[[My Cat]] [[Your Garden]] [[My Favourite Armchair]] +[removeprefix[My ]]">>
|
8
|
+
<<.operator-example 2 "[[My Cat]] [[Your Garden]] [[My Favourite Armchair]] +[removeprefix:caseinsensitive[my ]]">>
|
@@ -1,9 +1,8 @@
|
|
1
1
|
created: 20150118132851000
|
2
|
-
modified:
|
2
|
+
modified: 20220218023400000
|
3
3
|
tags: [[removesuffix Operator]] [[Operator Examples]]
|
4
4
|
title: removesuffix Operator (Examples)
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
7
7
|
<<.operator-example 1 "SIMPLEX Googolplex Complex +[removesuffix[plex]]">>
|
8
|
-
|
9
|
-
|
8
|
+
<<.operator-example 2 "SIMPLEX Googolplex Complex +[removesuffix:caseinsensitive[plex]]">>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20150118134611000
|
2
|
-
modified:
|
2
|
+
modified: 20220226043344258
|
3
3
|
tags: [[rest Operator]] [[Operator Examples]]
|
4
4
|
title: rest Operator (Examples)
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -7,5 +7,6 @@ type: text/vnd.tiddlywiki
|
|
7
7
|
<<.using-days-of-week>>
|
8
8
|
|
9
9
|
<<.operator-example 1 "[list[Days of the Week]rest[]]">>
|
10
|
-
<<.operator-example 2 "[list[Days of the Week]rest[
|
11
|
-
<<.operator-example 3 "
|
10
|
+
<<.operator-example 2 "[list[Days of the Week]rest[0]]">>
|
11
|
+
<<.operator-example 3 "[list[Days of the Week]rest[3]]">>
|
12
|
+
<<.operator-example 4 "Z Y X W V U T S R Q P O +[rest[5]]">>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20150124104508000
|
2
|
-
modified:
|
2
|
+
modified: 20211129122755444
|
3
3
|
tags: [[search Operator]] [[Operator Examples]]
|
4
4
|
title: search Operator (Examples)
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -13,3 +13,8 @@ type: text/vnd.tiddlywiki
|
|
13
13
|
<$macrocall $name=".operator-example" n="7" eg="[!is[system]search::literal[the first]]" ie="non-system tiddlers containing a case-insensitive match for the literal phrase <<.word 'the first'>>"/>
|
14
14
|
<$macrocall $name=".operator-example" n="8" eg="[!is[system]search::literal,casesensitive[The first]]" ie="non-system tiddlers containing a case-sensitive match for the literal phrase <<.word 'The first'>>"/>
|
15
15
|
<$macrocall $name=".operator-example" n="9" eg="[search:caption,description:casesensitive,words[arch]]" ie="any tiddlers containing a case-sensitive match for the word `arch` in their <<.field caption>> or <<.field description>> fields"/>
|
16
|
+
<$macrocall $name=".operator-example" n="10" eg="[search:tags:some[how test]]" ie="any tiddlers containing at least 1 of the search terms in the field: <<.field tags>>"/>
|
17
|
+
<$macrocall $name=".operator-example" n="11" eg="[search:tags:some,casesensitive[how test]]" ie="any tiddlers containing at least 1 of the case-sensitive search terms in the field: <<.field tags>>"/>
|
18
|
+
<$macrocall $name=".operator-example" n="12" eg="[search:tags,title:some,anchored[how test]]" ie="any tiddlers containing at least 1 of anchored search terms in the fields: <<.field tags>> and <<.field title>>"/>
|
19
|
+
|
20
|
+
|
@@ -1,11 +1,15 @@
|
|
1
1
|
created: 20180222071947788
|
2
|
-
modified:
|
2
|
+
modified: 20220227210921516
|
3
3
|
tags: [[sortan Operator]] [[Operator Examples]]
|
4
4
|
title: sortan Operator (Examples)
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
7
7
|
These examples make use of the [[Apple]] tiddler.
|
8
8
|
|
9
|
+
----
|
10
|
+
|
11
|
+
Try the following example with `sort` instead of `sortan`
|
12
|
+
|
9
13
|
<<.operator-example 1 "[list[Apple]sortan[]]">>
|
10
14
|
<<.operator-example 2 "[list[Apple]!sortan[]]">>
|
11
15
|
<<.operator-example 3 "App-10-A App-9-B App-10-B App-9-A +[sortan[]]">>
|
@@ -1,8 +1,9 @@
|
|
1
1
|
created: 20150124113652000
|
2
|
-
modified:
|
2
|
+
modified: 20220218023400000
|
3
3
|
tags: [[suffix Operator]] [[Operator Examples]]
|
4
4
|
title: suffix Operator (Examples)
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
7
7
|
<<.operator-example 1 "[suffix[.jpg]]">>
|
8
|
-
<<.operator-example 2 "[
|
8
|
+
<<.operator-example 2 "[suffix:caseinsensitive[.JPG]]">>
|
9
|
+
<<.operator-example 3 "[tag[task]!suffix[ing]]">>
|
@@ -1,15 +1,31 @@
|
|
1
1
|
caption: insertbefore
|
2
2
|
created: 20170406090122441
|
3
|
-
modified:
|
3
|
+
modified: 20220223004441865
|
4
4
|
op-input: a [[selection of titles|Title Selection]]
|
5
5
|
op-output: the input tiddler list with the new entry inserted
|
6
|
-
op-parameter: the
|
7
|
-
op-parameter-name: T
|
6
|
+
op-parameter: <<.from-version "5.2.2">> the <<.op insertbefore>> operator accepts 1 or 2 parameters, see below for details
|
8
7
|
op-purpose: insert an item <<.place T>> into a list immediately before an item <<.place B>>
|
9
|
-
op-suffix: the name of a variable containing the title of the tiddler before which this one should be inserted
|
10
|
-
op-suffix-name: B
|
8
|
+
op-suffix: (optional) the name of a variable containing the title of the tiddler before which this one should be inserted
|
11
9
|
tags: [[Filter Operators]] [[Order Operators]] [[Listops Operators]]
|
12
10
|
title: insertbefore Operator
|
13
11
|
type: text/vnd.tiddlywiki
|
14
12
|
|
13
|
+
<<.from-version "5.2.2">>
|
14
|
+
|
15
|
+
The <<.op insertbefore>> operator requires at least one parameter which specifies the title to insert into the input list. A second parameter can be used to specify the title before which the new title should be inserted.
|
16
|
+
|
17
|
+
```
|
18
|
+
insertbefore:<before-title-variable>[<title>],[<before-title>]
|
19
|
+
```
|
20
|
+
|
21
|
+
* ''title'' : a title <<.place T>> to insert in the input list.
|
22
|
+
* ''before-title'' : (optional). Insert <<.place T>> before this title <<.place B>> in the input list.
|
23
|
+
* ''before-title-variable'' : (optional). The name of a variable specifying <<.place B>> instead of the `before-title` parameter.
|
24
|
+
|
15
25
|
If the item <<.place B>> isn't present in the input list then the new item is inserted at the end of the list.
|
26
|
+
|
27
|
+
<<.tip "Either [[parameter|Filter Parameter]] can be a string, a text reference or a variable">>
|
28
|
+
|
29
|
+
<<.tip "If <<.place B>> is specified as both a suffix and a parameter, the parameter takes precedence">>
|
30
|
+
|
31
|
+
<<.operator-examples "insertbefore">>
|
@@ -1,24 +1,42 @@
|
|
1
1
|
caption: lookup
|
2
2
|
created: 20170907103639431
|
3
|
-
modified:
|
3
|
+
modified: 20210116081305739
|
4
4
|
op-input: a [[selection of titles|Title Selection]]
|
5
|
-
op-output: the lookup values corresponding to each
|
6
|
-
op-parameter: prefix applied to input titles to yield title of lookup tiddler from which value is retrieved
|
7
|
-
op-parameter-name: P
|
8
|
-
op-purpose: applies a prefix to each input title to yield the title of a tiddler from which the final value is retrieved
|
9
|
-
op-suffix: the default value to be used for missing lookups
|
10
|
-
op-suffix-name: D
|
5
|
+
op-output: the lookup values corresponding to each lookup tiddler
|
6
|
+
op-parameter: prefix applied to input titles to yield title of lookup tiddler from which value is retrieved. Now accepts 1 or 2 parameters, see below for details
|
7
|
+
op-parameter-name: P, T
|
8
|
+
op-purpose: applies a prefix to each input title to yield the title of a tiddler from which the final value is retrieved. With a single parameter, the default field is "text" and the default index is "0". If a second parameter is provided, that becomes the target field or index.
|
9
|
+
op-suffix: the default value to be used for missing lookups. This operator can now accept a second suffix of `:index`, see below for details
|
10
|
+
op-suffix-name: D, I
|
11
11
|
tags: [[Filter Operators]]
|
12
12
|
title: lookup Operator
|
13
13
|
type: text/vnd.tiddlywiki
|
14
14
|
|
15
15
|
<<.from-version "5.1.15">>
|
16
16
|
|
17
|
-
The action of this operator is as follows:
|
17
|
+
The action of this operator is as follows with 1 parameter:
|
18
18
|
|
19
19
|
* Apply the specified prefix to each input tiddler title, yielding a new list of tiddler titles
|
20
|
-
* Transclude the value of each of those tiddlers
|
21
|
-
** Substitute the default value for missing or empty
|
20
|
+
* Transclude the value of the `text` field each of those tiddlers
|
21
|
+
** Substitute the default value for missing or empty values
|
22
|
+
* Return the list of values
|
23
|
+
|
24
|
+
<<.from-version "5.2.2">>
|
25
|
+
|
26
|
+
The use of the `:index` second suffix changes the default lookup location from field: `text` to index: `0`. This is used if no 2nd parameter is provided.
|
27
|
+
|
28
|
+
The action of this operator is as follows with 2 parameters:
|
29
|
+
|
30
|
+
If there are two parameters provided, use the second parameter as the target field or index.
|
31
|
+
|
32
|
+
<<.note """If there is only one parameter given, the filter checks for a second suffix equal to "index". If this suffix is found, the default target index is "0".
|
33
|
+
In all other cases, the default target field is "text".""">>
|
34
|
+
|
35
|
+
Then:
|
36
|
+
|
37
|
+
* Apply the specified prefix to each input tiddler title, yielding a new list of tiddler titles
|
38
|
+
* Transclude the value of the target field or index
|
39
|
+
** Substitute the default value for missing or empty values
|
22
40
|
* Return the list of values
|
23
41
|
|
24
42
|
<<.operator-examples "lookup">>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20140410103123179
|
2
|
-
modified:
|
2
|
+
modified: 20220218023400000
|
3
3
|
tags: [[Filter Operators]] [[String Operators]] [[Negatable Operators]]
|
4
4
|
title: prefix Operator
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -10,7 +10,22 @@ op-parameter: a string of characters
|
|
10
10
|
op-parameter-name: S
|
11
11
|
op-output: those input titles that start with <<.place S>>
|
12
12
|
op-neg-output: those input tiddlers that do <<.em not>> start with <<.place S>>
|
13
|
+
op-suffix: the <<.op prefix>> operator uses a rich suffix, see below for details
|
13
14
|
|
14
|
-
<<.
|
15
|
+
<<.from-version "5.2.2">>
|
16
|
+
|
17
|
+
The <<.op prefix>> operator uses an extended syntax that permits multiple flags to be passed:
|
18
|
+
|
19
|
+
```
|
20
|
+
[prefix:<flag list>[<operand>]]
|
21
|
+
```
|
22
|
+
|
23
|
+
* ''flag list'': a comma delimited list of flags
|
24
|
+
* ''operand'': filter operand
|
25
|
+
|
26
|
+
The available flags are:
|
27
|
+
|
28
|
+
* ''casesensitive'': (default), this flag forces a case-sensitive match, where upper and lower case letters are considered different
|
29
|
+
* ''caseinsensitive'': overrides the default so that upper and lower case letters are considered identical for matching purposes
|
15
30
|
|
16
31
|
<<.operator-examples "prefix">>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20140410103123179
|
2
|
-
modified:
|
2
|
+
modified: 20220218023400000
|
3
3
|
tags: [[Filter Operators]] [[String Operators]]
|
4
4
|
title: removeprefix Operator
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -9,9 +9,24 @@ op-input: a [[selection of titles|Title Selection]]
|
|
9
9
|
op-parameter: a string of characters
|
10
10
|
op-parameter-name: S
|
11
11
|
op-output: those input titles that start with <<.place S>>, but with those characters discarded
|
12
|
-
|
13
|
-
<<.s-matching-is-case-sensitive>>
|
12
|
+
op-suffix: the <<.op removeprefix>> operator uses a rich suffix, see below for details
|
14
13
|
|
15
14
|
<<.tip " This filters out input titles that do not start with S. For removing S without filtering out input titles that don't start with S, see [[trim|trim Operator]].">>
|
16
15
|
|
16
|
+
<<.from-version "5.2.2">>
|
17
|
+
|
18
|
+
The <<.op removeprefix>> operator uses an extended syntax that permits multiple flags to be passed:
|
19
|
+
|
20
|
+
```
|
21
|
+
[removeprefix:<flag list>[<operand>]]
|
22
|
+
```
|
23
|
+
|
24
|
+
* ''flag list'': a comma delimited list of flags
|
25
|
+
* ''operand'': filter operand
|
26
|
+
|
27
|
+
The available flags are:
|
28
|
+
|
29
|
+
* ''casesensitive'': (default), this flag forces a case-sensitive match, where upper and lower case letters are considered different
|
30
|
+
* ''caseinsensitive'': overrides the default so that upper and lower case letters are considered identical for matching purposes
|
31
|
+
|
17
32
|
<<.operator-examples "removeprefix">>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20140828133830424
|
2
|
-
modified:
|
2
|
+
modified: 20220218023400000
|
3
3
|
tags: [[Filter Operators]] [[String Operators]]
|
4
4
|
title: removesuffix Operator
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -9,9 +9,24 @@ op-input: a [[selection of titles|Title Selection]]
|
|
9
9
|
op-parameter: a string of characters
|
10
10
|
op-parameter-name: S
|
11
11
|
op-output: those input titles that end with <<.place S>>, but with those characters discarded
|
12
|
-
|
13
|
-
<<.s-matching-is-case-sensitive>>
|
12
|
+
op-suffix: the <<.op removesuffix>> operator uses a rich suffix, see below for details
|
14
13
|
|
15
14
|
<<.tip " This filters out input titles that do not end with S. For removing S without filtering out input titles that don't end with S, see [[trim|trim Operator]].">>
|
16
15
|
|
16
|
+
<<.from-version "5.2.2">>
|
17
|
+
|
18
|
+
The <<.op removesuffix>> operator uses an extended syntax that permits multiple flags to be passed:
|
19
|
+
|
20
|
+
```
|
21
|
+
[removesuffix:<flag list>[<operand>]]
|
22
|
+
```
|
23
|
+
|
24
|
+
* ''flag list'': a comma delimited list of flags
|
25
|
+
* ''operand'': filter operand
|
26
|
+
|
27
|
+
The available flags are:
|
28
|
+
|
29
|
+
* ''casesensitive'': (default), this flag forces a case-sensitive match, where upper and lower case letters are considered different
|
30
|
+
* ''caseinsensitive'': overrides the default so that upper and lower case letters are considered identical for matching purposes
|
31
|
+
|
17
32
|
<<.operator-examples "removesuffix">>
|
@@ -1,15 +1,15 @@
|
|
1
|
+
caption: search
|
1
2
|
created: 20140410103123179
|
2
|
-
modified:
|
3
|
+
modified: 20211129120739275
|
4
|
+
op-input: a [[selection of titles|Title Selection]]
|
5
|
+
op-neg-output: those input tiddlers in which <<.em not>> all of the search terms can be found
|
6
|
+
op-output: those input tiddlers in which <<.em all>> of the search terms can be found in the value of field <<.place F>>
|
7
|
+
op-parameter: one or more search terms, separated by spaces, or a literal search string
|
8
|
+
op-purpose: filter the input by searching tiddler content
|
9
|
+
op-suffix: the <<.op search>> operator uses a rich suffix, see below for details
|
3
10
|
tags: [[Filter Operators]] [[Common Operators]] [[Field Operators]] [[Negatable Operators]]
|
4
11
|
title: search Operator
|
5
12
|
type: text/vnd.tiddlywiki
|
6
|
-
caption: search
|
7
|
-
op-purpose: filter the input by searching tiddler content
|
8
|
-
op-input: a [[selection of titles|Title Selection]]
|
9
|
-
op-suffix: the <<.op search>> operator uses a rich suffix, see below for details
|
10
|
-
op-parameter: one or more search terms, separated by spaces, or a literal search string
|
11
|
-
op-output: those input tiddlers in which <<.em all>> of the search terms can be found in the value of field <<.place F>>
|
12
|
-
op-neg-output: those input tiddlers in which <<.em not>> all of the search terms can be found
|
13
13
|
|
14
14
|
<<.from-version "5.1.18">> The search filter operator was significantly enhanced in 5.1.18. Earlier versions do not support the extended syntax and therefore do not permit searching multiple fields, or the ''literal'' or ''casesensitive'' options.
|
15
15
|
|
@@ -38,7 +38,8 @@ The available flags are:
|
|
38
38
|
** ''literal'': considers the search string to be a literal string, and requires an exact match
|
39
39
|
** ''whitespace'': considers the search string to be a literal string, but will consider all runs of whitespace to be equivalent to a single space. Thus `A B` matches `A B`
|
40
40
|
** ''regexp'': treats the search string as a regular expression. Note that the ''regexp'' option obviates the need for the older <<.olink regexp>> operator.
|
41
|
-
** ''words'': (the default) treats the search string as a list of tokens separated by whitespace, and matches if all of the tokens appear in the string (regardless of ordering and whether there is other text in between)
|
41
|
+
** ''words'': (the default) treats the search string as a list of tokens separated by whitespace, and matches if ''all of the tokens'' appear in the string (regardless of ordering and whether there is other text in between)
|
42
|
+
** ''some'': <<.from-version "5.2.2">> treats the search string as a list of tokens separated by whitespace, and matches if ''at least one'' of the tokens appear in the string
|
42
43
|
* ''casesensitive'': if present, this flag forces a case-sensitive match, where upper and lower case letters are considered different. By default, upper and lower case letters are considered identical for matching purposes.
|
43
44
|
* ''anchored'': <<.from-version "5.1.20">> anchors the search to the start of the string (applies to ''whitespace'', ''literal'' and ''words'' modes)
|
44
45
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
caption: sha256
|
2
|
+
created: 20220129105504961
|
3
|
+
modified: 20220129105504961
|
4
|
+
op-input: a [[selection of titles|Title Selection]]
|
5
|
+
op-output: the base64 encoded sha256 of the input, truncated to the specified length
|
6
|
+
op-parameter: the number of characters to return, up to a maximum of 64
|
7
|
+
op-parameter-name: L
|
8
|
+
op-purpose: apply sha256 hash to a string
|
9
|
+
tags: [[Filter Operators]] [[String Operators]]
|
10
|
+
title: sha256 Operator
|
11
|
+
type: text/vnd.tiddlywiki
|
12
|
+
from-version: 5.1.14
|
13
|
+
|
14
|
+
Hashes are a way of turning strings of arbitrary length into obfuscated strings of fixed length. They are often used in situations where items need to be stored by name but it is inconvenient to allow arbitrary length strings.
|
15
|
+
|
16
|
+
See Wikipedia for details of the [[sha256|https://en.wikipedia.org/wiki/SHA-2]] operation.
|
17
|
+
|
18
|
+
<<.operator-examples "sha256">>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
caption: subfilter
|
2
2
|
created: 20181031175129475
|
3
|
-
modified:
|
3
|
+
modified: 20211217135706478
|
4
4
|
op-input: a [[selection of titles|Title Selection]] passed as input to the subfilter
|
5
5
|
op-neg-input: a [[selection of titles|Title Selection]] passed as input to the subfilter
|
6
6
|
op-neg-output: those input titles that are <<.em not>> returned from the subfilter <<.place S>>
|
@@ -8,7 +8,7 @@ op-output: the [[selection of titles|Title Selection]] returned from the subfilt
|
|
8
8
|
op-parameter: a [[filter expression|Filter Expression]]
|
9
9
|
op-parameter-name: S
|
10
10
|
op-purpose: select titles from the operand interpreted as a [[filter expression|Filter Expression]]
|
11
|
-
tags: [[Filter Operators]] [[Field Operators]] [[Selection Constructors]] [[Negatable Operators]]
|
11
|
+
tags: [[Filter Operators]] [[Field Operators]] [[Selection Constructors]] [[Negatable Operators]] [[Selection Constructors: Conditional]]
|
12
12
|
title: subfilter Operator
|
13
13
|
type: text/vnd.tiddlywiki
|
14
14
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20140828133830424
|
2
|
-
modified:
|
2
|
+
modified: 20220218023400000
|
3
3
|
tags: [[Filter Operators]] [[String Operators]] [[Negatable Operators]]
|
4
4
|
title: suffix Operator
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -10,7 +10,22 @@ op-parameter: a string of characters
|
|
10
10
|
op-parameter-name: S
|
11
11
|
op-output: those input titles that end with <<.place S>>
|
12
12
|
op-neg-output: those input tiddlers that do <<.em not>> end with <<.place S>>
|
13
|
+
op-suffix: the <<.op suffix>> operator uses a rich suffix, see below for details
|
13
14
|
|
14
|
-
<<.
|
15
|
+
<<.from-version "5.2.2">>
|
16
|
+
|
17
|
+
The <<.op suffix>> operator uses an extended syntax that permits multiple flags to be passed:
|
18
|
+
|
19
|
+
```
|
20
|
+
[suffix:<flag list>[<operand>]]
|
21
|
+
```
|
22
|
+
|
23
|
+
* ''flag list'': a comma delimited list of flags
|
24
|
+
* ''operand'': filter operand
|
25
|
+
|
26
|
+
The available flags are:
|
27
|
+
|
28
|
+
* ''casesensitive'': (default), this flag forces a case-sensitive match, where upper and lower case letters are considered different
|
29
|
+
* ''caseinsensitive'': overrides the default so that upper and lower case letters are considered identical for matching purposes
|
15
30
|
|
16
31
|
<<.operator-examples "suffix">>
|
@@ -10,11 +10,11 @@ type: text/vnd.tiddlywiki
|
|
10
10
|
|''input'' |all titles from previous filter runs |
|
11
11
|
|''output''|the input titles as modified by the filters returned by this filter run |
|
12
12
|
|
13
|
-
The filter expression for this filter run is evaluated to return a list of filters. Each input title is then evaluated against each of the filters in turn, and the input title is replaced with the first result of the first filter that returns a non-empty list. If none of the filters return a result for an input title, it is replaced with an empty string.
|
13
|
+
The [[filter expression|Filter Expression]] for this [[filter run|Filter Run]] is evaluated to return a list of filters. Each input title is then evaluated against each of the filters in turn, and the input title is replaced with the first result of the first filter that returns a non-empty list. If none of the filters return a result for an input title, it is replaced with an empty string.
|
14
14
|
|
15
15
|
The following variables are available within the filter run:
|
16
16
|
|
17
17
|
* <<.var currentTiddler>> - the input title
|
18
18
|
* <<.var ..currentTiddler>> - the value of the variable `currentTiddler` outside the filter run.
|
19
19
|
|
20
|
-
[[Examples|Cascade Filter Run Prefix (Examples)]]
|
20
|
+
[[Examples|Cascade Filter Run Prefix (Examples)]]
|
@@ -7,4 +7,4 @@ title: Named Filter Run Prefix
|
|
7
7
|
<$railroad text=<<prefixlist>>/>
|
8
8
|
</$set>
|
9
9
|
|
10
|
-
A named filter run prefix can precede any [[run|Filter Run]] of a [[filter expression|Filter Expression]] in place of a single-character prefix (`+`, `-` and so on). To create a new filter run prefix, create a [[Javascript module|Modules]] with a [[module-type|ModuleType]] of `
|
10
|
+
A named filter run prefix can precede any [[run|Filter Run]] of a [[filter expression|Filter Expression]] in place of a single-character prefix (`+`, `-` and so on). To create a new filter run prefix, create a [[Javascript module|Modules]] with a [[module-type|ModuleType]] of `filterrunprefix`.
|