tiddlywiki 5.2.2 → 5.2.3
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/.github/ISSUE_TEMPLATE/bug_report.yml +67 -0
- package/.github/ISSUE_TEMPLATE/config.yml +8 -0
- package/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md +8 -0
- package/bin/build-site.sh +1 -1
- package/boot/boot.js +1 -1
- package/contributing.md +1 -1
- package/core/language/en-GB/EditTemplate.multids +1 -0
- package/core/language/en-GB/Help/default.tid +4 -1
- package/core/language/en-GB/Help/render.tid +2 -2
- package/core/language/en-GB/SideBar.multids +1 -0
- package/core/modules/commands/render.js +1 -1
- package/core/modules/commands/rendertiddler.js +1 -0
- package/core/modules/commands/rendertiddlers.js +1 -1
- package/core/modules/commands/save.js +56 -42
- package/core/modules/editor/engines/framed.js +3 -1
- package/core/modules/editor/operations/text/prefix-lines.js +2 -2
- package/core/modules/editor/operations/text/wrap-lines.js +27 -10
- package/core/modules/filterrunprefixes/map.js +10 -2
- package/core/modules/filters/insertafter.js +46 -0
- package/core/modules/filters/insertbefore.js +6 -1
- package/core/modules/filters.js +19 -1
- package/core/modules/savers/put.js +11 -7
- package/core/modules/savers/upload.js +1 -1
- package/core/modules/server/server.js +3 -2
- package/core/modules/startup/browser-messaging.js +4 -2
- package/core/modules/startup/story.js +3 -1
- package/core/modules/utils/dom/dom.js +51 -0
- package/core/modules/utils/dom/dragndrop.js +24 -14
- package/core/modules/utils/dom/notifier.js +2 -1
- package/core/modules/utils/parsetree.js +48 -11
- package/core/modules/utils/utils.js +15 -1
- package/core/modules/widgets/action-setfield.js +12 -14
- package/core/modules/widgets/button.js +6 -1
- package/core/modules/widgets/checkbox.js +124 -15
- package/core/modules/widgets/draggable.js +37 -14
- package/core/modules/widgets/element.js +9 -3
- package/core/modules/widgets/eventcatcher.js +1 -27
- package/core/modules/widgets/image.js +4 -0
- package/core/modules/widgets/let.js +1 -1
- package/core/modules/widgets/scrollable.js +2 -0
- package/core/modules/widgets/widget.js +8 -1
- package/core/modules/wiki.js +1 -1
- package/core/palettes/CupertinoDark.tid +3 -3
- package/core/palettes/GruvBoxDark.tid +2 -2
- package/core/palettes/Nord.tid +2 -2
- package/core/templates/save-lazy-all.tid +2 -2
- package/core/templates/server/static.sidebar.wikitext.tid +1 -1
- package/core/templates/server/static.tiddler.html.tid +2 -2
- package/core/ui/Actions/new-image.tid +1 -0
- package/core/ui/Actions/new-journal.tid +2 -1
- package/core/ui/Actions/new-tiddler.tid +1 -0
- package/core/ui/AdvancedSearch/Filter.tid +50 -10
- package/core/ui/AdvancedSearch/FilterButtons/clear.tid +1 -0
- package/core/ui/AdvancedSearch/FilterButtons/delete.tid +1 -0
- package/core/ui/AdvancedSearch/FilterButtons/dropdown.tid +5 -2
- package/core/ui/AdvancedSearch/FilterButtons/export.tid +1 -0
- package/core/ui/AdvancedSearch/Shadows.tid +54 -12
- package/core/ui/AdvancedSearch/Standard.tid +36 -19
- package/core/ui/AdvancedSearch/System.tid +54 -12
- package/core/ui/AdvancedSearch.tid +1 -0
- package/core/ui/AlertTemplate.tid +10 -1
- package/core/ui/Components/tag-link.tid +1 -0
- package/core/ui/ControlPanel/Advanced.tid +1 -0
- package/core/ui/ControlPanel/Appearance.tid +1 -0
- package/core/ui/ControlPanel/Basics.tid +3 -0
- package/core/ui/ControlPanel/Cascades.tid +1 -0
- package/core/ui/ControlPanel/EditorTypes.tid +1 -0
- package/core/ui/ControlPanel/Info.tid +1 -0
- package/core/ui/ControlPanel/KeyboardShortcuts.tid +18 -7
- package/core/ui/ControlPanel/Modals/AddPlugins.tid +26 -9
- package/core/ui/ControlPanel/Parsing.tid +3 -0
- package/core/ui/ControlPanel/Plugins/Add/Updates.tid +5 -1
- package/core/ui/ControlPanel/Plugins/AddPlugins.tid +4 -1
- package/core/ui/ControlPanel/Plugins.tid +1 -0
- package/core/ui/ControlPanel/Saving/TiddlySpot.tid +2 -1
- package/core/ui/ControlPanel/Saving.tid +1 -0
- package/core/ui/ControlPanel/Settings/DefaultMoreSidebarTab.tid +1 -0
- package/core/ui/ControlPanel/Settings/DefaultSidebarTab.tid +1 -0
- package/core/ui/ControlPanel/Settings/LinkToBehaviour.tid +1 -0
- package/core/ui/ControlPanel/Settings/ToolbarButtonStyle.tid +1 -0
- package/core/ui/ControlPanel/Toolbars/EditorItemTemplate.tid +8 -1
- package/core/ui/ControlPanel/Toolbars/ItemTemplate.tid +11 -1
- package/core/ui/ControlPanel/Toolbars.tid +1 -0
- package/core/ui/ControlPanel.tid +1 -0
- package/core/ui/DefaultSearchResultList.tid +1 -0
- package/core/ui/EditTemplate/Preview/output.tid +1 -1
- package/core/ui/EditTemplate/body/default.tid +8 -5
- package/core/ui/EditTemplate/body-editor.tid +2 -0
- package/core/ui/EditTemplate/controls.tid +1 -0
- package/core/ui/EditTemplate/fieldEditor-default.tid +1 -1
- package/core/ui/EditTemplate/fields.tid +17 -10
- package/core/ui/EditTemplate/shadow.tid +2 -0
- package/core/ui/EditTemplate/title.tid +10 -5
- package/core/ui/EditTemplate.tid +28 -4
- package/core/ui/EditorToolbar/editor-height.tid +1 -0
- package/core/ui/EditorToolbar/excise-dropdown.tid +5 -4
- package/core/ui/EditorToolbar/file-import.tid +4 -0
- package/core/ui/EditorToolbar/link-dropdown.tid +10 -5
- package/core/ui/EditorToolbar/more-dropdown.tid +5 -1
- package/core/ui/EditorToolbar/paint.tid +1 -0
- package/core/ui/EditorToolbar/preview.tid +1 -0
- package/core/ui/EditorToolbar/size-dropdown.tid +6 -1
- package/core/ui/ExportTiddlyWikiCore.tid +15 -5
- package/core/ui/ImportListing.tid +23 -5
- package/core/ui/ImportPreviews/Fields.tid +1 -0
- package/core/ui/KeyboardShortcuts/advanced-search.tid +1 -0
- package/core/ui/KeyboardShortcuts/change-sidebar-layout.tid +4 -2
- package/core/ui/KeyboardShortcuts/new-image.tid +1 -0
- package/core/ui/KeyboardShortcuts/new-journal.tid +1 -0
- package/core/ui/KeyboardShortcuts/new-tiddler.tid +1 -0
- package/core/ui/KeyboardShortcuts/save-wiki.tid +1 -0
- package/core/ui/KeyboardShortcuts/toggle-sidebar.tid +4 -3
- package/core/ui/LayoutSwitcher.tid +16 -4
- package/core/ui/ListItemTemplate.tid +1 -3
- package/core/ui/ListTaggedCascade.tid +1 -0
- package/core/ui/Manager/ItemMainFields.tid +1 -0
- package/core/ui/Manager/ItemSidebarColour.tid +4 -1
- package/core/ui/Manager/ItemSidebarIcon.tid +4 -4
- package/core/ui/Manager/ItemSidebarTools.tid +7 -2
- package/core/ui/Manager.tid +11 -6
- package/core/ui/MissingTemplate.tid +1 -0
- package/core/ui/MoreSideBar/Types.tid +1 -0
- package/core/ui/PageControls/controlpanel.tid +1 -1
- package/core/ui/PageStylesheet.tid +1 -0
- package/core/ui/PageTemplate/story.tid +1 -1
- package/core/ui/PaletteManager.tid +11 -10
- package/core/ui/PluginInfo.tid +1 -0
- package/core/ui/PluginInfoDefaultContents.tid +1 -0
- package/core/ui/SearchResults.tid +8 -6
- package/core/ui/SideBar/More.tid +1 -0
- package/core/ui/SideBar/Open.tid +2 -2
- package/core/ui/SideBarSegments/search.tid +2 -0
- package/core/ui/SideBarSegments/tabs.tid +1 -1
- package/core/ui/TiddlerFieldTemplate.tid +1 -0
- package/core/ui/TiddlerFields.tid +1 -0
- package/core/ui/TiddlerInfo/Advanced/PluginInfo.tid +1 -0
- package/core/ui/TiddlerInfo/Advanced/ShadowInfo.tid +1 -0
- package/core/ui/TiddlerInfo/Advanced.tid +1 -0
- package/core/ui/TiddlerInfo.tid +1 -0
- package/core/ui/TopRightBar/menu.tid +1 -0
- package/core/ui/UntaggedTemplate.tid +1 -0
- package/core/ui/ViewTemplate/body/import.tid +6 -1
- package/core/ui/ViewTemplate/body/plugin.tid +1 -0
- package/core/ui/ViewTemplate/body/rendered-plain-text.tid +7 -0
- package/core/ui/ViewTemplate/body.tid +2 -0
- package/core/ui/ViewTemplate/classic.tid +1 -0
- package/core/ui/ViewTemplate/subtitle/modified.tid +4 -0
- package/core/ui/ViewTemplate/subtitle/modifier.tid +4 -0
- package/core/ui/ViewTemplate/subtitle.tid +6 -2
- package/core/ui/ViewTemplate/tags.tid +1 -0
- package/core/ui/ViewTemplate/title.tid +2 -0
- package/core/ui/ViewTemplate/unfold.tid +1 -0
- package/core/ui/ViewTemplate.tid +1 -1
- package/core/ui/ViewToolbar/new-here.tid +1 -0
- package/core/wiki/allfields.tid +8 -2
- package/core/wiki/config/OfficialPluginLibrary.tid +1 -1
- package/core/wiki/config/ViewTemplateBodyFilters.multids +2 -1
- package/core/wiki/currpalettepreview.tid +7 -2
- package/core/wiki/debugstylesheets.tid +1 -0
- package/core/wiki/download-wiki-button.tid +2 -1
- package/core/wiki/languageswitcher.tid +2 -0
- package/core/wiki/macros/colour-picker.tid +9 -2
- package/core/wiki/macros/copy-to-clipboard.tid +5 -2
- package/core/wiki/macros/diff.tid +4 -3
- package/core/wiki/macros/dumpvariables.tid +1 -0
- package/core/wiki/macros/image-picker.tid +5 -4
- package/core/wiki/macros/keyboard-driven-input.tid +22 -12
- package/core/wiki/macros/list.tid +7 -2
- package/core/wiki/macros/tabs.tid +55 -30
- package/core/wiki/macros/tag-picker.tid +14 -13
- package/core/wiki/macros/tag.tid +10 -5
- package/core/wiki/macros/thumbnails.tid +21 -9
- package/core/wiki/macros/timeline.tid +1 -0
- package/core/wiki/macros/toc.tid +19 -8
- package/core/wiki/macros/translink.tid +1 -0
- package/core/wiki/macros/tree.tid +8 -3
- package/core/wiki/minifocusswitcher.tid +1 -0
- package/core/wiki/minilanguageswitcher.tid +1 -0
- package/core/wiki/minithemeswitcher.tid +2 -1
- package/core/wiki/modules.tid +1 -0
- package/core/wiki/palettepreview.tid +1 -0
- package/core/wiki/paletteswitcher.tid +13 -2
- package/core/wiki/peek-stylesheets.tid +1 -5
- package/core/wiki/tags/ViewTemplateBodyFilter.tid +1 -1
- package/core/wiki/tags/ViewTemplateSubtitle.tid +2 -0
- package/core/wiki/themeswitcher.tid +10 -1
- package/core/wiki/title.tid +2 -1
- package/core/wiki/viewswitcher.tid +1 -0
- package/editions/de-AT/tiddlers/howto/TiddlyWiki und TiddlyDesktop.tid +1 -1
- package/editions/dev/tiddlers/_tw_shared/tiddlywiki.files +5 -0
- package/editions/dev/tiddlers/system/github-fork-ribbon.tid +1 -1
- package/editions/dev/tiddlywiki.info +1 -1
- package/editions/es-ES/tiddlers/TiddlyDesktop.tid +2 -2
- package/editions/fr-FR/tiddlers/Community Links Aggregator.tid +4 -4
- package/editions/fr-FR/tiddlers/Glossaire en-GB -_ fr-FR.tid +2 -1
- package/editions/fr-FR/tiddlers/community/editions/_Noteself_ by Danielo Rodr/303/255guez.tid" +34 -0
- package/editions/fr-FR/tiddlers/community/resources/TW5-firebase_ TiddlyWiki5 for Google Firebase by Peter Neumark.tid +28 -0
- package/editions/fr-FR/tiddlers/community/resources/TiddlyDrive Add-on for Google Drive by Joshua Stubbs.tid +24 -0
- package/editions/fr-FR/tiddlers/community/resources/TiddlyServer by Arlen Beiler.tid +35 -0
- package/editions/fr-FR/tiddlers/community/resources/Twexe_ Single File Tiddlywiki5 executable.tid +30 -0
- package/editions/fr-FR/tiddlers/community/resources/_Timimi_ Extension and executable by Riz.tid +33 -0
- package/editions/fr-FR/tiddlers/community/resources/_file-backups_ Extension for Firefox by pmario.tid +19 -0
- package/editions/fr-FR/tiddlers/community/resources/_savetiddlers_ Extension for Chrome and Firefox by buggyj.tid +17 -0
- package/editions/fr-FR/tiddlers/concepts/Pragma.tid +23 -0
- package/editions/fr-FR/tiddlers/{WikiText.tid → concepts/WikiText.tid} +6 -4
- package/editions/fr-FR/tiddlers/definitions/TiddlyDesktop.tid +19 -0
- package/editions/fr-FR/tiddlers/gettingstarted/GettingStarted - Internet Explorer.tid +11 -0
- package/editions/fr-FR/tiddlers/gettingstarted/GettingStarted - Safari.tid +12 -0
- package/editions/fr-FR/tiddlers/{A_Gentle_Guide_to_TiddlyWiki.tid → hellothere/A Gentle Guide to TiddlyWiki.tid } +6 -4
- package/editions/fr-FR/tiddlers/howtos/How to Customize TiddlyDesktop.tid +33 -0
- package/editions/fr-FR/tiddlers/howtos/Windows HTA Hack.tid +17 -0
- package/editions/fr-FR/tiddlers/nodejs/Installing TiddlyWiki on Node.js.tid +49 -0
- package/editions/fr-FR/tiddlers/nodejs/Serving TW5 from Android.tid +47 -0
- package/editions/fr-FR/tiddlers/nodejs/TiddlyWiki on Node.js.tid +18 -0
- package/editions/fr-FR/tiddlers/saving/Emergency Tiddler Export.tid +28 -0
- package/editions/fr-FR/tiddlers/saving/Example config-tiddlyweb-host for IIS.tid +9 -0
- package/editions/fr-FR/tiddlers/saving/Example package.json for IIS.tid +15 -0
- package/editions/fr-FR/tiddlers/saving/Example tiddlywiki.info for IIS.tid +18 -0
- package/editions/fr-FR/tiddlers/saving/Example web.config for IIS.tid +32 -0
- package/editions/fr-FR/tiddlers/saving/Installing TiddlyWiki on Microsoft Internet Information Server.tid +69 -0
- package/editions/fr-FR/tiddlers/saving/Saving on Android.tid +36 -0
- package/editions/fr-FR/tiddlers/saving/Saving on Beaker Browser.tid +35 -0
- package/editions/fr-FR/tiddlers/saving/Saving on Browser with File System Access API.tid +20 -0
- package/editions/fr-FR/tiddlers/saving/Saving on TidGi Desktop.tid +28 -0
- package/editions/fr-FR/tiddlers/saving/Saving on TiddlyDesktop.tid +20 -0
- package/editions/fr-FR/tiddlers/saving/Saving on TiddlyHost.tid +18 -0
- package/editions/fr-FR/tiddlers/{Saving on TiddlySpot.tid → saving/Saving on TiddlySpot.tid } +14 -3
- package/editions/fr-FR/tiddlers/saving/Saving on a PHP Server.tid +45 -0
- package/editions/fr-FR/tiddlers/saving/Saving on iPad_iPhone.tid +30 -0
- package/editions/fr-FR/tiddlers/saving/Saving to a Git service.tid +26 -0
- package/editions/fr-FR/tiddlers/saving/Saving via WebDAV.tid +88 -0
- package/editions/fr-FR/tiddlers/saving/Saving via a Minimal Ruby Server.tid +20 -0
- package/editions/fr-FR/tiddlers/saving/Saving with Polly.tid +30 -0
- package/editions/fr-FR/tiddlers/saving/Saving with TW Receiver.tid +16 -0
- package/editions/fr-FR/tiddlers/{Saving with TiddlyFox on Android.tid → saving/Saving with TiddlyFox on Android.tid } +5 -5
- package/editions/fr-FR/tiddlers/saving/Saving with TiddlyFox.tid +31 -0
- package/editions/fr-FR/tiddlers/saving/Saving with TiddlyIE.tid +25 -0
- package/editions/fr-FR/tiddlers/{Saving with the HTML5 fallback saver.tid → saving/Saving with the HTML5 fallback saver.tid } +11 -6
- package/editions/fr-FR/tiddlers/{Saving.tid → saving/Saving.tid} +8 -10
- package/editions/fr-FR/tiddlers/saving/TiddlyWiki Cloud.tid +17 -0
- package/editions/fr-FR/tiddlers/system/$__core_ui_SideBar_Open.tid +40 -0
- package/editions/fr-FR/tiddlers/{$__editions_fr-FR_util-macros.tid → system/$__editions_fr-FR_util-macros.tid} +4 -4
- package/editions/fr-FR/tiddlers/{$__editions_tw5.com_wikitext-macros.tid → system/$__editions_tw5.com_wikitext-macros.tid} +24 -3
- package/editions/fr-FR/tiddlers/system/tw5.com-card-template.tid +17 -0
- package/editions/fr-FR/tiddlers/tiddlydesktop/TiddlyDesktop_Releases.tid +9 -0
- package/editions/fr-FR/tiddlers/widgets/TranscludeWidget.tid +72 -0
- package/editions/fr-FR/tiddlers/{Block_Quotes_in_WikiText.tid → wikitext/Block Quotes in WikiText.tid } +3 -2
- package/editions/fr-FR/tiddlers/{Code Blocks in WikiText.tid → wikitext/Code Blocks in WikiText.tid } +3 -3
- package/editions/fr-FR/tiddlers/{Dashes in WikiText.tid → wikitext/Dashes in WikiText.tid } +3 -3
- package/editions/fr-FR/tiddlers/{Definitions_in_WikiText.tid → wikitext/Definitions in WikiText.tid } +2 -2
- package/editions/fr-FR/tiddlers/{Formatting in WikiText.tid → wikitext/Formatting in WikiText.tid } +5 -6
- package/editions/fr-FR/tiddlers/{Hard Linebreaks in WikiText.tid → wikitext/Hard Linebreaks in WikiText.tid } +6 -5
- package/editions/fr-FR/tiddlers/{Headings in WikiText.tid → wikitext/Headings in WikiText.tid } +4 -4
- package/editions/fr-FR/tiddlers/wikitext/Horizontal Rules in WikiText.tid +17 -0
- package/editions/fr-FR/tiddlers/{Lists_in_WikiText.tid → wikitext/Lists in WikiText.tid } +19 -19
- package/editions/fr-FR/tiddlers/wikitext/Macro Calls in WikiText.tid +27 -0
- package/editions/fr-FR/tiddlers/{Paragraphs in WikiText.tid → wikitext/Paragraphs in WikiText.tid } +8 -7
- package/editions/fr-FR/tiddlers/wikitext/Tables in WikiText.tid +69 -0
- package/editions/fr-FR/tiddlers/wikitext/Transclusion and Substitution.tid +61 -0
- package/editions/fr-FR/tiddlers/{Transclusion_in_WikiText.tid → wikitext/Transclusion in WikiText.tid } +14 -13
- package/editions/fr-FR/tiddlers/{Transclusion_with_Templates.tid → wikitext/Transclusion with Templates.tid } +2 -1
- package/editions/fr-FR/tiddlers/{Typed_Blocks_in_WikiText.tid → wikitext/Typed Blocks in WikiText.tid } +16 -11
- package/editions/fr-FR/tiddlers/{Variables_in_WikiText.tid → wikitext/Variables in WikiText.tid } +7 -8
- package/editions/fr-FR/tiddlers/wikitext/Widgets in WikiText.tid +30 -0
- package/editions/fr-FR/tiddlers/wikitext/parser/Block Mode WikiText (Examples).tid +52 -0
- package/editions/fr-FR/tiddlers/wikitext/parser/Block Mode WikiText.tid +37 -0
- package/editions/fr-FR/tiddlers/wikitext/parser/Inline Mode WikiText.tid +28 -0
- package/editions/fr-FR/tiddlers/wikitext/parser/Places where the parser ignores WikiText.tid +14 -0
- package/editions/fr-FR/tiddlers/wikitext/parser/WikiText Parser Modes.tid +17 -0
- package/editions/fr-FR/tiddlers/wikitext/parser/WikiText parser mode HTML examples.tid +73 -0
- package/editions/fr-FR/tiddlers/wikitext/parser/WikiText parser mode transitions.tid +59 -0
- package/editions/fr-FR/tiddlers/wikitext/parser/WikiText parser mode_ macro examples.tid +56 -0
- package/editions/fr-FR/tiddlers/wikitext/parser/WikiText parser mode_ transclusion examples.tid +56 -0
- package/editions/fr-FR/tiddlers/wikitext/parser/table-example.tid +8 -0
- package/editions/katexdemo/tiddlers/$__DefaultTiddlers.tid +8 -0
- package/editions/katexdemo/tiddlers/HelloThere.tid +4 -1
- package/editions/katexdemo/tiddlers/LaTeX.tid +8 -0
- package/editions/katexdemo/tiddlers/TiddlyWiki.tid +8 -0
- package/editions/katexdemo/tiddlers/TiddlyWiki5.tid +6 -0
- package/editions/prerelease/tiddlers/{Release 5.2.3.tid → Release 5.2.4.tid } +16 -15
- package/editions/prerelease/tiddlers/system/PrereleaseLocalPluginLibrary.tid +1 -1
- package/editions/prerelease/tiddlers/system/PrereleaseOfficialPluginLibrary.tid +1 -1
- package/editions/prerelease/tiddlers/system/TiddlyWiki Pre-release.tid +4 -1
- package/editions/prerelease/tiddlywiki.info +0 -2
- package/editions/test/tiddlers/tests/data/tabs-macro/expected-html-tabs-horizontal-all.tid +1 -29
- package/editions/test/tiddlers/tests/data/tabs-macro/expected-html-tabs-horizontal.tid +1 -39
- package/editions/test/tiddlers/tests/data/tabs-macro/expected-html-tabs-vertical.tid +1 -39
- package/editions/test/tiddlers/tests/test-action-widgets.js +43 -0
- package/editions/test/tiddlers/tests/test-checkbox-widget.js +507 -0
- package/editions/test/tiddlers/tests/test-filters.js +49 -2
- package/editions/test/tiddlers/tests/test-prefixes-filter.js +2 -0
- package/editions/test/tiddlers/tests/test-utils.js +6 -0
- package/editions/test/tiddlers/tests/test-widget.js +2 -1
- package/editions/test/tiddlers/tests/test-wikitext-tabs-macro.js +8 -7
- package/editions/test/tiddlers/tests/test-wikitext.js +8 -1
- package/editions/translators/tiddlywiki.info +7 -1
- package/editions/tw.org/tiddlers/$__config_DefaultSidebarTab.tid +6 -0
- package/editions/tw.org/tiddlers/$__core_templates_static.content.tid +18 -0
- package/editions/tw.org/tiddlers/Code of Conduct.tid +30 -0
- package/editions/tw.org/tiddlers/Fundraising.tid +23 -0
- package/editions/tw.org/tiddlers/HelloThere.tid +3 -2
- package/editions/tw.org/tiddlers/Table of Contents.tid +2 -1
- package/editions/tw.org/tiddlers/_tw_shared/tiddlywiki.files +5 -0
- package/editions/tw5.com/tiddlers/$__StoryList.tid +3 -3
- package/editions/tw5.com/tiddlers/Brackets.tid +14 -0
- package/editions/tw5.com/tiddlers/{images → _tw_shared}/Motovun Jack.svg +0 -0
- package/editions/tw5.com/tiddlers/{images → _tw_shared}/Motovun Jack.svg.meta +1 -1
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/classic.tiddlywiki.com.ico +0 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/classic.tiddlywiki.com.ico.meta +3 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/links.tiddlywiki.org.ico +0 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/links.tiddlywiki.org.ico.meta +3 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/talk.tiddlywiki.org.svg +6 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/talk.tiddlywiki.org.svg.meta +3 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/tiddlywiki.com.dev.ico +0 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/tiddlywiki.com.dev.ico.meta +3 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/tiddlywiki.com.ico +0 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/tiddlywiki.com.ico.meta +3 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/tiddlywiki.com.prerelease.ico +0 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/tiddlywiki.com.prerelease.ico.meta +3 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/tiddlywiki.com.upgrade.ico +0 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/tiddlywiki.com.upgrade.ico.meta +3 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/tiddlywiki.org.ico +0 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/tiddlywiki.org.ico.meta +3 -0
- package/editions/tw5.com/tiddlers/_tw_shared/sites/classic.tiddlywiki.com.tid +6 -0
- package/editions/tw5.com/tiddlers/_tw_shared/sites/links.tiddlywiki.org.tid +6 -0
- package/editions/tw5.com/tiddlers/_tw_shared/sites/talk.tiddlywiki.org.tid +6 -0
- package/editions/tw5.com/tiddlers/_tw_shared/sites/tiddlywiki.com.dev.tid +6 -0
- package/editions/tw5.com/tiddlers/_tw_shared/sites/tiddlywiki.com.prerelease.tid +6 -0
- package/editions/tw5.com/tiddlers/_tw_shared/sites/tiddlywiki.com.tid +6 -0
- package/editions/tw5.com/tiddlers/_tw_shared/sites/tiddlywiki.com.upgrade.tid +6 -0
- package/editions/tw5.com/tiddlers/_tw_shared/sites/tiddlywiki.org.tid +6 -0
- package/editions/tw5.com/tiddlers/_tw_shared/sites.tid +32 -0
- package/editions/tw5.com/tiddlers/_tw_shared/styles.tid +48 -0
- package/editions/tw5.com/tiddlers/_tw_shared/tags-TiddlyWikiSites.tid +3 -0
- package/editions/tw5.com/tiddlers/community/Community Links Aggregator.tid +1 -1
- package/editions/tw5.com/tiddlers/community/Contributing.tid +2 -1
- package/editions/tw5.com/tiddlers/community/editions/TiddlyMemo by oflg.tid +16 -0
- package/editions/tw5.com/tiddlers/community/resources/Projectify by Nicolas Petton.tid +6 -4
- package/editions/tw5.com/tiddlers/concepts/Customizing EditTemplate Field Rendering.tid +23 -7
- package/editions/tw5.com/tiddlers/concepts/DataTiddlers.tid +4 -21
- package/editions/tw5.com/tiddlers/concepts/DictionaryTiddlers.tid +3 -2
- package/editions/tw5.com/tiddlers/concepts/JSONTiddlers.tid +4 -3
- package/editions/tw5.com/tiddlers/concepts/KeyboardShortcutTiddler.tid +7 -0
- package/editions/tw5.com/tiddlers/concepts/Macros.tid +6 -2
- package/editions/tw5.com/tiddlers/concepts/Order of Tagged Tiddlers.tid +3 -1
- package/editions/tw5.com/tiddlers/concepts/SystemTags.tid +1 -1
- package/editions/tw5.com/tiddlers/concepts/TiddlyWiki5.tid +4 -2
- package/editions/tw5.com/tiddlers/concepts/Title List.tid +4 -1
- package/editions/tw5.com/tiddlers/customising/Customising TiddlyWiki's user interface.tid +2 -2
- package/editions/tw5.com/tiddlers/definitions/JavaScript Object Notation.tid +2 -6
- package/editions/tw5.com/tiddlers/definitions/Node.js.tid +5 -3
- package/editions/tw5.com/tiddlers/definitions/TiddlyDesktop.tid +1 -1
- package/editions/tw5.com/tiddlers/definitions/TiddlyWeb.tid +1 -0
- package/editions/tw5.com/tiddlers/demonstrations/CustomStoryTiddlerTemplateDemo.tid/Styles.tid +0 -1
- package/editions/tw5.com/tiddlers/features/JSON in TiddlyWiki.tid +69 -0
- package/editions/tw5.com/tiddlers/filters/Mathematics Operators.tid +23 -3
- package/editions/tw5.com/tiddlers/filters/examples/insertafter Operator (Examples).tid +28 -0
- package/editions/tw5.com/tiddlers/filters/format.tid +3 -1
- package/editions/tw5.com/tiddlers/filters/insertafter Operator.tid +35 -0
- package/editions/tw5.com/tiddlers/filters/insertbefore Operator.tid +9 -3
- package/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix (Examples).tid +20 -2
- package/editions/tw5.com/tiddlers/filters/syntax/Map Filter Run Prefix.tid +3 -2
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted.tid +6 -0
- package/editions/tw5.com/tiddlers/hellothere/HelloThere.tid +1 -1
- package/editions/tw5.com/tiddlers/howtos/Constructing JSON tiddlers.tid +16 -0
- package/editions/tw5.com/tiddlers/howtos/Creating a splash screen.tid +1 -1
- package/editions/tw5.com/tiddlers/howtos/How to apply custom styles by tag.tid +2 -2
- package/editions/tw5.com/tiddlers/howtos/How to customize TiddlyDesktop.tid +1 -1
- package/editions/tw5.com/tiddlers/howtos/How to update TiddlyWiki to the latest version.tid +7 -0
- package/editions/tw5.com/tiddlers/howtos/Modifying JSON tiddlers.tid +18 -0
- package/editions/tw5.com/tiddlers/howtos/Reading data from JSON tiddlers.tid +25 -0
- package/editions/tw5.com/tiddlers/images/New Release Banner.png +0 -0
- package/editions/tw5.com/tiddlers/macros/JsonTiddlersMacro.tid +3 -3
- package/editions/tw5.com/tiddlers/macros/TagMacro.tid +1 -1
- package/editions/tw5.com/tiddlers/macros/jsontiddler Macro.tid +2 -2
- package/editions/tw5.com/tiddlers/macros/list-links-draggable Macro.tid +2 -0
- package/editions/tw5.com/tiddlers/mechanisms/InfoMechanism.tid +1 -0
- package/editions/tw5.com/tiddlers/mechanisms/PluginMechanism.tid +1 -1
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-close-window.tid +3 -1
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid +11 -2
- package/editions/tw5.com/tiddlers/nodejs/Environment Variables on Node.js.tid +5 -5
- package/editions/tw5.com/tiddlers/nodejs/Installing TiddlyWiki on Node.js.tid +5 -10
- package/editions/tw5.com/tiddlers/nodejs/Installing custom plugins on Node.js.tid +11 -19
- package/editions/tw5.com/tiddlers/nodejs/Installing official plugins on Node.js.tid +40 -0
- package/editions/tw5.com/tiddlers/nodejs/PluginsCS.tid +9 -0
- package/editions/tw5.com/tiddlers/nodejs/TiddlyWiki on Node.js.tid +7 -2
- package/editions/tw5.com/tiddlers/nodejs/Uninstalling a plugin with Node.js.tid +31 -0
- package/editions/tw5.com/tiddlers/nodejs/Using TiddlyWiki on Node.js.tid +4 -4
- package/editions/tw5.com/tiddlers/platforms/TiddlyWiki in the Sky for TiddlyWeb.tid +2 -1
- package/editions/tw5.com/tiddlers/plugins/Installing a plugin from the plugin library.tid +22 -35
- package/editions/tw5.com/tiddlers/plugins/Manually installing a plugin.tid +19 -4
- package/editions/tw5.com/tiddlers/plugins/OfficialPlugins.tid +3 -1
- package/editions/tw5.com/tiddlers/plugins/Plugin Ordering.tid +47 -0
- package/editions/tw5.com/tiddlers/plugins/PluginFolders.tid +27 -1
- package/editions/tw5.com/tiddlers/plugins/Plugins.tid +19 -7
- package/editions/tw5.com/tiddlers/plugins/Uninstalling a plugin.tid +15 -25
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.1.23.tid +32 -34
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.0.tid +36 -38
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.1.tid +16 -18
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.2.tid +26 -28
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.3.tid +152 -0
- package/editions/tw5.com/tiddlers/releasenotes/Releases.tid +1 -1
- package/editions/tw5.com/tiddlers/saving/Saving on Android.tid +1 -1
- package/editions/tw5.com/tiddlers/saving/Saving on TidGi.tid +1 -1
- package/editions/tw5.com/tiddlers/saving/Saving on TiddlyDesktop.tid +3 -3
- package/editions/tw5.com/tiddlers/saving/Saving on iPad_iPhone.tid +1 -1
- package/editions/tw5.com/tiddlers/saving/Saving via WebDAV.tid +5 -3
- package/editions/tw5.com/tiddlers/saving/Saving.tid +9 -11
- package/editions/tw5.com/tiddlers/system/Deprecated.tid +4 -4
- package/editions/tw5.com/tiddlers/system/Deprecated_-_What_does_it_mean.tid +2 -6
- package/editions/tw5.com/tiddlers/system/doc-macros.tid +11 -1
- package/editions/tw5.com/tiddlers/system/doc-styles.tid +34 -4
- package/editions/tw5.com/tiddlers/system/download-empty-button.tid +1 -1
- package/editions/tw5.com/tiddlers/system/systemtag-template.tid +21 -0
- package/editions/tw5.com/tiddlers/system/tw5.com-card-template.tid +12 -8
- package/editions/tw5.com/tiddlers/system/tw5.com-styles.tid +5 -6
- package/editions/tw5.com/tiddlers/system/version-macros.tid +3 -3
- package/editions/tw5.com/tiddlers/system/wikitext-macros.tid +38 -3
- package/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_Macro_View_Body.tid +9 -0
- package/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ViewTemplate.tid +2 -2
- package/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ViewTemplateSubtitle.tid +9 -0
- package/editions/tw5.com/tiddlers/tiddlydesktop/TiddlyDesktop_Releases.tid +1 -1
- package/editions/tw5.com/tiddlers/variables/modifier Variable.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/CheckboxWidget.tid +77 -3
- package/editions/tw5.com/tiddlers/widgets/DraggableWidget.tid +19 -3
- package/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid +3 -1
- package/editions/tw5.com/tiddlers/widgets/ImageWidget.tid +5 -3
- package/editions/tw5.com/tiddlers/widgets/JSONTiddlerWidget.tid +5 -4
- package/editions/tw5.com/tiddlers/widgets/ListWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/ScrollableWidget.tid +3 -3
- package/editions/tw5.com/tiddlers/widgets/SetWidget.tid +3 -1
- package/editions/tw5.com/tiddlers/widgets/TranscludeWidget.tid +2 -5
- package/editions/tw5.com/tiddlers/wikitext/Code Blocks in WikiText.tid +4 -7
- package/editions/tw5.com/tiddlers/wikitext/Dashes in WikiText.tid +7 -3
- package/editions/tw5.com/tiddlers/wikitext/Formatting in WikiText.tid +7 -7
- package/editions/tw5.com/tiddlers/wikitext/Headings in WikiText.tid +3 -3
- package/editions/tw5.com/tiddlers/wikitext/Horizontal Rules in WikiText.tid +3 -5
- package/editions/tw5.com/tiddlers/wikitext/Tables in WikiText.tid +13 -37
- package/editions/tw5.com/tiddlers/wikitext/Widgets in WikiText.tid +4 -4
- package/editions/tw5.com/tiddlers/wikitext/parser/WikiText Parser Modes.tid +1 -1
- package/languages/de-DE/EditTemplate.multids +1 -0
- package/languages/de-DE/Help/render.tid +2 -1
- package/languages/de-DE/SideBar.multids +1 -0
- package/languages/fr-FR/ControlPanel.multids +18 -0
- package/languages/fr-FR/EditTemplate.multids +1 -0
- package/languages/fr-FR/Fields.multids +4 -2
- package/languages/fr-FR/Help/default.tid +4 -1
- package/languages/fr-FR/Help/render.tid +2 -1
- package/languages/fr-FR/Misc.multids +1 -1
- package/languages/fr-FR/SideBar.multids +1 -0
- package/languages/ja-JP/Buttons.multids +147 -30
- package/languages/ja-JP/ControlPanel.multids +175 -37
- package/languages/ja-JP/CoreReadMe.tid +2 -2
- package/languages/ja-JP/Dates.multids +24 -24
- package/languages/ja-JP/Docs/ModuleTypes.multids +3 -3
- package/languages/ja-JP/Docs/PaletteColours.multids +18 -18
- package/languages/ja-JP/EditTemplate.multids +23 -7
- package/languages/ja-JP/Exporters.multids +1 -1
- package/languages/ja-JP/Fields.multids +28 -23
- package/languages/ja-JP/Filters.multids +12 -9
- package/languages/ja-JP/GettingStarted.tid +6 -6
- package/languages/ja-JP/Help/build.tid +2 -2
- package/languages/ja-JP/Help/editions.tid +6 -2
- package/languages/ja-JP/Help/help.tid +1 -1
- package/languages/ja-JP/Help/init.tid +2 -2
- package/languages/ja-JP/Help/load.tid +2 -2
- package/languages/ja-JP/Help/makelibrary.tid +3 -3
- package/languages/ja-JP/Help/output.tid +2 -2
- package/languages/ja-JP/Help/rendertiddler.tid +2 -2
- package/languages/ja-JP/Help/rendertiddlers.tid +2 -2
- package/languages/ja-JP/Help/savetiddler.tid +2 -2
- package/languages/ja-JP/Help/savetiddlers.tid +12 -2
- package/languages/ja-JP/Help/server.tid +6 -6
- package/languages/ja-JP/Help/setfield.tid +7 -7
- package/languages/ja-JP/Help/unpackplugin.tid +2 -2
- package/languages/ja-JP/Help/verbose.tid +6 -2
- package/languages/ja-JP/Help/version.tid +2 -2
- package/languages/ja-JP/Import.multids +27 -8
- package/languages/ja-JP/Misc.multids +98 -11
- package/languages/ja-JP/Modals/Download.tid +2 -2
- package/languages/ja-JP/Notifications.multids +2 -2
- package/languages/ja-JP/Search.multids +8 -4
- package/languages/ja-JP/SideBar.multids +6 -4
- package/languages/ja-JP/SiteSubtitle.tid +1 -1
- package/languages/ja-JP/SiteTitle.tid +1 -1
- package/languages/ja-JP/TiddlerInfo.multids +10 -10
- package/languages/ja-JP/Types/application%2Fjavascript.tid +1 -1
- package/languages/ja-JP/Types/image%2Fgif.tid +1 -1
- package/languages/ja-JP/Types/image%2Fjpeg.tid +1 -1
- package/languages/ja-JP/Types/image%2Fpng.tid +1 -1
- package/languages/ja-JP/Types/image%2Fsvg%2Bxml.tid +1 -1
- package/languages/ja-JP/Types/image%2Fx-icon.tid +1 -1
- package/languages/ja-JP/Types/text%2Fcss.tid +1 -1
- package/languages/ja-JP/Types/text%2Fvnd.tiddlywiki.tid +1 -1
- package/languages/ja-JP/plugin.info +1 -1
- package/languages/pl-PL/ControlPanel.multids +3 -1
- package/languages/pl-PL/EditTemplate.multids +1 -0
- package/languages/pl-PL/Fields.multids +3 -3
- package/languages/pl-PL/Help/default.tid +4 -1
- package/languages/pl-PL/Import.multids +3 -3
- package/languages/pl-PL/SideBar.multids +1 -0
- package/languages/zh-Hans/EditTemplate.multids +1 -0
- package/languages/zh-Hans/Help/default.tid +4 -1
- package/languages/zh-Hans/Help/render.tid +1 -0
- package/languages/zh-Hans/SideBar.multids +1 -0
- package/languages/zh-Hant/EditTemplate.multids +1 -0
- package/languages/zh-Hant/Help/default.tid +4 -1
- package/languages/zh-Hant/Help/render.tid +1 -0
- package/languages/zh-Hant/SideBar.multids +1 -0
- package/licenses/cla-individual.md +10 -0
- package/package.json +1 -1
- package/plugins/tiddlywiki/browser-sniff/browser.js +5 -1
- package/plugins/tiddlywiki/browser-sniff/usage.tid +1 -0
- package/plugins/tiddlywiki/browser-storage/rawmarkup.js +18 -1
- package/plugins/tiddlywiki/browser-storage/readme.tid +0 -1
- package/plugins/tiddlywiki/browser-storage/settings.tid +5 -1
- package/plugins/tiddlywiki/browser-storage/startup.js +14 -9
- package/plugins/tiddlywiki/dynannotate/docs/readme.tid +72 -8
- package/plugins/tiddlywiki/dynannotate/modules/dynannotate.js +10 -1
- package/plugins/tiddlywiki/dynannotate/modules/legacy-selection-tracker.js +104 -0
- package/plugins/tiddlywiki/dynannotate/modules/selection-tracker.js +144 -89
- package/plugins/tiddlywiki/dynannotate/modules/startup.js +40 -0
- package/{editions/katexdemo/tiddlers → plugins/tiddlywiki/katex}/ImplementationNotes.tid +3 -3
- package/plugins/tiddlywiki/katex/developer.tid +58 -0
- package/plugins/tiddlywiki/katex/files/contrib/mhchem.min.js +1 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Bold.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Italic.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Regular.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-Italic.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Script-Regular.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/plugins/tiddlywiki/katex/files/katex.min.css +1 -1
- package/plugins/tiddlywiki/katex/files/katex.min.js +1 -1
- package/plugins/tiddlywiki/katex/files/katex.without-font-face.min.css +1 -1
- package/plugins/tiddlywiki/katex/files/tiddlywiki.files +2 -2
- package/plugins/tiddlywiki/katex/plugin.info +1 -1
- package/plugins/tiddlywiki/katex/readme.tid +1 -1
- package/plugins/tiddlywiki/katex/snippets/logo.tid +4 -0
- package/plugins/tiddlywiki/katex/snippets/math.tid +8 -0
- package/plugins/tiddlywiki/katex/styles.tid +7 -0
- package/plugins/tiddlywiki/katex/usage.tid +18 -2
- package/plugins/tiddlywiki/markdown/EditorToolbar/link-dropdown.tid +73 -0
- package/plugins/tiddlywiki/markdown/EditorToolbar/link.tid +11 -0
- package/plugins/tiddlywiki/markdown/EditorToolbar/linkify.tid +15 -0
- package/plugins/tiddlywiki/markdown/EditorToolbar/mono-block.tid +17 -0
- package/plugins/tiddlywiki/markdown/KeyboardShortcuts/new-markdown-tiddler.tid +8 -0
- package/plugins/tiddlywiki/markdown/config.multids +5 -0
- package/plugins/tiddlywiki/markdown/editor-operations/make-markdown-link.js +37 -0
- package/plugins/tiddlywiki/markdown/images/markdown-linkify.tid +6 -0
- package/plugins/tiddlywiki/menubar/items/search.tid +2 -0
- package/plugins/tiddlywiki/tiddlyweb/save-wiki-button.tid +1 -1
- package/readme.md +5 -3
- package/themes/tiddlywiki/vanilla/base.tid +21 -3
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -43
- package/editions/fr-FR/tiddlers/$__core_ui_SideBar_Open.tid +0 -15
- package/editions/fr-FR/tiddlers/Horizontal Rules in WikiText.tid +0 -17
- package/editions/fr-FR/tiddlers/Installing TiddlyWiki on Node.js.tid +0 -23
- package/editions/fr-FR/tiddlers/Macro_Calls_in_WikiText.tid +0 -22
- package/editions/fr-FR/tiddlers/Pragma.tid +0 -17
- package/editions/fr-FR/tiddlers/Saving on Android.tid +0 -10
- package/editions/fr-FR/tiddlers/Saving on InternetExplorer.tid +0 -11
- package/editions/fr-FR/tiddlers/Saving on Safari.tid +0 -24
- package/editions/fr-FR/tiddlers/Saving on iPad_iPhone.tid +0 -23
- package/editions/fr-FR/tiddlers/Saving with TiddlyFox.tid +0 -24
- package/editions/fr-FR/tiddlers/Saving with TiddlyIE.tid +0 -19
- package/editions/fr-FR/tiddlers/Saving_on_a_PHP_Server.tid +0 -30
- package/editions/fr-FR/tiddlers/Tables_in_WikiText.tid +0 -102
- package/editions/fr-FR/tiddlers/TiddlyDesktop.tid +0 -23
- package/editions/fr-FR/tiddlers/TiddlyDesktop_Releases.tid +0 -9
- package/editions/fr-FR/tiddlers/TiddlyWiki on Node.js.tid +0 -18
- package/editions/fr-FR/tiddlers/TranscludeWidget.tid +0 -73
- package/editions/fr-FR/tiddlers/Widgets_in_WikiText.tid +0 -30
- package/editions/katexdemo/tiddlers/DefaultTiddlers.tid +0 -5
- package/plugins/tiddlywiki/katex/files/README.md +0 -119
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/plugins/tiddlywiki/katex/files/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/plugins/tiddlywiki/katex/files/katex.css +0 -1079
- package/plugins/tiddlywiki/katex/files/katex.js +0 -18183
- package/plugins/tiddlywiki/katex/files/mhchem.min.js +0 -1
@@ -3,6 +3,7 @@ title: $:/language/Docs/Fields/
|
|
3
3
|
_canonical_uri: Pełny adres URL do zewnętrznego obrazu
|
4
4
|
bag: Nazwa worka, z ktorego pochodzi tiddler
|
5
5
|
caption: Tekst wyświetlany na zakładce lub przycisku
|
6
|
+
code-body: Ustawienie wartości na ''tak'' spowoduje wyświetlanie tiddlera jako kod
|
6
7
|
color: Wartość koloru CSS powiążanego z tym tiddlerem
|
7
8
|
component: Nazwa komponentu odpowiedzialnego za [[alert|AlertMechanism]]
|
8
9
|
current-tiddler: Używane by zapamiętać ostatniego tiddlera w [[liście historii|HistoryMechanism]]
|
@@ -13,9 +14,9 @@ description: Opis wtyczki lub okna modalnego
|
|
13
14
|
draft.of: Dla szkicy, zawiera nazwę tiddlera którego jest szkicem
|
14
15
|
draft.title: Dla szkicy, zawiera proponowaną nową nazwę
|
15
16
|
footer: Teskt stópki okna modalnego
|
16
|
-
hide-body: Ustawienie wartości na ''
|
17
|
+
hide-body: Ustawienie wartości na ''tak'' ukryje treść tiddlera
|
17
18
|
icon: Nazwa tiddlera zawierającego ikonę, która ma być powiązana z tym tiddlerem
|
18
|
-
library: Ustawienie wartości na ''
|
19
|
+
library: Ustawienie wartości na ''tak'' oznacza, że tiddler ma być zapisany jako biblioteka JavaScriptu
|
19
20
|
list: Posortowana lista nazw tiddlerów powiązanych z tym tiddlerem
|
20
21
|
list-before: Jeżeli ustawione, nazwa tiddlera przed którym ten tiddler będzie dodany w sortowanej liście nazw tiddlerów; lub na początku listy jeżeli pole jest obecne ale puste
|
21
22
|
list-after: Jeżeli ustawione, nazwa tiddlera po którym ten tiddler będzie dodany w sortowanej liście nazw tiddlerów; lub na końcu listy jeżeli pole jest obecne ale puste
|
@@ -36,4 +37,3 @@ toc-link: Powoduje, że spisie treści ten tiddler nie będzie podlinkowany (ale
|
|
36
37
|
type: Typ treści tiddlera
|
37
38
|
version: Informacja o wersji wtyczki
|
38
39
|
_is_skinny: Jeżeli obecne, oznacza, że treść tego tiddlera musi być wczytana z serwera
|
39
|
-
|
@@ -3,6 +3,7 @@ title: $:/language/Help/default
|
|
3
3
|
\define commandTitle()
|
4
4
|
$:/language/Help/$(command)$
|
5
5
|
\end
|
6
|
+
\whitespace trim
|
6
7
|
```
|
7
8
|
użycie: tiddlywiki [<wikifolder>] [--<command> [<args>...]...]
|
8
9
|
```
|
@@ -11,7 +12,9 @@ Dostępne komendy:
|
|
11
12
|
|
12
13
|
<ul>
|
13
14
|
<$list filter="[commands[]sort[title]]" variable="command">
|
14
|
-
<li><$link to=<<commandTitle>>><$macrocall $name="command" $type="text/plain" $output="text/plain"/></$link>:
|
15
|
+
<li><$link to=<<commandTitle>>><$macrocall $name="command" $type="text/plain" $output="text/plain"/></$link>:
|
16
|
+
 
|
17
|
+
<$transclude tiddler=<<commandTitle>> field="description"/></li>
|
15
18
|
</$list>
|
16
19
|
</ul>
|
17
20
|
|
@@ -29,7 +29,7 @@ Upgrader/System/Suppressed: Zablokowano systemowego tiddlera.
|
|
29
29
|
Upgrader/System/Warning: Tiddler z głównym modułem.
|
30
30
|
Upgrader/System/Alert: Ta operacja zaimportuje tiddlera, który nadpisze jeden z gównych modułuch. Nie jest to zalecane, gdyż może spowodować niestabilne działanie systemu.
|
31
31
|
Upgrader/ThemeTweaks/Created: Zmigrowano dostosowanie motywu z <$text text=<<from>>/>.
|
32
|
-
Upgrader/Tiddler/Disabled:
|
33
|
-
Upgrader/Tiddler/Selected:
|
34
|
-
Upgrader/Tiddler/Unselected:
|
32
|
+
Upgrader/Tiddler/Disabled: Wyłaczony tiddlera.
|
33
|
+
Upgrader/Tiddler/Selected: Zaznaczony tiddlera.
|
34
|
+
Upgrader/Tiddler/Unselected: Odznaczony tiddlera.
|
35
35
|
|
@@ -3,6 +3,7 @@ title: $:/language/Help/default
|
|
3
3
|
\define commandTitle()
|
4
4
|
$:/language/Help/$(command)$
|
5
5
|
\end
|
6
|
+
\whitespace trim
|
6
7
|
```
|
7
8
|
用法: tiddlywiki [<wikifolder>] [--<command> [<args>...]...]
|
8
9
|
```
|
@@ -11,7 +12,9 @@ $:/language/Help/$(command)$
|
|
11
12
|
|
12
13
|
<ul>
|
13
14
|
<$list filter="[commands[]sort[title]]" variable="command">
|
14
|
-
<li><$link to=<<commandTitle>>><$macrocall $name="command" $type="text/plain" $output="text/plain"/></$link>:
|
15
|
+
<li><$link to=<<commandTitle>>><$macrocall $name="command" $type="text/plain" $output="text/plain"/></$link>:
|
16
|
+
 
|
17
|
+
<$transclude tiddler=<<commandTitle>> field="description"/></li>
|
15
18
|
</$list>
|
16
19
|
</ul>
|
17
20
|
|
@@ -31,3 +31,4 @@ description: 呈现个别条目到文件
|
|
31
31
|
例子:
|
32
32
|
|
33
33
|
* `--render "[!is[system]]" "[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]"` -- 呈现所有非系统条目为 "tiddlers" 子文件夹中的文件,文件名为 URL 编码的条目名称和扩展名 HTML
|
34
|
+
* `--render '.' 'tiddlers.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[HelloThere]]'` -- 将标签为 "HelloThere" 的条目渲染到名为 "tiddlers.json" 的 JSON 文件
|
@@ -3,6 +3,7 @@ title: $:/language/Help/default
|
|
3
3
|
\define commandTitle()
|
4
4
|
$:/language/Help/$(command)$
|
5
5
|
\end
|
6
|
+
\whitespace trim
|
6
7
|
```
|
7
8
|
用法: tiddlywiki [<wikifolder>] [--<command> [<args>...]...]
|
8
9
|
```
|
@@ -11,7 +12,9 @@ $:/language/Help/$(command)$
|
|
11
12
|
|
12
13
|
<ul>
|
13
14
|
<$list filter="[commands[]sort[title]]" variable="command">
|
14
|
-
<li><$link to=<<commandTitle>>><$macrocall $name="command" $type="text/plain" $output="text/plain"/></$link>:
|
15
|
+
<li><$link to=<<commandTitle>>><$macrocall $name="command" $type="text/plain" $output="text/plain"/></$link>:
|
16
|
+
 
|
17
|
+
<$transclude tiddler=<<commandTitle>> field="description"/></li>
|
15
18
|
</$list>
|
16
19
|
</ul>
|
17
20
|
|
@@ -31,3 +31,4 @@ description: 呈現個別條目到檔案
|
|
31
31
|
範例:
|
32
32
|
|
33
33
|
* `--render "[!is[system]]" "[encodeuricomponent[]addprefix[tiddlers/]addsuffix[.html]]"` -- 呈現所有非系統條目為 "tiddlers" 子資料夾中的檔案,檔名為 URL 編碼的條目名稱和副檔名 HTML
|
34
|
+
* `--render '.' 'tiddlers.json' 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[tag[HelloThere]]'` -- 將標籤為 "HelloThere" 的條目渲染到名為 "tiddlers.json" 的 JSON 檔案
|
@@ -482,8 +482,18 @@ Joseph Cosentino, @jc-ose, 2021-12-14
|
|
482
482
|
|
483
483
|
@pmario, @TiddlyVee, 2022/02/26
|
484
484
|
|
485
|
+
Eskha, @es-kha, 2022/03/04
|
486
|
+
|
485
487
|
@FSpark, 2022/03/08
|
486
488
|
|
487
489
|
Guang Li, @oflg, 2022/03/12
|
488
490
|
|
489
491
|
Dam S., @damscal, 2022/03/24
|
492
|
+
|
493
|
+
Max Schillinger, @MaxGyver83, 2022/05/11
|
494
|
+
|
495
|
+
Nolan Darilek, @NDarilek, 2022/06/21
|
496
|
+
|
497
|
+
Keiichi Shiga (🎈 BALLOON | FU-SEN), @fu-sen. 2022/07/07
|
498
|
+
|
499
|
+
Nathaniel Knight, @nathanielknight, 2022/07/26
|
package/package.json
CHANGED
@@ -42,8 +42,12 @@ exports.getInfoTiddlerFields = function() {
|
|
42
42
|
["is/sailfish","sailfish"],
|
43
43
|
["is/android","android"],
|
44
44
|
["is/windowsphone","windowsphone"],
|
45
|
-
["is/firefoxos","firefoxos"]
|
45
|
+
["is/firefoxos","firefoxos"],
|
46
|
+
["is/mobile","mobile"]
|
46
47
|
];
|
48
|
+
$tw.browser = $tw.utils.extend($tw.browser, {
|
49
|
+
is: bowser.browser,
|
50
|
+
});
|
47
51
|
$tw.utils.each(mappings,function(mapping) {
|
48
52
|
var value = bowser.browser[mapping[1]];
|
49
53
|
if(value === undefined) {
|
@@ -5,6 +5,7 @@ title: $:/plugins/tiddlywiki/browser-sniff/usage
|
|
5
5
|
The following informational tiddlers are created at startup:
|
6
6
|
|
7
7
|
|!Title |!Description |
|
8
|
+
|[[$:/info/browser/is/mobile]] |Running on mobile device? ("yes" or "no") |
|
8
9
|
|[[$:/info/browser/is/android]] |Running on Android? ("yes" or "no") |
|
9
10
|
|[[$:/info/browser/is/bada]] |Running on Bada? ("yes" or "no") |
|
10
11
|
|[[$:/info/browser/is/blackberry]] |Running on ~BlackBerry? ("yes" or "no") |
|
@@ -26,6 +26,7 @@ if(Object.prototype.hasOwnProperty.call($tw.hooks.names,hookName)) {
|
|
26
26
|
// Load tiddlers from browser storage
|
27
27
|
function hookBootTiddlersLoaded() {
|
28
28
|
var url = window.location.pathname,
|
29
|
+
keysToDelete = [],
|
29
30
|
log = [];
|
30
31
|
// Check that browser storage is available
|
31
32
|
try {
|
@@ -55,16 +56,32 @@ function hookBootTiddlersLoaded() {
|
|
55
56
|
existingTiddler = $tw.wiki.getTiddler(title);
|
56
57
|
if(existingTiddler && existingTiddler.isEqual(incomingTiddler)) {
|
57
58
|
// If the incoming tiddler is the same as the existing then we can delete the local storage version
|
58
|
-
|
59
|
+
// Defer deletion until after this loop, since deleting will shift the index and cause the
|
60
|
+
// index+1 item to be skipped.
|
61
|
+
keysToDelete.push(key);
|
59
62
|
} else {
|
60
63
|
$tw.wiki.addTiddler(incomingTiddler);
|
61
64
|
log.push(title);
|
62
65
|
}
|
63
66
|
}
|
64
67
|
}
|
68
|
+
} else {
|
69
|
+
// Empty value means the tiddler is marked as deleted
|
70
|
+
var title = parts.slice(2).join("#"),
|
71
|
+
existingTiddler = $tw.wiki.getTiddler(title);
|
72
|
+
if(existingTiddler) {
|
73
|
+
// The tiddler still exists in the wiki. Delete it so it won't be visible.
|
74
|
+
$tw.wiki.deleteTiddler(title);
|
75
|
+
} else {
|
76
|
+
// The tiddler is already missing from the wiki, so delete the blank local storage entry
|
77
|
+
keysToDelete.push(key);
|
78
|
+
}
|
65
79
|
}
|
66
80
|
}
|
67
81
|
}
|
82
|
+
$tw.utils.each(keysToDelete,function(key) {
|
83
|
+
window.localStorage.removeItem(key);
|
84
|
+
});
|
68
85
|
// Make sure that all the tiddlers we've loaded are marked as dirty at startup
|
69
86
|
Array.prototype.push.apply($tw.boot.preloadDirty,log);
|
70
87
|
// Save the log
|
@@ -15,5 +15,4 @@ Please use this plugin with caution. There are a number of unresolved issues and
|
|
15
15
|
|
16
16
|
* Innerwikis read the local storage of their parent wikis
|
17
17
|
* This plugin does not interfere with the existing saver mechanism, so you'll still get warnings when refreshing the page, even if your changes are safely committed to local storage
|
18
|
-
* Deleted tiddlers will be restored when the wiki is refreshed
|
19
18
|
* There is a possibility that tiddlers might be transferred between different wikis if they are accessed via the same URL. This is particularly likely when running in local client server configuration under Node.js
|
@@ -14,7 +14,11 @@ Click this button to clear browser storage and disable its use:
|
|
14
14
|
|
15
15
|
! Save Filter
|
16
16
|
|
17
|
-
This filter determines which tiddlers will be saved to local storage.
|
17
|
+
This filter determines which tiddlers will be saved to local storage.
|
18
|
+
|
19
|
+
* `[prefix[$:/state/]] -[prefix[$:/state/popup/]]` - the default value. Save state tiddlers except popup state tiddlers, thus preserving selected tabs and the open/closed status of table of contents entries. Any other tiddlers created or changed will be lost after reloading the page.
|
20
|
+
* `[all[]]` - attempt to save all changed tiddlers. This means even popup state tiddlers and temporary tiddlers will be saved. In addition, when a plugin is installed, all the shadow tiddlers are individually "exploded" into local storage. Deleting the plugin requires deleting all the tiddlers individually. Not recommended unless these issues are unimportant.
|
21
|
+
* `[all[]] -[is[shadow]!is[tiddler]] -[prefix[$:/state/popup/]] -[prefix[$:/temp/]] -[prefix[$:/HistoryList]]` - save all tiddlers except unmodified shadow tiddlers, popup state tiddlers, temp tiddlers and the history list. Solves the aforementioned issues with `[all[]]`. Recommended.
|
18
22
|
|
19
23
|
<$link to="$:/config/BrowserStorage/SaveFilter">Browser Storage Save Filter</$link>: <$edit-text tiddler="$:/config/BrowserStorage/SaveFilter" default="" tag="input" size="50"/>
|
20
24
|
|
@@ -100,9 +100,12 @@ function saveTiddlerToLocalStorage(title,options) {
|
|
100
100
|
}
|
101
101
|
}
|
102
102
|
} else {
|
103
|
-
|
103
|
+
// In local storage, use the special value of empty string to mark the tiddler as deleted
|
104
|
+
// On future page loads, if the tiddler is already gone from startup then the blank entry
|
105
|
+
// will be removed from localstorage. Otherwise, the tiddler will be deleted.
|
106
|
+
console.log("browser-storage: Blanking",title);
|
104
107
|
try {
|
105
|
-
window.localStorage.
|
108
|
+
window.localStorage.setItem(options.prefix + title, "");
|
106
109
|
} catch(e) {
|
107
110
|
console.log("Browser-storage error:",e);
|
108
111
|
}
|
@@ -112,13 +115,15 @@ function saveTiddlerToLocalStorage(title,options) {
|
|
112
115
|
function clearLocalStorage() {
|
113
116
|
var url = window.location.pathname,
|
114
117
|
log = [];
|
115
|
-
// Step through each
|
116
|
-
|
117
|
-
var
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
118
|
+
// Step through each browser storage item
|
119
|
+
if(window.localStorage) {
|
120
|
+
for(var index=window.localStorage.length - 1; index>=0; index--) {
|
121
|
+
var key = window.localStorage.key(index),
|
122
|
+
parts = key.split("#");
|
123
|
+
// Delete it if it is ours
|
124
|
+
if(parts[0] === "tw5" && parts[1] === url) {
|
125
|
+
window.localStorage.removeItem(key);
|
126
|
+
}
|
122
127
|
}
|
123
128
|
}
|
124
129
|
}
|
@@ -1,12 +1,10 @@
|
|
1
1
|
title: $:/plugins/tiddlywiki/dynannotate/readme
|
2
2
|
|
3
|
-
The ''Dynannotate'' plugin allows annotations on textual content to be created and displayed. It has
|
3
|
+
The ''Dynannotate'' plugin allows annotations on textual content to be created and displayed. It has several components:
|
4
4
|
|
5
|
-
* The dynannotate widget
|
6
|
-
* The selection tracker
|
7
|
-
|
8
|
-
|
9
|
-
''Note that the TiddlyWiki core plugin __Dynaview__ is required for correct operation of __Dynannotate__''
|
5
|
+
* The dynannotate widget draws clickable textual annotations, search highlights and search snippets as overlays over the top of the content that it contains
|
6
|
+
* The selection tracker keeps track of changes to the selected text in the main browser window. It triggers an action string when the selection changes, passing it the details of the selection. It can be used to display a popup menu
|
7
|
+
** The original legacy selection tracker is also provided for backwards compatibility. It is much more limited, and not recommended for new projects
|
10
8
|
|
11
9
|
!! Dynannotate Widget
|
12
10
|
|
@@ -32,6 +30,10 @@ The `<$dynannotate>` widget uses the selection tracker to support a popup that d
|
|
32
30
|
|searchCaseSensitive |"no" (default) for a case insensitive search, or "yes" for a case sensitive search |
|
33
31
|
|searchClass |Optional CSS class to be added to search overlays |
|
34
32
|
|snippetContextLength |Optional length of search result contextual prefix/suffix |
|
33
|
+
|
34
|
+
The following attributes are only used with the legacy selection tracker:
|
35
|
+
|
36
|
+
|!Attribute |!Description |
|
35
37
|
|selection |Tiddler to which the currently selected text should be dynamically saved |
|
36
38
|
|selectionPrefix |Tiddler to which up to 50 characters preceding the currently selected text should be dynamically saved |
|
37
39
|
|selectionSuffix |Tiddler to which up to 50 characters succeeding the currently selected text should be dynamically saved |
|
@@ -91,9 +93,71 @@ An annotation tiddler is a tiddler describing an annotation to be overlaid over
|
|
91
93
|
|
92
94
|
Note that using the `annotate-tiddler` field to associate an annotation with the annotated tiddler is a lightweight convention employed by the examples; it isn't actually required by any of the JavaScript code. Thus authors can experiment with other techniques for recording the association.
|
93
95
|
|
94
|
-
!! Selection
|
96
|
+
!! Selection Trackers
|
97
|
+
|
98
|
+
The following configuration tiddlers can be used to control whether the selection trackers are enabled when the following configuration tiddlers are set to ''yes'' (the default).
|
99
|
+
|
100
|
+
* $:/config/Dynannotate/SelectionTracker/Enable for the main selection tracker
|
101
|
+
* $:/config/Dynannotate/LegacySelectionTracker/Enable for the legacy selection tracker
|
102
|
+
|
103
|
+
Both selection trackers are enabled by default.
|
104
|
+
|
105
|
+
!!! Main Selection Tracker
|
106
|
+
|
107
|
+
The selection tracker triggers an action string whenever the browser text selection changes. The actions are delayed until the selection has not changed for 500ms (this means that the selection tracker is only triggered when the user pauses after completing a selection, and is not continuously invoked as the user drags the selection).
|
108
|
+
|
109
|
+
The selection tracker works within DOM subtrees that have the following structure:
|
110
|
+
|
111
|
+
* The outer wrapper element has the attribute `data-selection-action-title` containing the title of the tiddler containing the action string to be invoked when the selection changes
|
112
|
+
* Each child element of the outer element must have a unique `id` attribute to identify it
|
113
|
+
|
114
|
+
```
|
115
|
+
<div data-selection-action-title="{tiddler title}">
|
116
|
+
<div id="{title}">
|
117
|
+
Content text
|
118
|
+
</div>
|
119
|
+
...
|
120
|
+
</div>
|
121
|
+
```
|
122
|
+
|
123
|
+
The action string is invoked with the following variables:
|
124
|
+
|
125
|
+
|!Variable |!Description |
|
126
|
+
|`selection` |A JSON object representing the selection (see below) |
|
127
|
+
|`dom-*` |All DOM attributes of the outer wrapper node are made available as variables, with the prefix `dom-` |
|
128
|
+
|`tv-selection-posx` |X position of the selection in pixels |
|
129
|
+
|`tv-selection-posy` |Y position of the selection in pixels |
|
130
|
+
|`tv-selection-width` |Width of the selection in pixels |
|
131
|
+
|`tv-selection-height` |Height of the selection in pixels |
|
132
|
+
|`tv-selection-coords` |A co-ordinate string that can be used with the ActionPopupWidget to trigger a popup at the selection |
|
133
|
+
|
134
|
+
The JSON representation of the selection is as follows:
|
135
|
+
|
136
|
+
```
|
137
|
+
{
|
138
|
+
"chunks": [
|
139
|
+
{
|
140
|
+
"id": "id-of-first-chunk-of-selection",
|
141
|
+
"text": "text-of-first-chunk-of-selection",
|
142
|
+
"prefix": "optional-prefix-before-first-chunk-of-selection",
|
143
|
+
"suffix": "optional-suffix-after-last-chunk-of-selection"
|
144
|
+
}
|
145
|
+
...
|
146
|
+
],
|
147
|
+
"variables": {
|
148
|
+
<variables listed above>
|
149
|
+
}
|
150
|
+
}
|
151
|
+
```
|
152
|
+
|
153
|
+
Notes:
|
154
|
+
|
155
|
+
* Only the first chunk of the selection may have a "prefix" field which will contain any text at the start of the chunk preceding the selection
|
156
|
+
* Only the last chunk of the selection may have a "suffix" field which will contain any text at the end of the chunk following the selection
|
157
|
+
|
158
|
+
!!! Legacy Selection Tracker
|
95
159
|
|
96
|
-
The selection tracker is incorporated within the `<$dynannotate>` widget,
|
160
|
+
The selection tracker is incorporated within the `<$dynannotate>` widget via the ''selection'', ''selectionPrefix'' ''selectionSuffix'' and ''selectionPopup'' attributes. It can be used independently for specialised applications.
|
97
161
|
|
98
162
|
Each selection container is marked with the class `tc-dynannotate-selection-container`, and should contain the following attributes:
|
99
163
|
|
@@ -183,7 +183,16 @@ DynannotateWidget.prototype.applyAnnotations = function() {
|
|
183
183
|
// We'll dynamically build the click event handler so that we can reuse it
|
184
184
|
var clickHandlerFn = function(title) {
|
185
185
|
return function(event,domOverlay,modifierKey) {
|
186
|
-
|
186
|
+
var bounds = domOverlay.getBoundingClientRect();
|
187
|
+
self.invokeActionString(self.getAttribute("actions"),self,event,{
|
188
|
+
annotationTiddler: title,
|
189
|
+
modifier: modifierKey,
|
190
|
+
"tv-selection-posx": (bounds.left).toString(),
|
191
|
+
"tv-selection-posy": (bounds.top).toString(),
|
192
|
+
"tv-selection-width": (bounds.width).toString(),
|
193
|
+
"tv-selection-height": (bounds.height).toString(),
|
194
|
+
"tv-selection-coords": "(" + bounds.left + "," + bounds.top + "," + bounds.width + "," + bounds.height + ")"
|
195
|
+
});
|
187
196
|
if(self.hasAttribute("popup")) {
|
188
197
|
$tw.popup.triggerPopup({
|
189
198
|
domNode: domOverlay,
|
@@ -0,0 +1,104 @@
|
|
1
|
+
/*\
|
2
|
+
title: $:/plugins/tiddlywiki/dynannotate/legacy-selection-tracker.js
|
3
|
+
type: application/javascript
|
4
|
+
module-type: library
|
5
|
+
|
6
|
+
Legacy version of the dyannotate background daemon to track the selection
|
7
|
+
|
8
|
+
\*/
|
9
|
+
(function(){
|
10
|
+
|
11
|
+
/*jslint node: true, browser: true */
|
12
|
+
/*global $tw: false */
|
13
|
+
"use strict";
|
14
|
+
|
15
|
+
var TextMap = require("$:/plugins/tiddlywiki/dynannotate/textmap.js").TextMap;
|
16
|
+
|
17
|
+
function LegacySelectionTracker(wiki,options) {
|
18
|
+
options = options || {};
|
19
|
+
var self = this;
|
20
|
+
this.wiki = wiki;
|
21
|
+
this.allowBlankSelectionPopup = options.allowBlankSelectionPopup;
|
22
|
+
this.selectionPopupTitle = null;
|
23
|
+
document.addEventListener("selectionchange",function(event) {
|
24
|
+
var selection = document.getSelection();
|
25
|
+
if(selection && (selection.type === "Range" || (self.allowBlankSelectionPopup && !self.selectionPopupTitle))) {
|
26
|
+
// Look for the selection containers for each of the two ends of the selection
|
27
|
+
var anchorContainer = self.findSelectionContainer(selection.anchorNode),
|
28
|
+
focusContainer = self.findSelectionContainer(selection.focusNode);
|
29
|
+
// If either end of the selection then we ignore it
|
30
|
+
if(!!anchorContainer || !!focusContainer) {
|
31
|
+
var selectionRange = selection.getRangeAt(0);
|
32
|
+
// Check for the selection spilling outside the starting container
|
33
|
+
if((anchorContainer !== focusContainer) || (selectionRange.startContainer.nodeType !== Node.TEXT_NODE && selectionRange.endContainer.nodeType !== Node.TEXT_NODE)) {
|
34
|
+
if(self.selectionPopupTitle) {
|
35
|
+
self.wiki.deleteTiddler(self.selectionPopupTitle);
|
36
|
+
self.selectionPopupTitle = null;
|
37
|
+
}
|
38
|
+
} else {
|
39
|
+
self.selectionSaveTitle = anchorContainer.getAttribute("data-annotation-selection-save");
|
40
|
+
self.selectionPrefixSaveTitle = anchorContainer.getAttribute("data-annotation-selection-prefix-save");
|
41
|
+
self.selectionSuffixSaveTitle = anchorContainer.getAttribute("data-annotation-selection-suffix-save");
|
42
|
+
self.selectionPopupTitle = anchorContainer.getAttribute("data-annotation-selection-popup");
|
43
|
+
// The selection is a range so we trigger the popup
|
44
|
+
if(self.selectionPopupTitle) {
|
45
|
+
var selectionRectangle = selectionRange.getBoundingClientRect(),
|
46
|
+
trackingRectangle = anchorContainer.getBoundingClientRect();
|
47
|
+
$tw.popup.triggerPopup({
|
48
|
+
domNode: null,
|
49
|
+
domNodeRect: {
|
50
|
+
left: selectionRectangle.left - trackingRectangle.left,
|
51
|
+
top: selectionRectangle.top - trackingRectangle.top,
|
52
|
+
width: selectionRectangle.width,
|
53
|
+
height: selectionRectangle.height
|
54
|
+
},
|
55
|
+
force: true,
|
56
|
+
floating: true,
|
57
|
+
title: self.selectionPopupTitle,
|
58
|
+
wiki: self.wiki
|
59
|
+
});
|
60
|
+
}
|
61
|
+
// Write the selection text to the specified tiddler
|
62
|
+
if(self.selectionSaveTitle) {
|
63
|
+
// Note that selection.toString() normalizes whitespace but selection.getRangeAt(0).toString() does not
|
64
|
+
var text = selectionRange.toString();
|
65
|
+
self.wiki.addTiddler(new $tw.Tiddler({title: self.selectionSaveTitle, text: text}));
|
66
|
+
// Build a textmap of the container so that we can find the prefix and suffix
|
67
|
+
var textMap = new TextMap(anchorContainer);
|
68
|
+
// Find the selection start in the text map and hence extract the prefix and suffix
|
69
|
+
var context = textMap.extractContext(selectionRange.startContainer,selectionRange.startOffset,text);
|
70
|
+
// Save the prefix and suffix
|
71
|
+
if(context) {
|
72
|
+
if(self.selectionPrefixSaveTitle) {
|
73
|
+
self.wiki.addTiddler(new $tw.Tiddler({title: self.selectionPrefixSaveTitle, text: context.prefix}));
|
74
|
+
}
|
75
|
+
if(self.selectionSuffixSaveTitle) {
|
76
|
+
self.wiki.addTiddler(new $tw.Tiddler({title: self.selectionSuffixSaveTitle, text: context.suffix}));
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
} else {
|
83
|
+
// If the selection is a caret we clear any active popup
|
84
|
+
if(self.selectionPopupTitle) {
|
85
|
+
self.wiki.deleteTiddler(self.selectionPopupTitle);
|
86
|
+
self.selectionPopupTitle = null;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
});
|
90
|
+
}
|
91
|
+
|
92
|
+
LegacySelectionTracker.prototype.findSelectionContainer = function findSelectionContainer(domNode) {
|
93
|
+
if(domNode && domNode.nodeType === Node.ELEMENT_NODE && domNode.classList.contains("tc-dynannotation-selection-container")) {
|
94
|
+
return domNode;
|
95
|
+
}
|
96
|
+
if(domNode && domNode.parentNode) {
|
97
|
+
return findSelectionContainer(domNode.parentNode);
|
98
|
+
}
|
99
|
+
return null;
|
100
|
+
};
|
101
|
+
|
102
|
+
exports.LegacySelectionTracker = LegacySelectionTracker;
|
103
|
+
|
104
|
+
})();
|