diff --git a/core/wiki/macros/toc.tid b/core/wiki/macros/toc.tid index de80185a0..e0e60f73c 100644 --- a/core/wiki/macros/toc.tid +++ b/core/wiki/macros/toc.tid @@ -17,6 +17,10 @@ tags: $:/tags/Macro \procedure toc-open-icon() $:/core/images/down-arrow \procedure toc-closed-icon() $:/core/images/right-arrow +\procedure toc-hide-field() toc-hide +\procedure toc-include-field() toc-include +\procedure toc-filter-field() toc-filter + \function tf.toc-itemClassFilter() [get[text]matchthen[toc-item-selected]else[toc-item]] \function tf.toc-includeClass() [subfiltermatchthen[toc-item-include]] @@ -26,15 +30,15 @@ tags: $:/tags/Macro \function tf.toc-itemClass() [] [] [] [] +[join[ ]] -\function tf.toc-getHideText() [get[toc-hide]] +\function tf.toc-getHideText() [get] \function tf.toc-hideIsYes() [format:titlelist[]] \function tf.toc-hide() [match[yes]then] :else[] -\function tf.toc-include() [get[toc-include]] -\function tf.toc-filter() [get[toc-filter]] +\function tf.toc-include() [get] +\function tf.toc-filter() [get] \function tf.toc-newPath() [addsuffix[/]addsuffix] @@ -167,7 +171,7 @@ Shows an expandable toc. Item always have an open/close chevron \end -\function tf.toc-curTidInclude() [get[toc-include]] +\function tf.toc-curTidInclude() [get] \procedure toc-linked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path) <$qualify name="toc-state" title=<>> diff --git a/editions/tw5.com/tiddlers/$__StoryList.tid b/editions/tw5.com/tiddlers/$__StoryList.tid index 37ea75152..36f58c3ce 100644 --- a/editions/tw5.com/tiddlers/$__StoryList.tid +++ b/editions/tw5.com/tiddlers/$__StoryList.tid @@ -1,5 +1,3 @@ -created: 20220728145919904 -list: Brackets Base64 HelloThere GettingStarted Community -modified: 20220728145919904 +list: [[Draft of 'test-contacts']] [[b b]] title: $:/StoryList type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/$__config_TextEditor_EditorHeight_Height.tid b/editions/tw5.com/tiddlers/$__config_TextEditor_EditorHeight_Height.tid new file mode 100644 index 000000000..bbecc23bf --- /dev/null +++ b/editions/tw5.com/tiddlers/$__config_TextEditor_EditorHeight_Height.tid @@ -0,0 +1,6 @@ +created: 20240204164044449 +modified: 20240204164141059 +title: $:/config/TextEditor/EditorHeight/Height +type: text/vnd.tiddlywiki + +400px; \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/$__config_TextEditor_EditorHeight_Mode.tid b/editions/tw5.com/tiddlers/$__config_TextEditor_EditorHeight_Mode.tid new file mode 100644 index 000000000..1fce26298 --- /dev/null +++ b/editions/tw5.com/tiddlers/$__config_TextEditor_EditorHeight_Mode.tid @@ -0,0 +1,6 @@ +created: 20240204164038858 +modified: 20240204164143744 +title: $:/config/TextEditor/EditorHeight/Mode +type: text/vnd.tiddlywiki + +fixed \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/$__themes_tiddlywiki_vanilla_metrics_sidebarwidth.tid b/editions/tw5.com/tiddlers/$__themes_tiddlywiki_vanilla_metrics_sidebarwidth.tid new file mode 100644 index 000000000..2b8809fca --- /dev/null +++ b/editions/tw5.com/tiddlers/$__themes_tiddlywiki_vanilla_metrics_sidebarwidth.tid @@ -0,0 +1,6 @@ +created: 20240201195012281 +modified: 20240203002807686 +title: $:/themes/tiddlywiki/vanilla/metrics/sidebarwidth +type: text/vnd.tiddlywiki + +450px \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/Draft of 'test-contacts'.tid b/editions/tw5.com/tiddlers/Draft of 'test-contacts'.tid new file mode 100644 index 000000000..3cd491583 --- /dev/null +++ b/editions/tw5.com/tiddlers/Draft of 'test-contacts'.tid @@ -0,0 +1,44 @@ +created: 20240204014515455 +draft.of: test-contacts +draft.title: test-contacts +modified: 20240205200935576 +tags: +title: Draft of 'test-contacts' +type: text/vnd.tiddlywiki + + + + +
+<> +
diff --git a/editions/tw5.com/tiddlers/MR.tid b/editions/tw5.com/tiddlers/MR.tid new file mode 100644 index 000000000..867a3f259 --- /dev/null +++ b/editions/tw5.com/tiddlers/MR.tid @@ -0,0 +1,7 @@ +created: 20240204014414845 +first-name: Robert +last-name: Müller +modified: 20240204030403210 +tags: person +title: MR +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/New Tiddler 1.tid b/editions/tw5.com/tiddlers/New Tiddler 1.tid new file mode 100644 index 000000000..a534e9f12 --- /dev/null +++ b/editions/tw5.com/tiddlers/New Tiddler 1.tid @@ -0,0 +1,10 @@ +created: 20240201200126315 +modified: 20240204013212392 +tags: +title: New Tiddler 1 +type: text/vnd.tiddlywiki + +
+<> +
+ \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/New Tiddler 2.tid b/editions/tw5.com/tiddlers/New Tiddler 2.tid new file mode 100644 index 000000000..7bbf77c5e --- /dev/null +++ b/editions/tw5.com/tiddlers/New Tiddler 2.tid @@ -0,0 +1,16 @@ +created: 20240202131409493 +modified: 20240202223322380 +tags: aaa +title: New Tiddler 2 +type: text/vnd.tiddlywiki + +<$let + myFilter="[tag[aaa]]" + toc-exclude-yes="[]" + toc-exclude="[[b b]]" + toc-include="[tag[test]]" + + toc-exclude={{{ [match[yes]thenelse] }}} +> + +<$list filter="[subfilter] [subfilter] -[subfilter]"/> diff --git a/editions/tw5.com/tiddlers/New Tiddler 3.tid b/editions/tw5.com/tiddlers/New Tiddler 3.tid new file mode 100644 index 000000000..eca572dbf --- /dev/null +++ b/editions/tw5.com/tiddlers/New Tiddler 3.tid @@ -0,0 +1,5 @@ +created: 20240204045534918 +modified: 20240204045536437 +tags: todo1 +title: New Tiddler 3 +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/SR.tid b/editions/tw5.com/tiddlers/SR.tid new file mode 100644 index 000000000..cca518e91 --- /dev/null +++ b/editions/tw5.com/tiddlers/SR.tid @@ -0,0 +1,7 @@ +created: 20240204014347171 +first-name: Robert +last-name: Schlager +modified: 20240204014450686 +tags: person +title: SR +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/__state_popup_toc_useGlobal.tid b/editions/tw5.com/tiddlers/__state_popup_toc_useGlobal.tid new file mode 100644 index 000000000..2387d85f6 --- /dev/null +++ b/editions/tw5.com/tiddlers/__state_popup_toc_useGlobal.tid @@ -0,0 +1,6 @@ +created: 20240201204233476 +modified: 20240201205239293 +title: _/state/popup/toc/useGlobal +type: text/vnd.tiddlywiki + +yes \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/aaa.tid b/editions/tw5.com/tiddlers/aaa.tid new file mode 100644 index 000000000..6a916b3f8 --- /dev/null +++ b/editions/tw5.com/tiddlers/aaa.tid @@ -0,0 +1,5 @@ +created: 20240202131427117 +modified: 20240203012638744 +tags: root [[b b]] aaa +title: aaa +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/asdf.tid b/editions/tw5.com/tiddlers/asdf.tid new file mode 100644 index 000000000..2a448a43c --- /dev/null +++ b/editions/tw5.com/tiddlers/asdf.tid @@ -0,0 +1,5 @@ +created: 20240202112653767 +modified: 20240202112700329 +tags: one +title: asdf +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/b b.tid b/editions/tw5.com/tiddlers/b b.tid new file mode 100644 index 000000000..08f41a1ad --- /dev/null +++ b/editions/tw5.com/tiddlers/b b.tid @@ -0,0 +1,17 @@ +created: 20240202131440055 +modified: 20240205195920345 +tags: aaa +title: b b +toc-filter: +toc-hide: +toc-include: [prefix[todo]] +toc-includeX: [prefix[todo]] +toc-link: +type: text/vnd.tiddlywiki + + {{{ [subfilter] }}} + +{{{ [{read-only-mode}match[yes]then] }}} + + +{{{ [tag[todo]!tag[done]] +[!sort[modified]] }}} \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/ccc.tid b/editions/tw5.com/tiddlers/ccc.tid new file mode 100644 index 000000000..914b3af0c --- /dev/null +++ b/editions/tw5.com/tiddlers/ccc.tid @@ -0,0 +1,5 @@ +created: 20240202225320834 +modified: 20240204011950080 +tags: [[b b]] +title: ccc +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/contacts.tid b/editions/tw5.com/tiddlers/contacts.tid new file mode 100644 index 000000000..370dcd417 --- /dev/null +++ b/editions/tw5.com/tiddlers/contacts.tid @@ -0,0 +1,6 @@ +created: 20240204014534832 +modified: 20240205180618408 +tags: root +title: contacts +toc-include: [tag[person]sort[last-name]] +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/creative-way-to-use-functions-01.tid b/editions/tw5.com/tiddlers/creative-way-to-use-functions-01.tid new file mode 100644 index 000000000..95c0126a3 --- /dev/null +++ b/editions/tw5.com/tiddlers/creative-way-to-use-functions-01.tid @@ -0,0 +1,23 @@ +created: 20240202103010434 +modified: 20240202103557952 +tags: +title: creative-way-to-use-functions-01 +type: text/vnd.tiddlywiki + +\function f.taggedList(tag) [taglimit[3]] +\function f.opFields() [fields[]prefix[op]] -[[text]] -[[title]] + +<$list filter="[f.taggedList[Filter Operators]]"> + + + + + + <$list filter="[f.opFields[]]" variable=fieldname> + + + + + +
<$link/>
<><$transclude $field=<>/>
+ \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/creative-way-to-use-functions-02.tid b/editions/tw5.com/tiddlers/creative-way-to-use-functions-02.tid new file mode 100644 index 000000000..41afc6ab2 --- /dev/null +++ b/editions/tw5.com/tiddlers/creative-way-to-use-functions-02.tid @@ -0,0 +1,24 @@ +created: 20240202094222684 +modified: 20240202103555585 +tags: +title: creative-way-to-use-functions-02 +type: text/vnd.tiddlywiki + +\function f.taggedList(test, tag) [] [taglimit[3]] +\function f.opFields() [fields[]prefix[op]] -[[text]] -[[title]] + +<$list filter="[function[f.taggedList],[non existing Title],[Filter Operators]]"> + + + + + + <$list filter="[function[f.opFields]]" variable=fieldname> + + + + + +
<$link/>
<><$transclude $field=<>/>
+ + diff --git a/editions/tw5.com/tiddlers/ddd.tid b/editions/tw5.com/tiddlers/ddd.tid new file mode 100644 index 000000000..05e3ca2f2 --- /dev/null +++ b/editions/tw5.com/tiddlers/ddd.tid @@ -0,0 +1,5 @@ +created: 20240203010827945 +modified: 20240204175634987 +tags: [[b b]] +title: ddd +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/demonstrations/TableOfContents/Second.tid b/editions/tw5.com/tiddlers/demonstrations/TableOfContents/Second.tid index 733321e13..ef662fc46 100644 --- a/editions/tw5.com/tiddlers/demonstrations/TableOfContents/Second.tid +++ b/editions/tw5.com/tiddlers/demonstrations/TableOfContents/Second.tid @@ -1,6 +1,8 @@ created: 20150221194408000 -modified: 20211114013601190 +modified: 20240203175856801 tags: Contents [[Table-of-Contents Demonstrations]] title: Second +toc-xxx: yes +type: text/vnd.tiddlywiki <<.toc-lorem>> diff --git a/editions/tw5.com/tiddlers/eee.tid b/editions/tw5.com/tiddlers/eee.tid new file mode 100644 index 000000000..361a2a994 --- /dev/null +++ b/editions/tw5.com/tiddlers/eee.tid @@ -0,0 +1,5 @@ +created: 20240203012325174 +modified: 20240203013847790 +tags: z [[New Tiddler 2]] +title: eee +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/pmario.tid b/editions/tw5.com/tiddlers/pmario.tid new file mode 100644 index 000000000..da91169ef --- /dev/null +++ b/editions/tw5.com/tiddlers/pmario.tid @@ -0,0 +1,7 @@ +created: 20240204014317494 +first-name: Mario +last-name: Pietsch +modified: 20240204014456821 +tags: person +title: pmario +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/read-only-mode.tid b/editions/tw5.com/tiddlers/read-only-mode.tid new file mode 100644 index 000000000..00323178f --- /dev/null +++ b/editions/tw5.com/tiddlers/read-only-mode.tid @@ -0,0 +1,7 @@ +created: 20240204002222736 +modified: 20240204002230160 +tags: +title: read-only-mode +type: text/vnd.tiddlywiki + +yes \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/test-contacts.tid b/editions/tw5.com/tiddlers/test-contacts.tid new file mode 100644 index 000000000..36d06aff1 --- /dev/null +++ b/editions/tw5.com/tiddlers/test-contacts.tid @@ -0,0 +1,42 @@ +created: 20240204014515455 +modified: 20240205200223848 +tags: +title: test-contacts +type: text/vnd.tiddlywiki + + + + +
+<> +
diff --git a/editions/tw5.com/tiddlers/test-exclude-show-empty-text.tid b/editions/tw5.com/tiddlers/test-exclude-show-empty-text.tid new file mode 100644 index 000000000..8350f1655 --- /dev/null +++ b/editions/tw5.com/tiddlers/test-exclude-show-empty-text.tid @@ -0,0 +1,17 @@ +created: 20240202112417445 +modified: 20240202131358311 +tags: test +title: test-exclude-show-empty-text +type: text/vnd.tiddlywiki + +<$let + myFilter="[tag[one]]" + toc-exclude-yes="[]]" + toc-exclude="yesX" + toc-include="[tag[test]sort[created]]" + + toc-exclude={{{ [match[yes]thenelse] }}} +> + +<$list filter="[subfilter] [subfilter] -[subfilter]" emptyMessage="toc-exclude - removed everything"/> + diff --git a/editions/tw5.com/tiddlers/test-toc-include-toc-exclude.tid b/editions/tw5.com/tiddlers/test-toc-include-toc-exclude.tid new file mode 100644 index 000000000..180cff6b3 --- /dev/null +++ b/editions/tw5.com/tiddlers/test-toc-include-toc-exclude.tid @@ -0,0 +1,16 @@ +code-body: yes +created: 20240202112158339 +modified: 20240202114434232 +tags: one +title: test-toc-include-toc-exclude +type: text/vnd.tiddlywiki + +<$let myFilter="[tag[one]]" +toc-exclude-yes="[]" +toc-exclude="asdf" +toc-include="[tag[test]]" + +toc-exclude={{{ [match[yes]thenelse] }}} +> + +<$list filter="[subfilter] [subfilter] -[subfilter]"/> diff --git a/editions/tw5.com/tiddlers/test-xxx.tid b/editions/tw5.com/tiddlers/test-xxx.tid new file mode 100644 index 000000000..39d91bb21 --- /dev/null +++ b/editions/tw5.com/tiddlers/test-xxx.tid @@ -0,0 +1,11 @@ +created: 20240203175824154 +modified: 20240204002037300 +tags: +title: test-xxx +type: text/vnd.tiddlywiki + +\function tf.toc-exclude() [get[toc-xxx]] + +
+<> +
\ No newline at end of file diff --git a/editions/tw5.com/tiddlers/test.tid b/editions/tw5.com/tiddlers/test.tid new file mode 100644 index 000000000..b973cd979 --- /dev/null +++ b/editions/tw5.com/tiddlers/test.tid @@ -0,0 +1,12 @@ +created: 20240202161649264 +modified: 20240205180207663 +tags: +title: test +toc-include: asdf +type: text/vnd.tiddlywiki + + +
+<$macrocall $name=toc tag=root /> +
+ \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/toc-basic.tid b/editions/tw5.com/tiddlers/toc-basic.tid new file mode 100644 index 000000000..a352ce80a --- /dev/null +++ b/editions/tw5.com/tiddlers/toc-basic.tid @@ -0,0 +1,10 @@ +created: 20240201132228945 +modified: 20240201145229473 +tags: +title: toc-basic +type: text/vnd.tiddlywiki + +
+<> +
+ diff --git a/editions/tw5.com/tiddlers/toc-expandable.tid b/editions/tw5.com/tiddlers/toc-expandable.tid new file mode 100644 index 000000000..c0d594d27 --- /dev/null +++ b/editions/tw5.com/tiddlers/toc-expandable.tid @@ -0,0 +1,10 @@ +created: 20240201145231868 +modified: 20240201161435056 +tags: +title: toc-expandable +type: text/vnd.tiddlywiki + +
+<> +
+ diff --git a/editions/tw5.com/tiddlers/todo1.tid b/editions/tw5.com/tiddlers/todo1.tid new file mode 100644 index 000000000..b07a9f237 --- /dev/null +++ b/editions/tw5.com/tiddlers/todo1.tid @@ -0,0 +1,6 @@ +created: 20240204010938186 +modified: 20240204052314378 +tags: todo +title: todo1 +toc-link: no +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/todo2.tid b/editions/tw5.com/tiddlers/todo2.tid new file mode 100644 index 000000000..4bbae6074 --- /dev/null +++ b/editions/tw5.com/tiddlers/todo2.tid @@ -0,0 +1,5 @@ +created: 20240204010944841 +modified: 20240204012556472 +tags: todo +title: todo2 +type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/toggle-global.tid b/editions/tw5.com/tiddlers/toggle-global.tid new file mode 100644 index 000000000..ec3850a13 --- /dev/null +++ b/editions/tw5.com/tiddlers/toggle-global.tid @@ -0,0 +1,12 @@ +created: 20240201200204741 +modified: 20240201204212302 +tags: +title: toggle-global +type: text/vnd.tiddlywiki + +\define xyyyx() +<$action-deletetiddler $tiddler="_/state/popup/toc/useGlobal"/> +\end +<$checkbox tiddler="_/state/popup/toc/useGlobal" field="text" checked="yes" unchecked="no" default="no" uncheckactions=<>> Use TOC global state + +[[_/state/popup/toc/useGlobal]] \ No newline at end of file