mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-05 18:26:56 +00:00
Merge 99fef236fba343b80ddea9e3884943f18193212d into 2cb5f57c69c94d47f447246edfa49e8519743ee2
This commit is contained in:
commit
d2dbd2b46d
12
core/images/new-child.tid
Normal file
12
core/images/new-child.tid
Normal file
@ -0,0 +1,12 @@
|
||||
tags: $:/tags/Image
|
||||
title: $:/core/images/new-child
|
||||
|
||||
\parameters (size:"22pt")
|
||||
<svg class="tc-image-edit-button tc-image-button" viewBox="0 0 128 128" width=<<size>> height=<<size>>>
|
||||
<path d="M6.9 27.9a6.72 6.96 0 1 0 0 13.9h41a6.72 6.96 0 1 0 0-13.9z"
|
||||
transform="translate(13.6 62.5)" />
|
||||
<path d="M27.3 4.57a6.72 6.96 0 0 0-6.64 7.05v46.5a6.72 6.96 0 1 0 13.4 0v-46.5a6.72 6.96 0 0 0-6.81-7.05z"
|
||||
transform="translate(13.6 62.5)" />
|
||||
<path d="M60.5 58.1c-3.75-.055-6.82 3.08-6.82 6.96s3.07 7.01 6.82 6.96h46.1c3.75.055 6.82-3.08 6.82-6.96s-3.07-7.01-6.82-6.96zM20.5 28.4c-3.75-.055-6.82 3.08-6.82 6.96s3.07 7.01 6.82 6.96h86.1c3.75.055 6.82-3.08 6.82-6.96s-3.07-7.01-6.82-6.96z"/>
|
||||
</svg>
|
||||
|
50
core/ui/TestCases/DefaultTemplateSourceTabedStory.tid
Normal file
50
core/ui/TestCases/DefaultTemplateSourceTabedStory.tid
Normal file
@ -0,0 +1,50 @@
|
||||
title: $:/core/ui/testcases/DefaultTemplate/TabbedStory
|
||||
|
||||
\whitespace trim
|
||||
|
||||
\procedure testcaseNewTitle() $:/temp/testcase/draft-title
|
||||
|
||||
\procedure saveActions()
|
||||
<$action-setfield $tiddler=<<currentTab>> $field="draft.title" $value={{{ [<testcaseNewTitle>get[text]] }}}/>
|
||||
<$action-sendmessage $message="tm-save-tiddler" $param=<<title>> />
|
||||
<$action-navigate $to=<<navTitle>> $scroll="no"/>
|
||||
<$action-deletetiddler $tiddler=<<testcaseNewTitle>>/>
|
||||
\end
|
||||
|
||||
\procedure saveButton(title, navTitle)
|
||||
<$button class="tc-btn-invisible tc-test-case-save-button tc-small-gap-left" actions=<<saveActions>> disabled={{{ [<testcaseNewTitle>!has[text]then[yes]] }}}>
|
||||
{{$:/core/images/done-button}}
|
||||
</$button>
|
||||
\end
|
||||
|
||||
\procedure body()
|
||||
<$list filter="[<currentTab>fields[]] -text +[limit[1]]" variable="ignore" >
|
||||
<table class="tc-field-table">
|
||||
<tbody>
|
||||
<$list filter="[<currentTab>fields[]sort[]] -text -title title +[putfirst[]]" variable="fieldName">
|
||||
<tr>
|
||||
<td>
|
||||
<$text text=<<fieldName>>/>
|
||||
</td>
|
||||
<td>
|
||||
<%if [<fieldName>match[draft.title]] %>
|
||||
<$edit-text class="tc-edit-texteditor tc-max-width-80" tiddler=<<testcaseNewTitle>> focus="yes" tag="input"/>
|
||||
<$macrocall $name="saveButton" navTitle={{{ [<currentTab>get[draft.title]] }}} title=<<currentTab>>/>
|
||||
<%else%>
|
||||
<$view tiddler=<<currentTab>> field=<<fieldName>>/>
|
||||
<%endif%>
|
||||
</td>
|
||||
</tr>
|
||||
</$list>
|
||||
</tbody>
|
||||
</table>
|
||||
</$list>
|
||||
<$edit class="tc-edit-texteditor" tiddler=<<currentTab>>/>
|
||||
<div class="tc-test-case-footer-toolbar">
|
||||
<$macrocall $name="copy-to-clipboard" src={{{ [<currentTab>get[text]] }}}/>
|
||||
</div>
|
||||
\end
|
||||
|
||||
<$let currentTab={{{ [{$:/HistoryList!!current-tiddler}!is[blank]else[Output]] }}}>
|
||||
<$transclude $variable="body" $mode="inline"/>
|
||||
</$let>
|
@ -1,225 +1,497 @@
|
||||
title: $:/core/macros/toc
|
||||
tags: $:/tags/Macro
|
||||
|
||||
<!--
|
||||
Naming rules
|
||||
- functions eg: tf.toc-variableName, "tf." ... function prefix reservered for TW, "toc-" ... global macro prefix, "variableName"
|
||||
- procedures eg: toc-procedureName,
|
||||
- macro parameters: path, itemTemplate
|
||||
- derived macro parameters: _path, _itemTemplate ... derived variables start with an underscore
|
||||
- some \function definitions are near their first use in the middle of the code, to find them easily
|
||||
|
||||
\define toc-open-icon() $:/core/images/down-arrow
|
||||
\define toc-closed-icon() $:/core/images/right-arrow
|
||||
The toc-macro code is heavily reused from top to bottom.
|
||||
toc-tabbed-internal-nav calls toc-tabbed-external-nav, which calls toc-selective-expandable, which calls toc-expandable
|
||||
|
||||
The very first toc macro is _not_ reused. So it can be used as a simple reference implementation, because it is relatively easy to debug.
|
||||
-->
|
||||
|
||||
\define toc-caption()
|
||||
\whitespace trim
|
||||
<span class="tc-toc-caption tc-tiny-gap-left">
|
||||
<$set name="tv-wikilinks" value="no">
|
||||
<$transclude field="caption">
|
||||
<$view field="title"/>
|
||||
</$transclude>
|
||||
</$set>
|
||||
</span>
|
||||
|
||||
<!-- The field to show depends on the following cascade - default: title -->
|
||||
\procedure _hasItemTemplate() [<itemTemplate>!is[blank]then[text]]
|
||||
\procedure _hasCaptionField() [get<captionField>!is[blank]then<captionField>]
|
||||
\procedure _hasCaption() [has[caption]then[caption]]
|
||||
|
||||
\function tf.toc-getTooltip() [<currentTiddler>get[toc-tooltip]!is[blank]] :else[<currentTiddler>]
|
||||
|
||||
<!-- Use this item template as a default -->
|
||||
\procedure toc-defaultItemTemplate()
|
||||
<%if [<_mode>match[tagMode][toc-caption]is[variable]] %>
|
||||
<$transclude $variable="toc-caption"/>
|
||||
<%else%>
|
||||
<$let tv-wikilinks="no"
|
||||
field={{{ [<currentTiddler>] :cascade[<_hasItemTemplate>append<_hasCaptionField>append<_hasCaption>append[title]] }}}
|
||||
>
|
||||
<span class=""
|
||||
data-fieldClass=`field-$(field)$`
|
||||
title=<<tf.toc-getTooltip>>
|
||||
>
|
||||
<$transclude $field=<<field>>/>
|
||||
</span>
|
||||
<<toc-newChildButton>>
|
||||
<!-- Do not remove next line it's needed for debugging -->
|
||||
<!-- <sup class="tc-small-gap-left"><<_mode>></sup> -->
|
||||
</$let>
|
||||
<%endif%>
|
||||
\end
|
||||
|
||||
\define toc-body(tag,sort:"",itemClassFilter,exclude,path)
|
||||
\whitespace trim
|
||||
\procedure toc-newChildButton()
|
||||
\procedure _newChild(field:"parent")
|
||||
<$button tooltip=`New Child -> "$(field)$: $(currentTiddler)$"`
|
||||
aria-label="new child here"
|
||||
class="tc-btn-invisible tc-toc-new-child"
|
||||
>
|
||||
<% if [<_mode>match[tocpMode]] %>
|
||||
<$action-sendmessage $message="tm-new-tiddler" $name=<<field>> $value=<<currentTiddler>>/>
|
||||
{{$:/core/images/new-child}}
|
||||
<% else %>
|
||||
<$action-sendmessage $message="tm-new-tiddler" $name=<<field>> $value={{{[<currentTiddler>format:titlelist[]]}}}/>
|
||||
{{$:/core/images/new-here-button}}
|
||||
<% endif %>
|
||||
</$button>
|
||||
\end _newChild
|
||||
<% if [<tv-toc-show-new-child>match[yes]] %>
|
||||
<% if [<_mode>match[tagMode]] %>
|
||||
<span class="tc-small-gap-left tc-toc-new-child-tag"><$macrocall $name="_newChild" field="tags"/></span>
|
||||
<% elseif [<_mode>match[tocpMode]] %>
|
||||
<span class="tc-small-gap-left tc-toc-new-child-parent"><$macrocall $name="_newChild" field=<<parentField>>/></span>
|
||||
<% elseif [<_mode>match[tagLikeMode]] %>
|
||||
<span class="tc-small-gap-left tc-toc-new-child-tagLike"><$macrocall $name="_newChild" field=<<tagField>>/></span>
|
||||
<% endif %>
|
||||
<% endif %>
|
||||
\end
|
||||
|
||||
<!--
|
||||
Check if a user defined item template should be used.
|
||||
It can be a macro parameter: itemTemplate or a tiddler field: toc-itemTemplate. Tiddler field takes precedence
|
||||
If the macro parameter is empty - Use the toc-defaultItemTemplate
|
||||
-->
|
||||
\function tf.toc-getItemTemplateTitle() [<currentTiddler>get[toc-itemTemplate]] :filter[has[text]] :else[<itemTemplate>has[text]then<itemTemplate>]
|
||||
|
||||
\procedure _itemTemplate()
|
||||
<$transclude $tiddler=<<tf.toc-getItemTemplateTitle>> >
|
||||
<<toc-defaultItemTemplate>>
|
||||
</$transclude>
|
||||
\end
|
||||
|
||||
<!-- Next 2 allow custom icons (TW v5.2.4). Keep names for backwards compatibility -->
|
||||
\procedure toc-open-icon() $:/core/images/down-arrow
|
||||
\procedure toc-closed-icon() $:/core/images/right-arrow
|
||||
|
||||
<!-- Default field names -->
|
||||
\procedure toc-hideField() toc-hide
|
||||
\procedure toc-includeField() toc-include
|
||||
\procedure toc-filterField() toc-filter
|
||||
|
||||
<!-- Helper functions for LI class definitions on the branch level -->
|
||||
\function tf.toc-itemClassFilter() [<selectedTiddler>get[text]match<currentTiddler>then[toc-item-selected]else[toc-item]]
|
||||
\function tf.toc-includeClass() [subfilter<tf.toc-include>match<currentTiddler>then[tc-toc-include]]
|
||||
\function tf.toc-filterClass() [subfilter<tf.toc-filter>match<currentTiddler>then[tc-toc-filter]]
|
||||
\function tf.toc-hideClass() [<tf.toc-hide>!is[blank]then[tc-toc-hide]]
|
||||
<!-- join the CSS definitions from above -->
|
||||
\function tf.toc-itemClass() [<tf.toc-itemClassFilter>] [<tf.toc-includeClass>] [<tf.toc-filterClass>] [<tf.toc-hideClass>] +[join[ ]]
|
||||
|
||||
<!-- Special case: if toc-hide field is "yes", we need a currentTiddler *titlelist* - otherwise return the content as text -->
|
||||
<!-- The following functions need to use <currentTiddler> -->
|
||||
\function tf.toc-getHideText() [<currentTiddler>get<toc-hideField>]
|
||||
\function tf.toc-hideIsYes() [<currentTiddler>format:titlelist[]]
|
||||
\function tf.toc-hide() [<tf.toc-getHideText>match[yes]then<tf.toc-hideIsYes>] :else[<tf.toc-getHideText>]
|
||||
|
||||
<!-- Read tf.toc-include and tf.toc-filter from fields. Need to use the <tag> variable -->
|
||||
\function tf.toc-include() [<tag>get<toc-includeField>]
|
||||
\function tf.toc-filter() [<tag>get<toc-filterField>]
|
||||
|
||||
<!-- Define default filter strings for different usecases: tag (default), parentField or tagField for using a tag-like field -->
|
||||
\procedure toc-filterDefault() [all[shadows+tiddlers]tag<tag>!has[draft.of]]
|
||||
\procedure toc-filterParent() [has<parentField>!has[draft.of]] :filter[get<parentField>match<tag>]
|
||||
\procedure toc-filterTagLike() [has<tagField>!has[draft.of]] :filter[get<tagField>enlist-input[]match<tag>]
|
||||
|
||||
<!-- TODO tiddlers with parentField MAY need caching -->
|
||||
|
||||
<!-- Activate the filterString depending on tagField, parentField or default. tagField takes precedence -->
|
||||
\function tf.toc-filterString() [<tagField>!is[blank]then<toc-filterTagLike>] :else[<parentField>!is[blank]then<toc-filterParent>else<toc-filterDefault>]
|
||||
|
||||
<!-- The main filter string defines the current _mode variable. tagLikeMode, tocpMode or tagMode -->
|
||||
\function tf.toc-mode() [<tf.toc-filterString>match<toc-filterTagLike>then[tagLikeMode]] :else[<tf.toc-filterString>match<toc-filterParent>then[tocpMode]else[tagMode]]
|
||||
|
||||
<!-- Define unique path based state title -->
|
||||
\function tf.toc-newPath() [<path>addsuffix[/]addsuffix<tag>]
|
||||
|
||||
<!-- ====================================================================================
|
||||
Simple toc macro which shows the full tree
|
||||
This macro is _not_ used by other toc-macros
|
||||
v5.3.4 itemClassFilter has been replaced by tf.toc-itemClassFilter see: tf.toc-itemClass()
|
||||
========================================================================================== -->
|
||||
\procedure toc(tag,sort:"",itemClassFilter,exclude,captionField,tagField,parentField,itemTemplate)
|
||||
<$let tag={{{ [<tag>is[blank]then<currentTiddler>else<tag>] }}} >
|
||||
<$macrocall $name="toc-body" tag=<<tag>> sort=<<sort>> exclude=<<exclude>>/>
|
||||
</$let>
|
||||
\end
|
||||
|
||||
<!-- Simple toc helper body -->
|
||||
\procedure toc-body(tag,sort:"",itemClassFilter,exclude,path)
|
||||
<!-- Be aware: if parentField is set, the "tag" parameter contains the currentTiddler -->
|
||||
<$set name=currentTiddler filter="[<parentField>!is[blank]then<tag>else<currentTiddler>]">
|
||||
<ol class="tc-toc">
|
||||
<$list filter="""[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[subfilter<__exclude__>]""">
|
||||
<$let item=<<currentTiddler>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>
|
||||
<$set name="excluded" filter="[subfilter<__exclude__>] [<__tag__>]">
|
||||
<$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item">
|
||||
<li class=<<toc-item-class>>>
|
||||
<$list filter="[all[current]toc-link[no]]" emptyMessage="<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}><<toc-caption>></$link>">
|
||||
<<toc-caption>>
|
||||
</$list>
|
||||
<$macrocall $name="toc-body" tag=<<item>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>
|
||||
</li>
|
||||
</$set>
|
||||
</$set>
|
||||
</$let>
|
||||
</$list>
|
||||
<!-- text substitution for $(sort)$ parameter backwards compatibility -->
|
||||
<$list filter=` [subfilter<tf.toc-filter>]
|
||||
:else[subfilter<tf.toc-filterString>$(sort)$]
|
||||
[subfilter<tf.toc-include>] -[<tag>] -[subfilter<exclude>]`>
|
||||
<%if [<currentTiddler>] -[subfilter<tf.toc-hide>] %>
|
||||
<$let _path=<<tf.toc-newPath>> _mode=<<tf.toc-mode>> >
|
||||
<!-- adding tf.toc-hide, excludes blocked elements from all visible sub-nodes -->
|
||||
<$set name="_excluded" filter="[subfilter<exclude>] [<tag>] [subfilter<tf.toc-hide>]">
|
||||
<li class=<<tf.toc-itemClass>>>
|
||||
<% if [all[current]toc-link[no]] %>
|
||||
<<_itemTemplate>>
|
||||
<% else %>
|
||||
<!-- Since v5.1.23 use target-field if present in tiddler -->
|
||||
<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>
|
||||
<<_itemTemplate>>
|
||||
</$link>
|
||||
<% endif %>
|
||||
<!-- toc-body only calls itself, so only modified variables have to be passed on. -->
|
||||
<!-- The rest can be reused from toc parameters -->
|
||||
<$macrocall $name="toc-body" tag=<<currentTiddler>> exclude=<<_excluded>> path=<<_path>>
|
||||
/>
|
||||
</li>
|
||||
</$set>
|
||||
</$let>
|
||||
<% endif %>
|
||||
</$list>
|
||||
</ol>
|
||||
</$set>
|
||||
\end
|
||||
<!-- -->
|
||||
<!-- <$log $$filter="tag currentTiddler _excluded _path" /> -->
|
||||
<!-- <$log $$filter="tag parentField toc-filter currentTiddler captionField /> -->
|
||||
<!-- -->
|
||||
|
||||
<!-- Helper functions for toc-openBranch and toc-closeBranch procedures -->
|
||||
\procedure toc-tagLikeChildFilter() [has<tagField>] :filter[get<tagField>enlist-input[]match<..currentTiddler>] -[toc-hide[yes]]
|
||||
|
||||
\procedure toc-parentChildFilter() [has<parentField>] :filter[get<parentField>match<..currentTiddler>] -[toc-hide[yes]]
|
||||
\procedure toc-tagChildFilter() [tag<currentTiddler>] -[toc-hide[yes]]
|
||||
|
||||
<!-- this function uses the variables NOT the tiddler fields -->
|
||||
\function tf.toc-hasChildren()
|
||||
[<tagField>!is[blank]then<toc-tagLikeChildFilter>]
|
||||
:else[<parentField>!is[blank]then<toc-parentChildFilter>]
|
||||
:else[<toc-tagChildFilter>]
|
||||
\end
|
||||
|
||||
\define toc(tag,sort:"",itemClassFilter:"", exclude)
|
||||
\whitespace trim
|
||||
<$let __tag__={{{ [<__tag__>is[blank]then<currentTiddler>else<__tag__>] }}} >
|
||||
<$macrocall $name="toc-body" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>>/>
|
||||
</$let>
|
||||
<!-- Last path separator needs to be "-" for backwards compatibility :/ -->
|
||||
\function tf.toc-stateTitle() [[$:/state/toc]] [<path>] "-" [<currentTiddler>] +[join[]]
|
||||
\function tf.toc-closePrefix() [[$:/state/toc]] [<path>] "/" [<currentTiddler>] +[join[]]
|
||||
|
||||
<!-- toc-openBranch internally uses a recursiveOpen() procedure -->
|
||||
\procedure toc-openBranch(path,currentTiddler,manual:"no")
|
||||
\procedure recursiveOpen(exclude, path)
|
||||
<!-- tf.toc-stateTitle needs the path variable! -->
|
||||
<$let path={{{ [<path>] "/" [<currentTiddler>] +[join[]] }}}>
|
||||
<!-- It's common that users tag the <currentTiddler> with itself, so avoid redundant state tiddlers with -[<currentTiddler>] -->
|
||||
<$list filter="[subfilter<tf.toc-hasChildren>] [subfilter<tf.toc-curTidInclude>] -[<currentTiddler>] -[subfilter<exclude>]" >
|
||||
<% if [subfilter<tf.toc-hasChildren>] [subfilter<tf.toc-curTidInclude>] -[<currentTiddler>] -[subfilter<exclude>] %>
|
||||
<$set name="_excluded" filter="[subfilter<exclude>] [<currentTiddler>]">
|
||||
<!-- tf.toc-stateTitle needs the path variable! -->
|
||||
<$qualify name="toc-state" title=<<tf.toc-stateTitle>> >
|
||||
<$action-setfield $tiddler=<<toc-state>> text="open"/>
|
||||
<$macrocall $name="recursiveOpen" exclude=<<_excluded>> path=<<path>> />
|
||||
</$qualify>
|
||||
</$set>
|
||||
<% endif %>
|
||||
</$list>
|
||||
</$let>
|
||||
\end recursiveOpen
|
||||
|
||||
<% if [<manual>match[yes]] %>
|
||||
<$qualify name="toc-state" title=<<tf.toc-stateTitle>> >
|
||||
<$action-setfield $tiddler=<<toc-state>> text="open"/>
|
||||
<$macrocall $name="recursiveOpen" exclude=<<exclude>> path=<<path>> />
|
||||
</$qualify>
|
||||
<% elseif [<modifier>match[ctrl]] %>
|
||||
<$macrocall $name="recursiveOpen" exclude=<<exclude>> path=<<path>> />
|
||||
<% endif %>
|
||||
\end
|
||||
<!-- <$action-log/> -->
|
||||
<!-- <$action-log ct=<<currentTiddler>> hasChildren=<<tf.toc-hasChildren>> path=<<path>> exclude=<<exclude>>/> -->
|
||||
<!-- <$action-log toc-state=<<toc-state>> path=<<path>> exclude=<<exclude>> ct=<<currentTiddler>> /> -->
|
||||
<!-- <$action-log ct=<<currentTiddler>> prefix=<<prefix>> toc-state=<<toc-state>>/> -->
|
||||
|
||||
\procedure toc-closeBranch(path,currentTiddler,manual:"no")
|
||||
<% if [<modifier>match[ctrl]] :else[<manual>match[yes]] %>
|
||||
<$let prefix={{{ [<tf.toc-closePrefix>] }}} >
|
||||
<$action-deletetiddler $filter="[prefix<prefix>]"/>
|
||||
<$action-deletetiddler $filter="[prefix<tf.toc-stateTitle>]"/>
|
||||
</$let>
|
||||
<% endif %>
|
||||
\end
|
||||
|
||||
\define toc-linked-expandable-body(tag,sort:"",itemClassFilter,exclude,path)
|
||||
\whitespace trim
|
||||
<!-- helper function -->
|
||||
<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>
|
||||
<$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item">
|
||||
<li class=<<toc-item-class>>>
|
||||
<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>
|
||||
<$reveal type="nomatch" stateTitle=<<toc-state>> text="open">
|
||||
<$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep">
|
||||
<$transclude tiddler=<<toc-closed-icon>> />
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="match" stateTitle=<<toc-state>> text="open">
|
||||
<$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep">
|
||||
<$transclude tiddler=<<toc-open-icon>> />
|
||||
</$button>
|
||||
</$reveal>
|
||||
<<toc-caption>>
|
||||
</$link>
|
||||
<$reveal type="match" stateTitle=<<toc-state>> text="open">
|
||||
<$macrocall $name="toc-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>
|
||||
</$reveal>
|
||||
</li>
|
||||
</$set>
|
||||
<!--
|
||||
If a toc-item shows a link. Clicking the caption will open the tiddler
|
||||
If toc-item is linked, the _itemTemplate is managed in the parent procedure
|
||||
If a toc-item should not show a link, the _itemTemplate is part of the button. So it can be clicked to open or close one branch
|
||||
The buttons also call toc-stateOpen and toc-stateClose, which by default allow us to CTRL-click to expand or fold the whole branch
|
||||
-->
|
||||
\procedure toc-item(isUnlinked:"")
|
||||
<% if [<toc-state>get[text]else[close]match[close]] %>
|
||||
<$button actions=<<toc-openBranch>> setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-tiny-gap-right">
|
||||
<$transclude tiddler=<<toc-closed-icon>> />
|
||||
<% if [<isUnlinked>match[yes]] %>
|
||||
<span class="tc-toc-unlinked tc-tiny-gap-left"><<_itemTemplate>></span>
|
||||
<% endif %>
|
||||
</$button>
|
||||
<% elseif [<toc-state>get[text]match[open]] %>
|
||||
<$button actions=<<toc-closeBranch>> setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-tiny-gap-right">
|
||||
<$transclude tiddler=<<toc-open-icon>> />
|
||||
<% if [<isUnlinked>match[yes]] %>
|
||||
<span class="tc-toc-unlinked tc-tiny-gap-left"><<_itemTemplate>></span>
|
||||
<% endif %>
|
||||
</$button>
|
||||
<% endif %>
|
||||
\end
|
||||
|
||||
\procedure toc-linked-expandable-body(tag,sort:"",itemClassFilter,exclude,path,captionField,tagField,parentField,itemTemplate)
|
||||
<$qualify name="toc-state" title=<<tf.toc-stateTitle>> >
|
||||
<li class=<<tf.toc-itemClass>>>
|
||||
<!-- v5.1.23 use target-field if present in tiddler -->
|
||||
<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>
|
||||
<<toc-item>>
|
||||
<<_itemTemplate>>
|
||||
</$link>
|
||||
<!-- TODO auto expand -->
|
||||
<% if [<toc-state>get[text]match[open]] %>
|
||||
<$macrocall $name="toc-expandable"
|
||||
tag=<<currentTiddler>> sort=<<sort>> exclude=<<exclude>> path=<<path>>
|
||||
captionField=<<captionField>> tagField=<<tagField>> parentField=<<parentField>>
|
||||
itemTemplate=<<itemTemplate>>
|
||||
/>
|
||||
<% endif %>
|
||||
</li>
|
||||
</$qualify>
|
||||
\end
|
||||
|
||||
\define toc-unlinked-expandable-body(tag,sort:"",itemClassFilter,exclude,path)
|
||||
\whitespace trim
|
||||
<!-- helper function -->
|
||||
<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>
|
||||
<$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item">
|
||||
<li class=<<toc-item-class>>>
|
||||
<$reveal type="nomatch" stateTitle=<<toc-state>> text="open">
|
||||
<$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep">
|
||||
<$transclude tiddler=<<toc-closed-icon>> />
|
||||
<<toc-caption>>
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="match" stateTitle=<<toc-state>> text="open">
|
||||
<$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep">
|
||||
<$transclude tiddler=<<toc-open-icon>> />
|
||||
<<toc-caption>>
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="match" stateTitle=<<toc-state>> text="open">
|
||||
<$macrocall $name="toc-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>
|
||||
</$reveal>
|
||||
</li>
|
||||
</$set>
|
||||
\procedure toc-unlinked-expandable-body(tag,sort:"",itemClassFilter,exclude,path,captionField,tagField,parentField,itemTemplate)
|
||||
<$qualify name="toc-state" title=<<tf.toc-stateTitle>>>
|
||||
<li class=<<tf.toc-itemClass>>>
|
||||
<<toc-item isUnlinked:"yes">>
|
||||
<!-- TODO auto expand -->
|
||||
<% if [<toc-state>get[text]match[open]] %>
|
||||
<$macrocall $name="toc-expandable"
|
||||
tag=<<currentTiddler>> sort=<<sort>> exclude=<<exclude>> path=<<path>>
|
||||
captionField=<<captionField>> tagField=<<tagField>> parentField=<<parentField>>
|
||||
itemTemplate=<<itemTemplate>>
|
||||
/>
|
||||
<% endif %>
|
||||
</li>
|
||||
</$qualify>
|
||||
\end
|
||||
|
||||
\define toc-expandable-empty-message()
|
||||
<$macrocall $name="toc-linked-expandable-body" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>
|
||||
\end
|
||||
|
||||
\define toc-expandable(tag,sort:"",itemClassFilter:"",exclude,path)
|
||||
\whitespace trim
|
||||
<$let __tag__={{{ [<__tag__>is[blank]then<currentTiddler>else<__tag__>] }}} tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>
|
||||
<$set name="excluded" filter="[subfilter<__exclude__>] [<__tag__>]">
|
||||
<ol class="tc-toc toc-expandable">
|
||||
<$list filter="""[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[subfilter<__exclude__>]""">
|
||||
<$list filter="[all[current]toc-link[no]]" emptyMessage=<<toc-expandable-empty-message>> >
|
||||
<$macrocall $name="toc-unlinked-expandable-body" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter="""itemClassFilter""" exclude=<<excluded>> path=<<path>> />
|
||||
</$list>
|
||||
</$list>
|
||||
</ol>
|
||||
</$set>
|
||||
<!-- ==========================================================
|
||||
Shows an expandable toc. Item always have an open/close chevron
|
||||
=============================================================== -->
|
||||
\procedure toc-expandable(tag,sort:"",itemClassFilter:"",exclude,path,captionField,tagField,parentField,itemTemplate)
|
||||
<$let tag={{{ [<tag>is[blank]then<currentTiddler>else<tag>] }}} >
|
||||
<$set name=currentTiddler filter="[<parentField>!is[blank]then<tag>else<currentTiddler>]">
|
||||
<ol class="tc-toc toc-expandable">
|
||||
<!-- Text substitution is needed for backwards compatibility -->
|
||||
<$list filter=` [subfilter<tf.toc-filter>]
|
||||
:else[subfilter<tf.toc-filterString>$(sort)$]
|
||||
[subfilter<tf.toc-include>] -[<tag>] -[subfilter<exclude>]`>
|
||||
<%if [<currentTiddler>] -[subfilter<tf.toc-hide>] %>
|
||||
<$let _path=<<tf.toc-newPath>> _mode=<<tf.toc-mode>> >
|
||||
<$set name="_excluded" filter="[subfilter<exclude>] [<tag>] [subfilter<tf.toc-hide>]">
|
||||
<% if [all[current]toc-link[no]] %>
|
||||
<$macrocall $name="toc-unlinked-expandable-body"
|
||||
tag=<<tag>> sort=<<sort>> exclude=<<_excluded>> path=<<_path>>
|
||||
captionField=<<captionField>> tagField=<<tagField>> parentField=<<parentField>>
|
||||
itemTemplate=<<itemTemplate>>
|
||||
/>
|
||||
<% else %>
|
||||
<$macrocall $name="toc-linked-expandable-body"
|
||||
tag=<<tag>> sort=<<sort>> exclude=<<_excluded>> path=<<_path>>
|
||||
captionField=<<captionField>> tagField=<<tagField>> parentField=<<parentField>>
|
||||
itemTemplate=<<itemTemplate>>
|
||||
/>
|
||||
<% endif %>
|
||||
</$set>
|
||||
</$let>
|
||||
<% endif %>
|
||||
</$list>
|
||||
</ol>
|
||||
</$set>
|
||||
</$let>
|
||||
\end
|
||||
|
||||
\define toc-linked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path)
|
||||
\whitespace trim
|
||||
<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>
|
||||
<$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item" >
|
||||
<li class=<<toc-item-class>>>
|
||||
<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>
|
||||
<$list filter="[all[current]tagging[]$sort$limit[1]] -[subfilter<__exclude__>]" variable="ignore" emptyMessage="<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button>">
|
||||
<$reveal type="nomatch" stateTitle=<<toc-state>> text="open">
|
||||
<$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep">
|
||||
<$transclude tiddler=<<toc-closed-icon>> />
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="match" stateTitle=<<toc-state>> text="open">
|
||||
<$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep">
|
||||
<$transclude tiddler=<<toc-open-icon>> />
|
||||
</$button>
|
||||
</$reveal>
|
||||
</$list>
|
||||
<<toc-caption>>
|
||||
</$link>
|
||||
<$reveal type="match" stateTitle=<<toc-state>> text="open">
|
||||
<$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>
|
||||
</$reveal>
|
||||
</li>
|
||||
</$set>
|
||||
\function tf.toc-curTidInclude() [<currentTiddler>get<toc-includeField>] [<currentTiddler>get<toc-filterField>]
|
||||
|
||||
\procedure toc-linked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path,captionField,tagField,parentField,itemTemplate)
|
||||
<$qualify name="toc-state" title=<<tf.toc-stateTitle>>>
|
||||
<li class=<<tf.toc-itemClass>>>
|
||||
<!-- v5.1.23 use target-field if present in tiddler -->
|
||||
<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>
|
||||
<!-- The subfilter<exclude> must to be the last filter run -->
|
||||
<% if [subfilter<tf.toc-hasChildren>] [subfilter<tf.toc-curTidInclude>] -[<currentTiddler>] -[subfilter<exclude>] +[limit[1]] %>
|
||||
<<toc-item>>
|
||||
<% else %>
|
||||
<$button class='tc-btn-invisible tc-tiny-gap-right' tabindex="-1">
|
||||
{{$:/core/images/blank}}
|
||||
</$button>
|
||||
<% endif %>
|
||||
<<_itemTemplate>>
|
||||
</$link>
|
||||
<!-- TODO auto expand -->
|
||||
<% if [<toc-state>get[text]match[open]] %>
|
||||
<$macrocall $name="toc-selective-expandable"
|
||||
tag=<<currentTiddler>> sort=<<sort>> exclude=<<exclude>> path=<<path>>
|
||||
captionField=<<captionField>> tagField=<<tagField>> parentField=<<parentField>>
|
||||
itemTemplate=<<itemTemplate>>
|
||||
/>
|
||||
<% endif %>
|
||||
</li>
|
||||
</$qualify>
|
||||
\end
|
||||
<!-- Keep them for now -->
|
||||
<!-- <$log
|
||||
ct=<<currentTiddler>>
|
||||
tf.toc-hasChildren=<<tf.toc-hasChildren>>
|
||||
tf.toc-hasChildren-f= {{{ [subfilter<tf.toc-hasChildren>] +[join[, ]] }}}
|
||||
filter={{{ [subfilter<tf.toc-hasChildren>] [subfilter<tf.toc-curTidInclude>] -[<currentTiddler>] -[subfilter<exclude>] }}}
|
||||
exclude=<<exclude>>
|
||||
tag=<<tag>>
|
||||
hasTagField={{{ [has<tagField>join[, ]] }}}
|
||||
/> -->
|
||||
<!-- <$log ct=<<currentTiddler>>
|
||||
includeList={{{ [subfilter<tf.toc-hasChildren>] [subfilter<tf.toc-curTidInclude>] -[subfilter<exclude>] +[limit[1]] }}}
|
||||
hasChildren={{{ [subfilter<tf.toc-hasChildren>] }}} path=<<path>> exclude=<<exclude>>/>
|
||||
-->
|
||||
|
||||
\procedure toc-unlinked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path,captionField,tagField,parentField,itemTemplate)
|
||||
<$qualify name="toc-state" title=<<tf.toc-stateTitle>> >
|
||||
<li class=<<tf.toc-itemClass>>>
|
||||
<% if [subfilter<tf.toc-hasChildren>] [subfilter<tf.toc-curTidInclude>] -[<currentTiddler>] -[subfilter<exclude>] +[limit[1]] %>
|
||||
<<toc-item isUnlinked:"yes">>
|
||||
<% else %>
|
||||
<$button class="tc-btn-invisible ">
|
||||
{{$:/core/images/blank}}
|
||||
</$button>
|
||||
<span class="toc-item-muted">
|
||||
<<_itemTemplate>>
|
||||
</span>
|
||||
<% endif %>
|
||||
<!-- TODO auto expand -->
|
||||
<% if [<toc-state>get[text]match[open]] %>
|
||||
<$macrocall $name="toc-selective-expandable"
|
||||
tag=<<currentTiddler>> sort=<<sort>> exclude=<<exclude>> path=<<path>
|
||||
captionField=<<captionField>> tagField=<<tagField>> parentField=<<parentField>>
|
||||
itemTemplate=<<itemTemplate>>
|
||||
/>
|
||||
<% endif %>
|
||||
</li>
|
||||
</$qualify>
|
||||
\end
|
||||
|
||||
\define toc-unlinked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path)
|
||||
\whitespace trim
|
||||
<$qualify name="toc-state" title={{{ [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>
|
||||
<$set name="toc-item-class" filter=<<__itemClassFilter__>> emptyValue="toc-item-selected" value="toc-item">
|
||||
<li class=<<toc-item-class>>>
|
||||
<$list filter="[all[current]tagging[]$sort$limit[1]] -[subfilter<__exclude__>]" variable="ignore" emptyMessage="""<$button class="tc-btn-invisible">{{$:/core/images/blank}}</$button><span class="toc-item-muted"><<toc-caption>></span>""">
|
||||
<$reveal type="nomatch" stateTitle=<<toc-state>> text="open">
|
||||
<$button setTitle=<<toc-state>> setTo="open" class="tc-btn-invisible tc-popup-keep">
|
||||
<$transclude tiddler=<<toc-closed-icon>> />
|
||||
<<toc-caption>>
|
||||
</$button>
|
||||
</$reveal>
|
||||
<$reveal type="match" stateTitle=<<toc-state>> text="open">
|
||||
<$button setTitle=<<toc-state>> setTo="close" class="tc-btn-invisible tc-popup-keep">
|
||||
<$transclude tiddler=<<toc-open-icon>> />
|
||||
<<toc-caption>>
|
||||
</$button>
|
||||
</$reveal>
|
||||
</$list>
|
||||
<$reveal type="match" stateTitle=<<toc-state>> text="open">
|
||||
<$macrocall $name="toc-selective-expandable" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>>/>
|
||||
</$reveal>
|
||||
</li>
|
||||
</$set>
|
||||
</$qualify>
|
||||
\end
|
||||
|
||||
\define toc-selective-expandable-empty-message()
|
||||
<$macrocall $name="toc-linked-selective-expandable-body" tag=<<tag>> sort=<<sort>> itemClassFilter=<<itemClassFilter>> exclude=<<excluded>> path=<<path>>/>
|
||||
\end
|
||||
|
||||
\define toc-selective-expandable(tag,sort:"",itemClassFilter,exclude,path)
|
||||
\whitespace trim
|
||||
<$let __tag__={{{ [<__tag__>is[blank]then<currentTiddler>else<__tag__>] }}} tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>
|
||||
<$set name="excluded" filter="[subfilter<__exclude__>] [<__tag__>]">
|
||||
<ol class="tc-toc toc-selective-expandable">
|
||||
<$list filter="""[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] -[<__tag__>] -[subfilter<__exclude__>]""">
|
||||
<$list filter="[all[current]toc-link[no]]" variable="ignore" emptyMessage=<<toc-selective-expandable-empty-message>> >
|
||||
<$macrocall $name="toc-unlinked-selective-expandable-body" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>>/>
|
||||
</$list>
|
||||
</$list>
|
||||
</ol>
|
||||
</$set>
|
||||
<!-- =====================================================
|
||||
Shows a selctive expandable toc.
|
||||
If an item has no children, there is no open/close chevron
|
||||
========================================================== -->
|
||||
\procedure toc-selective-expandable(tag,sort:"",itemClassFilter,exclude,path,captionField,tagField,parentField,itemTemplate)
|
||||
<$let tag={{{ [<tag>is[blank]then<currentTiddler>else<tag>] }}} >
|
||||
<$set name=currentTiddler filter="[<parentField>!is[blank]then<tag>else<currentTiddler>]">
|
||||
<ol class="tc-toc toc-selective-expandable">
|
||||
<!-- text substitution is needed for backwards compatibility -->
|
||||
<$list filter=` [subfilter<tf.toc-filter>]
|
||||
:else[subfilter<tf.toc-filterString>$(sort)$]
|
||||
[subfilter<tf.toc-include>] -[<tag>] -[subfilter<exclude>]`>
|
||||
<%if [<currentTiddler>] -[subfilter<tf.toc-hide>] %>
|
||||
<$let _path=<<tf.toc-newPath>> _mode=<<tf.toc-mode>> >
|
||||
<$set name="_excluded" filter="[subfilter<exclude>] [<tag>] [subfilter<tf.toc-hide>]">
|
||||
<% if [all[current]toc-link[no]] %>
|
||||
<$macrocall $name="toc-unlinked-selective-expandable-body"
|
||||
tag=<<tag>> sort=<<sort>> exclude=<<_excluded>> path=<<_path>>
|
||||
captionField=<<captionField>> tagField=<<tagField>> parentField=<<parentField>>
|
||||
itemTemplate=<<itemTemplate>>
|
||||
/>
|
||||
<% else %>
|
||||
<$macrocall $name="toc-linked-selective-expandable-body"
|
||||
tag=<<tag>> sort=<<sort>> exclude=<<_excluded>> path=<<_path>>
|
||||
captionField=<<captionField>> tagField=<<tagField>> parentField=<<parentField>>
|
||||
itemTemplate=<<itemTemplate>>
|
||||
/>
|
||||
<% endif %>
|
||||
</$set>
|
||||
</$let>
|
||||
<% endif %>
|
||||
</$list>
|
||||
</ol>
|
||||
</$set>
|
||||
</$let>
|
||||
\end
|
||||
|
||||
\define toc-tabbed-external-nav(tag,sort:"",selectedTiddler:"$:/temp/toc/selectedTiddler",unselectedText,missingText,template:"",exclude)
|
||||
\whitespace trim
|
||||
<$let __tag__={{{ [<__tag__>is[blank]then<currentTiddler>else<__tag__>] }}}>
|
||||
<$tiddler tiddler={{{ [<__selectedTiddler__>get[text]] }}}>
|
||||
<div class="tc-tabbed-table-of-contents">
|
||||
<$linkcatcher to=<<__selectedTiddler__>>>
|
||||
<div class="tc-table-of-contents">
|
||||
<$macrocall $name="toc-selective-expandable" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter="[all[current]] -[<__selectedTiddler__>get[text]]" exclude=<<__exclude__>>/>
|
||||
</div>
|
||||
</$linkcatcher>
|
||||
<div class="tc-tabbed-table-of-contents-content">
|
||||
<$reveal stateTitle=<<__selectedTiddler__>> type="nomatch" text="">
|
||||
<$transclude mode="block" tiddler=<<__template__>>>
|
||||
<h1><<toc-caption>></h1>
|
||||
<$transclude mode="block">$missingText$</$transclude>
|
||||
</$transclude>
|
||||
</$reveal>
|
||||
<$reveal stateTitle=<<__selectedTiddler__>> type="match" text="">
|
||||
$unselectedText$
|
||||
</$reveal>
|
||||
</div>
|
||||
</div>
|
||||
</$tiddler>
|
||||
<!-- ====================================================================
|
||||
Shows a tabbed toc.
|
||||
If a toc-item link is clicked it will open the tiddler in the story river
|
||||
========================================================================= -->
|
||||
\procedure toc-tabbed-external-nav(tag,sort:"",selectedTiddler:"$:/temp/toc/selectedTiddler",unselectedText,missingText,template:"",exclude,captionField,tagField,parentField,itemTemplate)
|
||||
<$let tag={{{ [<tag>is[blank]then<currentTiddler>else<tag>] }}} >
|
||||
<$tiddler tiddler={{{ [<selectedTiddler>get[text]] }}}>
|
||||
<div class="tc-tabbed-table-of-contents">
|
||||
<$linkcatcher to=<<selectedTiddler>>>
|
||||
<div class="tc-table-of-contents">
|
||||
<!-- v5.3.4 itemClassFilter has been replaced by tf.toc-itemClassFilter -->
|
||||
<$macrocall $name="toc-selective-expandable"
|
||||
tag=<<tag>> sort=<<sort>> exclude=<<exclude>>
|
||||
captionField=<<captionField>> tagField=<<tagField>> parentField=<<parentField>>
|
||||
itemTemplate=<<itemTemplate>>
|
||||
/>
|
||||
</div>
|
||||
</$linkcatcher>
|
||||
<div class="tc-tabbed-table-of-contents-content">
|
||||
<$reveal stateTitle=<<selectedTiddler>> type="nomatch" text="">
|
||||
<$transclude mode="block" tiddler=<<template>>>
|
||||
<h1><<_itemTemplate>></h1>
|
||||
<$transclude mode="block"><<missingText>></$transclude>
|
||||
</$transclude>
|
||||
</$reveal>
|
||||
<$reveal stateTitle=<<selectedTiddler>> type="match" text="">
|
||||
<<unselectedText>>
|
||||
</$reveal>
|
||||
</div>
|
||||
</div>
|
||||
</$tiddler>
|
||||
</$let>
|
||||
\end
|
||||
|
||||
\define toc-tabbed-internal-nav(tag,sort:"",selectedTiddler:"$:/temp/toc/selectedTiddler",unselectedText,missingText,template:"",exclude)
|
||||
\whitespace trim
|
||||
<$let __tag__={{{ [<__tag__>is[blank]then<currentTiddler>else<__tag__>] }}}>
|
||||
<$linkcatcher to=<<__selectedTiddler__>>>
|
||||
<$macrocall $name="toc-tabbed-external-nav" tag=<<__tag__>> sort=<<__sort__>> selectedTiddler=<<__selectedTiddler__>> unselectedText=<<__unselectedText__>> missingText=<<__missingText__>> template=<<__template__>> exclude=<<__exclude__>> />
|
||||
</$linkcatcher>
|
||||
<!-- ========================================================
|
||||
Shows a tabbed toc. If a toc-item link is clicked
|
||||
it will open the tiddler in the view area of the same tiddler
|
||||
============================================================= -->
|
||||
\procedure toc-tabbed-internal-nav(tag,sort:"",selectedTiddler:"$:/temp/toc/selectedTiddler",unselectedText,missingText,template:"",exclude,captionField,tagField,parentField,itemTemplate)
|
||||
<$let tag={{{ [<tag>is[blank]then<currentTiddler>else<tag>] }}} >
|
||||
<$linkcatcher to=<<selectedTiddler>>>
|
||||
<$macrocall $name="toc-tabbed-external-nav"
|
||||
tag=<<tag>>
|
||||
sort=<<sort>>
|
||||
selectedTiddler=<<selectedTiddler>>
|
||||
unselectedText=<<unselectedText>>
|
||||
missingText=<<missingText>>
|
||||
template=<<template>>
|
||||
exclude=<<exclude>>
|
||||
captionField=<<captionField>>
|
||||
tagField=<<tagField>>
|
||||
parentField=<<parentField>>
|
||||
itemTemplate=<<itemTemplate>>
|
||||
/>
|
||||
</$linkcatcher>
|
||||
</$let>
|
||||
\end
|
||||
|
6
editions/tw5.com/tiddlers/$__config_RelinkOnRename.tid
Normal file
6
editions/tw5.com/tiddlers/$__config_RelinkOnRename.tid
Normal file
@ -0,0 +1,6 @@
|
||||
created: 20240208143409196
|
||||
modified: 20240826163400275
|
||||
title: $:/config/RelinkOnRename
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
yes
|
@ -0,0 +1,6 @@
|
||||
created: 20240204164044449
|
||||
modified: 20240204164141059
|
||||
title: $:/config/TextEditor/EditorHeight/Height
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
400px;
|
@ -0,0 +1,6 @@
|
||||
created: 20240204164038858
|
||||
modified: 20240724102624904
|
||||
title: $:/config/TextEditor/EditorHeight/Mode
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
auto
|
@ -0,0 +1,6 @@
|
||||
created: 20240206183310652
|
||||
modified: 20240206183310652
|
||||
title: $:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/fold-bar
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
show
|
@ -0,0 +1,6 @@
|
||||
created: 20240208143425724
|
||||
modified: 20240208143425724
|
||||
title: $:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
show
|
@ -0,0 +1,6 @@
|
||||
created: 20240208145502831
|
||||
modified: 20240208145502831
|
||||
title: $:/config/ViewToolbarButtons/Visibility/$:/wikilabs/ui/buttons/new-child-alone
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
hide
|
@ -0,0 +1,4 @@
|
||||
title: $:/config/flibbles/relink/fields/import-compound
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
title
|
@ -0,0 +1,4 @@
|
||||
title: $:/config/flibbles/relink/fields/itemTemplate
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
title
|
@ -0,0 +1,4 @@
|
||||
title: $:/config/flibbles/relink/fields/template
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
title
|
@ -0,0 +1,6 @@
|
||||
created: 20240208144107546
|
||||
modified: 20240208144107546
|
||||
title: $:/config/flibbles/relink/fields/toc-filter
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
filter
|
@ -0,0 +1,6 @@
|
||||
created: 20240208144111433
|
||||
modified: 20240208144111433
|
||||
title: $:/config/flibbles/relink/fields/toc-hide
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
filter
|
@ -0,0 +1,6 @@
|
||||
created: 20240208144114412
|
||||
modified: 20240208144114412
|
||||
title: $:/config/flibbles/relink/fields/toc-include
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
filter
|
@ -0,0 +1,7 @@
|
||||
created: 20240208145456033
|
||||
modified: 20240208145539333
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-expandable/captionField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,4 @@
|
||||
title: $:/config/flibbles/relink/macros/toc-expandable/exclude
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
title
|
@ -0,0 +1,7 @@
|
||||
created: 20240208145854017
|
||||
modified: 20240208150233020
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-expandable/itemTemplate
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
title
|
@ -0,0 +1,7 @@
|
||||
created: 20240208150002827
|
||||
modified: 20240208150007669
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-expandable/parentField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,7 @@
|
||||
created: 20240208150042296
|
||||
modified: 20240208150047982
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-expandable/tagField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,7 @@
|
||||
created: 20240208145540803
|
||||
modified: 20240208145551288
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-selective-expandable/captionField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,7 @@
|
||||
created: 20240208151920733
|
||||
modified: 20240208151932180
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-selective-expandable/exclude
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
filter
|
@ -0,0 +1,7 @@
|
||||
created: 20240208145845922
|
||||
modified: 20240208150229999
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-selective-expandable/itemTemplate
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
title
|
@ -0,0 +1,7 @@
|
||||
created: 20240208145946082
|
||||
modified: 20240208145949707
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-selective-expandable/parentField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,7 @@
|
||||
created: 20240208150035072
|
||||
modified: 20240208150039393
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-selective-expandable/tagField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,7 @@
|
||||
created: 20240208145637638
|
||||
modified: 20240208145647410
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-tabbed-external-nav/captionField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,7 @@
|
||||
created: 20240208152001606
|
||||
modified: 20240208152011194
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-tabbed-external-nav/exclude
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
filter
|
@ -0,0 +1,7 @@
|
||||
created: 20240208145744241
|
||||
modified: 20240208150226583
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-tabbed-external-nav/itemTemplate
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
title
|
@ -0,0 +1,7 @@
|
||||
created: 20240208145926532
|
||||
modified: 20240208145931690
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-tabbed-external-nav/parentField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,7 @@
|
||||
created: 20240208150020766
|
||||
modified: 20240208150024437
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-tabbed-external-nav/tagField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,7 @@
|
||||
created: 20240208145622594
|
||||
modified: 20240208145634199
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-tabbed-internal-nav/captionField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,7 @@
|
||||
created: 20240208152014153
|
||||
modified: 20240208152024927
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-tabbed-internal-nav/exclude
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
filter
|
@ -0,0 +1,7 @@
|
||||
created: 20240208145827896
|
||||
modified: 20240208150221937
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-tabbed-internal-nav/itemTemplate
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
title
|
@ -0,0 +1,7 @@
|
||||
created: 20240208145938422
|
||||
modified: 20240208145942289
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-tabbed-internal-nav/parentField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,7 @@
|
||||
created: 20240208150027108
|
||||
modified: 20240208150030622
|
||||
tags:
|
||||
title: $:/config/flibbles/relink/macros/toc-tabbed-internal-nav/tagField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,6 @@
|
||||
created: 20240208144354194
|
||||
modified: 20240208144354194
|
||||
title: $:/config/flibbles/relink/macros/toc/captionField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,6 @@
|
||||
created: 20240208151834121
|
||||
modified: 20240208151834121
|
||||
title: $:/config/flibbles/relink/macros/toc/exclude
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
filter
|
@ -0,0 +1,4 @@
|
||||
title: $:/config/flibbles/relink/macros/toc/itemTemplate
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
title
|
@ -0,0 +1,6 @@
|
||||
created: 20240208144444658
|
||||
modified: 20240208144444658
|
||||
title: $:/config/flibbles/relink/macros/toc/parentField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,6 @@
|
||||
created: 20240208144431520
|
||||
modified: 20240208144431520
|
||||
title: $:/config/flibbles/relink/macros/toc/tagField
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
fieldname
|
@ -0,0 +1,9 @@
|
||||
caption: Wikilabs Library (latest)
|
||||
created: 20200605142858499
|
||||
modified: 20200611162358611
|
||||
tags: $:/tags/PluginLibrary
|
||||
title: $:/config/wikilabs/PluginLibraryWL/latest
|
||||
type: text/vnd.tiddlywiki
|
||||
url: https://wikilabs.github.io/editions/pluginlibraryWL/library/latest/index.html
|
||||
|
||||
~WikiLabs plugin library latest version!
|
@ -0,0 +1,6 @@
|
||||
created: 20240206220011467
|
||||
modified: 20240206220011467
|
||||
title: $:/config/wikilabs/tocP/newChild
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
<span class='wltc-btn-new-child tc-tiny-gap-left'>{{||$:/wikilabs/ui/buttons/new-child-alone}}</span>
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,13 @@
|
||||
author: Flibbles
|
||||
core-version: >=5.1.22
|
||||
created: 20240221025320294
|
||||
demo: http://flibbles.github.io/tw5-relink/
|
||||
dependents:
|
||||
description: Flexibility when relinking renamed tiddlers
|
||||
list: readme configuration license
|
||||
name: Relink
|
||||
plugin-type: plugin
|
||||
source: https://github.com/flibbles/tw5-relink
|
||||
title: $:/plugins/flibbles/relink
|
||||
type: application/json
|
||||
version: 2.4.3
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@
|
||||
author: Mario Pietsch
|
||||
core-version: >=5.1.15
|
||||
dependents:
|
||||
description: Adds some powerfull search tools
|
||||
list: readme license history
|
||||
name: Advance Search Plus
|
||||
plugin-type: plugin
|
||||
title: $:/plugins/wikilabs/advanced-search-plus
|
||||
type: application/json
|
||||
version: 0.6.0
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,11 @@
|
||||
author: Mario Pietsch
|
||||
core-version: >=5.3.3
|
||||
dependents:
|
||||
description: Internal links are added to tabs if selected
|
||||
icon: $:/plugins/wikilabs/link-to-tabs/icon
|
||||
list: readme settings license history
|
||||
name: Link to Tabs
|
||||
plugin-type: plugin
|
||||
title: $:/plugins/wikilabs/link-to-tabs
|
||||
type: application/json
|
||||
version: 3.0.0
|
1
editions/tw5.com/tiddlers/$__plugins_wikilabs_tocP.json
Normal file
1
editions/tw5.com/tiddlers/$__plugins_wikilabs_tocP.json
Normal file
File diff suppressed because one or more lines are too long
10
editions/tw5.com/tiddlers/$__plugins_wikilabs_tocP.json.meta
Normal file
10
editions/tw5.com/tiddlers/$__plugins_wikilabs_tocP.json.meta
Normal file
@ -0,0 +1,10 @@
|
||||
author: Mario Pietsch
|
||||
core-version: >=5.2.1
|
||||
dependents:
|
||||
description: Parent Based - Table of Contents
|
||||
list: readme license history
|
||||
name: tocP
|
||||
plugin-type: plugin
|
||||
title: $:/plugins/wikilabs/tocP
|
||||
type: application/json
|
||||
version: 0.3.2
|
61
editions/tw5.com/tiddlers/$__search-flt_export+system.tid
Normal file
61
editions/tw5.com/tiddlers/$__search-flt_export+system.tid
Normal file
@ -0,0 +1,61 @@
|
||||
caption: export+system
|
||||
created: 20240208181107805
|
||||
hint: {{$:/language/Search/Filter/Hint}}
|
||||
icon: $:/plugins/wikilabs/advanced-search-plus/filter-search.svg
|
||||
input-tiddler: $:/search-flt/inp/export+system
|
||||
input-title: $:/search-flt/export+system
|
||||
modified: 20240208181107805
|
||||
tags: $:/tags/AdvancedSearchPlus
|
||||
title: $:/search-flt/export+system
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define lingo-base() $:/language/Search/
|
||||
|
||||
<$tiddler tiddler=<<currentTab>>>
|
||||
<$button tooltip={{$:/language/Buttons/Delete/Caption}} >
|
||||
<$action-deletetiddler $tiddler={{!!input-tiddler}}/>
|
||||
<$action-deletetiddler $tiddler={{!!input-title}}/>
|
||||
<$action-deletetiddler $tiddler="$:/state/tab--1498284803"/>
|
||||
<$transclude tiddler="$:/core/images/delete-button" />
|
||||
</$button>
|
||||
<<lingo Filter/Hint>><br>
|
||||
|
||||
<span class="tc-search tc-popup-keep">
|
||||
<$reveal state={{!!input-tiddler}} type="nomatch" text="">
|
||||
<$set name="search-term" tiddler={{!!input-tiddler}}>
|
||||
<$macrocall $name="exportButton" exportFilter=<<search-term>> lingoBase="$:/language/Buttons/ExportTiddlers/"/>
|
||||
</$set>
|
||||
</$reveal>
|
||||
<$button popup=<<qualify "$:/state/filterDropdown">> class="tc-btn-invisible">
|
||||
{{$:/core/images/down-arrow}}
|
||||
</$button>
|
||||
</span>
|
||||
<$reveal state=<<qualify "$:/state/filterDropdown">> type="popup" position="below" animate="yes" class="tc-block-dropdown tc-edit-type-dropdown">
|
||||
<$linkcatcher to={{!!input-tiddler}}>
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Filter]]"><$link to={{!!filter}}><$transclude field="description"/></$link>
|
||||
</$list>
|
||||
</$linkcatcher>
|
||||
|
||||
</$reveal>
|
||||
<span class="tc-search tc-advanced-search">
|
||||
<$keyboard key="((input-tab-right))" actions=<<set-next-input-tab>>>
|
||||
<$keyboard key="((input-tab-left))" actions=<<set-next-input-tab "before">>>
|
||||
<$edit-text tiddler={{!!input-tiddler}} type="search" tag="input" focus="yes"/>
|
||||
</$keyboard>
|
||||
</$keyboard>
|
||||
<$button class="tc-btn-invisible">
|
||||
<$action-setfield $tiddler={{!!input-tiddler}} $field="text" $value=""/>
|
||||
{{$:/core/images/close-button}}
|
||||
</$button>
|
||||
</span>
|
||||
|
||||
<$reveal state={{!!input-tiddler}} type="nomatch" text="">
|
||||
<$set name="search-term" tiddler={{!!input-tiddler}}>
|
||||
<$set name="resultCount" value="<$count filter=<<search-term>>/>">
|
||||
<div class="tc-search-results">
|
||||
<<lingo Filter/Matches>>
|
||||
<$list filter=<<search-term>> template="$:/core/ui/ListItemTemplate"/>
|
||||
</div>
|
||||
</$set></$set>
|
||||
</$reveal>
|
||||
</$tiddler>
|
61
editions/tw5.com/tiddlers/$__search-flt_export-no-system.tid
Normal file
61
editions/tw5.com/tiddlers/$__search-flt_export-no-system.tid
Normal file
@ -0,0 +1,61 @@
|
||||
caption: export-no-system
|
||||
created: 20240208181127459
|
||||
hint: {{$:/language/Search/Filter/Hint}}
|
||||
icon: $:/plugins/wikilabs/advanced-search-plus/filter-search.svg
|
||||
input-tiddler: $:/search-flt/inp/export-no-system
|
||||
input-title: $:/search-flt/export-no-system
|
||||
modified: 20240208181127460
|
||||
tags: $:/tags/AdvancedSearchPlus
|
||||
title: $:/search-flt/export-no-system
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define lingo-base() $:/language/Search/
|
||||
|
||||
<$tiddler tiddler=<<currentTab>>>
|
||||
<$button tooltip={{$:/language/Buttons/Delete/Caption}} >
|
||||
<$action-deletetiddler $tiddler={{!!input-tiddler}}/>
|
||||
<$action-deletetiddler $tiddler={{!!input-title}}/>
|
||||
<$action-deletetiddler $tiddler="$:/state/tab--1498284803"/>
|
||||
<$transclude tiddler="$:/core/images/delete-button" />
|
||||
</$button>
|
||||
<<lingo Filter/Hint>><br>
|
||||
|
||||
<span class="tc-search tc-popup-keep">
|
||||
<$reveal state={{!!input-tiddler}} type="nomatch" text="">
|
||||
<$set name="search-term" tiddler={{!!input-tiddler}}>
|
||||
<$macrocall $name="exportButton" exportFilter=<<search-term>> lingoBase="$:/language/Buttons/ExportTiddlers/"/>
|
||||
</$set>
|
||||
</$reveal>
|
||||
<$button popup=<<qualify "$:/state/filterDropdown">> class="tc-btn-invisible">
|
||||
{{$:/core/images/down-arrow}}
|
||||
</$button>
|
||||
</span>
|
||||
<$reveal state=<<qualify "$:/state/filterDropdown">> type="popup" position="below" animate="yes" class="tc-block-dropdown tc-edit-type-dropdown">
|
||||
<$linkcatcher to={{!!input-tiddler}}>
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Filter]]"><$link to={{!!filter}}><$transclude field="description"/></$link>
|
||||
</$list>
|
||||
</$linkcatcher>
|
||||
|
||||
</$reveal>
|
||||
<span class="tc-search tc-advanced-search">
|
||||
<$keyboard key="((input-tab-right))" actions=<<set-next-input-tab>>>
|
||||
<$keyboard key="((input-tab-left))" actions=<<set-next-input-tab "before">>>
|
||||
<$edit-text tiddler={{!!input-tiddler}} type="search" tag="input" focus="yes"/>
|
||||
</$keyboard>
|
||||
</$keyboard>
|
||||
<$button class="tc-btn-invisible">
|
||||
<$action-setfield $tiddler={{!!input-tiddler}} $field="text" $value=""/>
|
||||
{{$:/core/images/close-button}}
|
||||
</$button>
|
||||
</span>
|
||||
|
||||
<$reveal state={{!!input-tiddler}} type="nomatch" text="">
|
||||
<$set name="search-term" tiddler={{!!input-tiddler}}>
|
||||
<$set name="resultCount" value="<$count filter=<<search-term>>/>">
|
||||
<div class="tc-search-results">
|
||||
<<lingo Filter/Matches>>
|
||||
<$list filter=<<search-term>> template="$:/core/ui/ListItemTemplate"/>
|
||||
</div>
|
||||
</$set></$set>
|
||||
</$reveal>
|
||||
</$tiddler>
|
@ -0,0 +1,6 @@
|
||||
created: 20240208181107805
|
||||
modified: 20240208181107805
|
||||
title: $:/search-flt/inp/export+system
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
[has[modified]] :filter[get[modified]subtract[20240204002230160]sign[]match[1]]
|
@ -0,0 +1,6 @@
|
||||
created: 20240208181127459
|
||||
modified: 20240208181144267
|
||||
title: $:/search-flt/inp/export-no-system
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
[has[modified]!is[system]] :filter[get[modified]subtract[20240204002230160]sign[]match[1]]
|
@ -0,0 +1,6 @@
|
||||
created: 20240208145232790
|
||||
modified: 20240208145348025
|
||||
title: $:/search-flt/inp/relink-cfg
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
$:/config/flibbles/relink/macros/
|
6
editions/tw5.com/tiddlers/$__search-flt_inp_state.tid
Normal file
6
editions/tw5.com/tiddlers/$__search-flt_inp_state.tid
Normal file
@ -0,0 +1,6 @@
|
||||
created: 20240208100620941
|
||||
modified: 20240208100620941
|
||||
title: $:/search-flt/inp/state
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
$:/state/toc/
|
48
editions/tw5.com/tiddlers/$__search-flt_relink-cfg.tid
Normal file
48
editions/tw5.com/tiddlers/$__search-flt_relink-cfg.tid
Normal file
@ -0,0 +1,48 @@
|
||||
caption: relink-cfg
|
||||
created: 20240208145232790
|
||||
hint: {{$:/language/Search/System/Hint}}
|
||||
icon: $:/plugins/wikilabs/advanced-search-plus/system-search.svg
|
||||
input-tiddler: $:/search-flt/inp/relink-cfg
|
||||
input-title: $:/search-flt/relink-cfg
|
||||
modified: 20240208145232790
|
||||
tags: $:/tags/AdvancedSearchPlus
|
||||
title: $:/search-flt/relink-cfg
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define lingo-base() $:/language/Search/
|
||||
|
||||
<$tiddler tiddler=<<currentTab>>>
|
||||
<$button tooltip={{$:/language/Buttons/Delete/Caption}} >
|
||||
<$action-deletetiddler $tiddler={{!!input-tiddler}}/>
|
||||
<$action-deletetiddler $tiddler={{!!input-title}}/>
|
||||
<$action-deletetiddler $tiddler="$:/state/tab--1498284803"/>
|
||||
<$transclude tiddler="$:/core/images/delete-button" />
|
||||
</$button>
|
||||
<<lingo System/Hint>>
|
||||
|
||||
<div class="tc-search">
|
||||
<$keyboard key="((input-tab-right))" actions=<<set-next-input-tab>>>
|
||||
<$keyboard key="((input-tab-left))" actions=<<set-next-input-tab "before">>>
|
||||
<$edit-text tiddler={{!!input-tiddler}} type="search" tag="input" placeholder="..." default="" focus="yes"/>
|
||||
</$keyboard>
|
||||
</$keyboard>
|
||||
<$reveal state={{!!input-tiddler}} type="nomatch" text="">
|
||||
<$button class="tc-btn-invisible">
|
||||
<$action-setfield $tiddler={{!!input-tiddler}} $field="text" $value=""/>
|
||||
{{$:/core/images/close-button}}
|
||||
</$button>
|
||||
</$reveal>
|
||||
</div>
|
||||
|
||||
<$reveal state={{!!input-tiddler}} type="nomatch" text="">
|
||||
<$set name="search-term" tiddler={{!!input-tiddler}}>
|
||||
<$set name="resultCount" value="<$count filter='[is[system]search<search-term>]'/>">
|
||||
<div class="tc-search-results">
|
||||
<<lingo System/Matches>>
|
||||
<$list filter="[is[system]search<search-term>sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/>
|
||||
</div>
|
||||
</$set></$set>
|
||||
</$reveal>
|
||||
<$reveal state={{!!input-tiddler}} type="match" text="">
|
||||
</$reveal>
|
||||
</$tiddler>
|
48
editions/tw5.com/tiddlers/$__search-flt_state.tid
Normal file
48
editions/tw5.com/tiddlers/$__search-flt_state.tid
Normal file
@ -0,0 +1,48 @@
|
||||
caption: state
|
||||
created: 20240208100620941
|
||||
hint: {{$:/language/Search/System/Hint}}
|
||||
icon: $:/plugins/wikilabs/advanced-search-plus/system-search.svg
|
||||
input-tiddler: $:/search-flt/inp/state
|
||||
input-title: $:/search-flt/state
|
||||
modified: 20240208100620941
|
||||
tags: $:/tags/AdvancedSearchPlus
|
||||
title: $:/search-flt/state
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define lingo-base() $:/language/Search/
|
||||
|
||||
<$tiddler tiddler=<<currentTab>>>
|
||||
<$button tooltip={{$:/language/Buttons/Delete/Caption}} >
|
||||
<$action-deletetiddler $tiddler={{!!input-tiddler}}/>
|
||||
<$action-deletetiddler $tiddler={{!!input-title}}/>
|
||||
<$action-deletetiddler $tiddler="$:/state/tab--1498284803"/>
|
||||
<$transclude tiddler="$:/core/images/delete-button" />
|
||||
</$button>
|
||||
<<lingo System/Hint>>
|
||||
|
||||
<div class="tc-search">
|
||||
<$keyboard key="((input-tab-right))" actions=<<set-next-input-tab>>>
|
||||
<$keyboard key="((input-tab-left))" actions=<<set-next-input-tab "before">>>
|
||||
<$edit-text tiddler={{!!input-tiddler}} type="search" tag="input" placeholder="..." default="" focus="yes"/>
|
||||
</$keyboard>
|
||||
</$keyboard>
|
||||
<$reveal state={{!!input-tiddler}} type="nomatch" text="">
|
||||
<$button class="tc-btn-invisible">
|
||||
<$action-setfield $tiddler={{!!input-tiddler}} $field="text" $value=""/>
|
||||
{{$:/core/images/close-button}}
|
||||
</$button>
|
||||
</$reveal>
|
||||
</div>
|
||||
|
||||
<$reveal state={{!!input-tiddler}} type="nomatch" text="">
|
||||
<$set name="search-term" tiddler={{!!input-tiddler}}>
|
||||
<$set name="resultCount" value="<$count filter='[is[system]search<search-term>]'/>">
|
||||
<div class="tc-search-results">
|
||||
<<lingo System/Matches>>
|
||||
<$list filter="[is[system]search<search-term>sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/>
|
||||
</div>
|
||||
</$set></$set>
|
||||
</$reveal>
|
||||
<$reveal state={{!!input-tiddler}} type="match" text="">
|
||||
</$reveal>
|
||||
</$tiddler>
|
@ -0,0 +1,6 @@
|
||||
created: 20240201195012281
|
||||
modified: 20240203002807686
|
||||
title: $:/themes/tiddlywiki/vanilla/metrics/sidebarwidth
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
450px
|
@ -0,0 +1,6 @@
|
||||
created: 20240724102117494
|
||||
modified: 20240724102117494
|
||||
title: $:/themes/tiddlywiki/vanilla/settings/editorfontfamily
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
"SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace
|
9
editions/tw5.com/tiddlers/Another TOC Entry.tid
Normal file
9
editions/tw5.com/tiddlers/Another TOC Entry.tid
Normal file
@ -0,0 +1,9 @@
|
||||
created: 20240204201322400
|
||||
modified: 20240208162250695
|
||||
tags: nameSorted
|
||||
title: Another TOC Entry
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
9
editions/tw5.com/tiddlers/Bar.tid
Normal file
9
editions/tw5.com/tiddlers/Bar.tid
Normal file
@ -0,0 +1,9 @@
|
||||
created: 20240204201429735
|
||||
modified: 20240208175124185
|
||||
tags: [[Another TOC Entry]] [[Sorted by (tiddler) Title]]
|
||||
title: Bar
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
9
editions/tw5.com/tiddlers/Baz.tid
Normal file
9
editions/tw5.com/tiddlers/Baz.tid
Normal file
@ -0,0 +1,9 @@
|
||||
created: 20240204201437738
|
||||
modified: 20240204201441357
|
||||
tags: [[Another TOC Entry]]
|
||||
title: Baz
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
14
editions/tw5.com/tiddlers/Characters.tid
Normal file
14
editions/tw5.com/tiddlers/Characters.tid
Normal file
@ -0,0 +1,14 @@
|
||||
created: 20240511051123950
|
||||
modified: 20240511052132451
|
||||
parent: JContents
|
||||
title: Characters
|
||||
toc-filter: [tag<currentTiddler>]
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
This tiddler contains a toc-filter: {{!!toc-filter}}, which defines the tree below this level. So "parent" based TOCs can be mixed with "tag" based TOCs
|
||||
|
||||
Also see: [[JContents]]
|
||||
|
||||
<<list-fields>>
|
42
editions/tw5.com/tiddlers/Examples_TOC_SimpleToc
Normal file
42
editions/tw5.com/tiddlers/Examples_TOC_SimpleToc
Normal file
@ -0,0 +1,42 @@
|
||||
title: Narrative
|
||||
|
||||
* The following code defines a "Simple Table of Contents" using "root" as the base tag
|
||||
* Click through all the tabs to get additional info
|
||||
|
||||
{{Narrative-extended}}
|
||||
|
||||
+
|
||||
title: root
|
||||
list: First Third Fourth
|
||||
|
||||
The list-field in the "root" tag-tiddler can be used to define the "sort order" of the TOC
|
||||
+
|
||||
title: First
|
||||
tags: root
|
||||
|
||||
1st 1st 1st 1st 1st
|
||||
+
|
||||
title: Second
|
||||
tags: First
|
||||
|
||||
2nd 2nd 2nd 2nd 2nd
|
||||
+
|
||||
title: Third
|
||||
tags: root
|
||||
|
||||
3rd 3rd 3rd 3rd 3rd
|
||||
+
|
||||
title: Fourth
|
||||
caption: fourth-caption
|
||||
tags: root
|
||||
|
||||
4th 4th 4th 4th 4th
|
||||
|
||||
This tiddler contains a caption, which will be shown in the TOC instead of the tiddler title
|
||||
+
|
||||
title: Output
|
||||
|
||||
<div class="tc-table-of-contents">
|
||||
<<toc tag:"root">>
|
||||
</div>
|
||||
|
7
editions/tw5.com/tiddlers/Examples_TOC_SimpleToc.meta
Normal file
7
editions/tw5.com/tiddlers/Examples_TOC_SimpleToc.meta
Normal file
@ -0,0 +1,7 @@
|
||||
created: 20240724070813184
|
||||
description: Simple TOC
|
||||
display-format: wikitext
|
||||
modified: 20240724101415661
|
||||
tags: $:/tags/wiki-test-spec
|
||||
title: Examples/TOC/SimpleToc
|
||||
type: text/vnd.tiddlywiki-multiple
|
@ -0,0 +1,25 @@
|
||||
created: 20240724082221230
|
||||
import-compound: Examples/TOC/param/tag
|
||||
modified: 20240826164358077
|
||||
tags: $:/tags/wiki-test-spec
|
||||
title: Examples/TOC/param/captionField
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
|
||||
title: Description
|
||||
text: Simple TOC - captionField parameter
|
||||
+
|
||||
title: Narrative-extended
|
||||
|
||||
* The "Fifth" tiddler has an alternative "caption-field"
|
||||
|
||||
+
|
||||
title: Fifth
|
||||
tags: Fourth
|
||||
alt: alt-caption
|
||||
text: 5th
|
||||
+
|
||||
title: Output
|
||||
|
||||
<div class="tc-table-of-contents">
|
||||
<<toc tag:"root" captionField:"alt">>
|
||||
</div>
|
@ -0,0 +1,57 @@
|
||||
created: 20240826160050805
|
||||
description: Simple TOC
|
||||
modified: 20240826162927425
|
||||
tags: $:/tags/wiki-test-spec
|
||||
title: Examples/TOC/param/itemTemplate
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
|
||||
title: Narrative
|
||||
|
||||
* The following code defines a "Simple Table of Contents" using "root" as the base tag
|
||||
* Click through all the tabs to get additional info
|
||||
|
||||
<$transclude $tiddler="Narrative-extended" $mode="block"/>
|
||||
|
||||
+
|
||||
title: root
|
||||
list: First Third Fourth
|
||||
|
||||
The list-field in the "root" tag-tiddler can be used to define the "sort order" of the TOC
|
||||
+
|
||||
title: First
|
||||
tags: root
|
||||
|
||||
1st 1st 1st 1st 1st
|
||||
+
|
||||
title: Second
|
||||
tags: First
|
||||
|
||||
2nd 2nd 2nd 2nd 2nd
|
||||
+
|
||||
title: Third
|
||||
tags: root
|
||||
|
||||
3rd 3rd 3rd 3rd 3rd
|
||||
+
|
||||
title: Fourth
|
||||
caption: fourth-caption
|
||||
tags: root
|
||||
|
||||
4th 4th 4th 4th 4th
|
||||
|
||||
This tiddler contains a caption, which will be shown in the TOC instead of the tiddler title
|
||||
+
|
||||
title: myTemplate
|
||||
|
||||
<$let tv-wikilinks="no">
|
||||
<$transclude $field="caption">
|
||||
<$transclude $field="title"/> - param itemTemplate
|
||||
</$transclude>
|
||||
</$let>
|
||||
+
|
||||
title: Output
|
||||
|
||||
<div class="tc-table-of-contents">
|
||||
<<toc tag:"root" itemTemplate:"myTemplate">>
|
||||
</div>
|
||||
|
53
editions/tw5.com/tiddlers/Examples_TOC_param_parentField.tid
Normal file
53
editions/tw5.com/tiddlers/Examples_TOC_param_parentField.tid
Normal file
@ -0,0 +1,53 @@
|
||||
created: 20240730081443212
|
||||
description: Simple TOC - parentField parameter
|
||||
modified: 20240826162950242
|
||||
tags: $:/tags/wiki-test-spec
|
||||
title: Examples/TOC/param/parentField
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
|
||||
title: Narrative
|
||||
|
||||
* The "Output" code defines a "Simple Table of Contents" using the ''parent'' field in child-tiddlers to connect to a parent-tiddler
|
||||
* Click through all the tabs to get additional info
|
||||
|
||||
<$transclude $tiddler="Narrative-extended" $mode="block"/>
|
||||
|
||||
+
|
||||
title: root
|
||||
|
||||
The parent-field in the ''child''-tiddlers are used to define the relation to the parent tiddler
|
||||
+
|
||||
title: Child-1
|
||||
tooltip: child-1 tooltip
|
||||
parent: root
|
||||
|
||||
1st 1st 1st 1st 1st
|
||||
+
|
||||
title: Child-2
|
||||
parent: root
|
||||
|
||||
2nd 2nd 2nd 2nd 2nd
|
||||
+
|
||||
title: Child-3
|
||||
parent: root
|
||||
|
||||
3rd 3rd 3rd 3rd 3rd
|
||||
+
|
||||
title: Child-2-1
|
||||
caption: 2-1 caption
|
||||
parent: Child-2
|
||||
|
||||
This tiddler contains a caption, which will be shown in the TOC instead of the tiddler title
|
||||
+
|
||||
title: Output
|
||||
|
||||
<!--
|
||||
This variable set to yes allows you to show a New-Child button.
|
||||
This button will create a "real" tiddler, which will _not_ be listed here
|
||||
-->
|
||||
\define tv-toc-show-new-child() yes
|
||||
|
||||
<div class="tc-table-of-contents">
|
||||
<<toc tag:"root" parentField:"parent">>
|
||||
</div>
|
||||
|
49
editions/tw5.com/tiddlers/Examples_TOC_param_tag.tid
Normal file
49
editions/tw5.com/tiddlers/Examples_TOC_param_tag.tid
Normal file
@ -0,0 +1,49 @@
|
||||
created: 20240724070813184
|
||||
description: TOC tag parameter
|
||||
modified: 20240826164015156
|
||||
tags: $:/tags/wiki-test-spec
|
||||
title: Examples/TOC/param/tag
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
|
||||
title: Narrative
|
||||
|
||||
* The following code defines a "Simple Table of Contents" using "root" as the base tag
|
||||
* Click through all the tabs to get additional info
|
||||
|
||||
<$transclude $tiddler="Narrative-extended" $mode="block"/>
|
||||
|
||||
+
|
||||
title: root
|
||||
list: First Third Fourth
|
||||
|
||||
The list-field in the "root" tag-tiddler can be used to define the "sort order" of the TOC
|
||||
+
|
||||
title: First
|
||||
tags: root
|
||||
|
||||
1st 1st 1st 1st 1st
|
||||
+
|
||||
title: Second
|
||||
tags: First
|
||||
|
||||
2nd 2nd 2nd 2nd 2nd
|
||||
+
|
||||
title: Third
|
||||
tags: root
|
||||
|
||||
3rd 3rd 3rd 3rd 3rd
|
||||
+
|
||||
title: Fourth
|
||||
caption: fourth-caption
|
||||
tags: root
|
||||
|
||||
4th 4th 4th 4th 4th
|
||||
|
||||
This tiddler contains a caption, which will be shown in the TOC instead of the tiddler title
|
||||
+
|
||||
title: Output
|
||||
|
||||
<div class="tc-table-of-contents">
|
||||
<<toc tag:"root">>
|
||||
</div>
|
||||
|
67
editions/tw5.com/tiddlers/Examples_TOC_param_tagField.tid
Normal file
67
editions/tw5.com/tiddlers/Examples_TOC_param_tagField.tid
Normal file
@ -0,0 +1,67 @@
|
||||
created: 20240729105221520
|
||||
description: Simple TOC - tagField = tagLike
|
||||
modified: 20240826163000897
|
||||
tags: $:/tags/wiki-test-spec
|
||||
title: Examples/TOC/param/tagField
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
|
||||
title: Narrative
|
||||
|
||||
* This test-case creates a "Simple Table of Contents" using "root" as the base tag
|
||||
* It uses a field named: ''tagLike'' which defines the TOC structure
|
||||
* The parameter is: `tagField:"tagLike"`
|
||||
* Click through all the tabs to get additional info
|
||||
|
||||
<$transclude $tiddler="Narrative-extended" $mode="block"/>
|
||||
|
||||
+
|
||||
title: root
|
||||
|
||||
This is the base tag for a ''tagLike'' TOC
|
||||
|
||||
+
|
||||
title: First
|
||||
tagLike: root
|
||||
|
||||
1st 1st 1st 1st 1st
|
||||
+
|
||||
title: Second
|
||||
tagLike: First
|
||||
|
||||
2nd 2nd 2nd 2nd 2nd
|
||||
+
|
||||
title: Third
|
||||
tagLike: root
|
||||
|
||||
3rd 3rd 3rd 3rd 3rd
|
||||
+
|
||||
title: Fourth
|
||||
tagLike: root
|
||||
|
||||
4th 4th 4th 4th 4th
|
||||
|
||||
+
|
||||
title: Fifth
|
||||
tagLike: Second
|
||||
|
||||
5th 5th 5th 5th 5th
|
||||
|
||||
+
|
||||
title: Sixth
|
||||
tagLike: Second
|
||||
|
||||
6th 6th 6th 6th 6th
|
||||
|
||||
+
|
||||
title: Output
|
||||
|
||||
<!--
|
||||
This variable set to yes allows you to show a New-Child button.
|
||||
This button will create a "real" tiddler, which will _not_ be listed here
|
||||
-->
|
||||
\define tv-toc-show-new-child() yes
|
||||
|
||||
<div class="tc-table-of-contents">
|
||||
<<toc tag:"root" tagField:"tagLike">>
|
||||
</div>
|
||||
|
9
editions/tw5.com/tiddlers/Foo.tid
Normal file
9
editions/tw5.com/tiddlers/Foo.tid
Normal file
@ -0,0 +1,9 @@
|
||||
created: 20240204201341870
|
||||
modified: 20240204201426366
|
||||
tags: [[Another TOC Entry]]
|
||||
title: Foo
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
17
editions/tw5.com/tiddlers/JContents.tid
Normal file
17
editions/tw5.com/tiddlers/JContents.tid
Normal file
@ -0,0 +1,17 @@
|
||||
created: 20240511050424528
|
||||
modified: 20240513105625703
|
||||
tags: TOC
|
||||
title: JContents
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
This is a "parent" based TOC
|
||||
|
||||
See: https://talk.tiddlywiki.org/t/optimal-toc-use-for-multiple-topics/9804
|
||||
|
||||
<div class="tc-table-of-contents">
|
||||
<<toc tag:"JContents" parentField:"parent" captionField:test itemTemplate:>>
|
||||
</div>
|
||||
|
||||
<div class="tc-table-of-contents">
|
||||
<<toc-selective-expandable tag:"JContents" parentField:"parent">>
|
||||
</div>
|
12
editions/tw5.com/tiddlers/Jane Doe.tid
Normal file
12
editions/tw5.com/tiddlers/Jane Doe.tid
Normal file
@ -0,0 +1,12 @@
|
||||
created: 20240511051024483
|
||||
modified: 20240511051945814
|
||||
parent: LandCharacters
|
||||
tags: Characters
|
||||
title: Jane Doe
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
See: [[JContents]]
|
||||
|
||||
<<list-fields>>
|
13
editions/tw5.com/tiddlers/John Doe.tid
Normal file
13
editions/tw5.com/tiddlers/John Doe.tid
Normal file
@ -0,0 +1,13 @@
|
||||
created: 20240511051244986
|
||||
modified: 20240513102713108
|
||||
parent: TowerCharacters
|
||||
tags: Characters
|
||||
title: John Doe
|
||||
toc-itemTemplate: y
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
See: [[JContents]]
|
||||
|
||||
<<list-fields>>
|
16
editions/tw5.com/tiddlers/LandCharacters.tid
Normal file
16
editions/tw5.com/tiddlers/LandCharacters.tid
Normal file
@ -0,0 +1,16 @@
|
||||
caption: Characters
|
||||
created: 20240511051311906
|
||||
description: indirect tooltip
|
||||
modified: 20240513092023864
|
||||
parent: Lands of Stone and Steel
|
||||
tags: character-category
|
||||
test:
|
||||
title: LandCharacters
|
||||
toc-tooltip: some text
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
See: [[JContents]]
|
||||
|
||||
<<list-fields>>
|
12
editions/tw5.com/tiddlers/Lands of Stone and Steel.tid
Normal file
12
editions/tw5.com/tiddlers/Lands of Stone and Steel.tid
Normal file
@ -0,0 +1,12 @@
|
||||
created: 20240511050833305
|
||||
modified: 20240511052312846
|
||||
parent: JContents
|
||||
tags: story
|
||||
title: Lands of Stone and Steel
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
See: [[JContents]]
|
||||
|
||||
<<list-fields>>
|
14
editions/tw5.com/tiddlers/MR.tid
Normal file
14
editions/tw5.com/tiddlers/MR.tid
Normal file
@ -0,0 +1,14 @@
|
||||
created: 20240204014414845
|
||||
first-name: Robert
|
||||
last-name: M.
|
||||
modified: 20240208142443958
|
||||
tags: person
|
||||
title: MR
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
* part of [[test-contacts]]
|
||||
* has `first-name`, `last-name` fields
|
||||
|
||||
<<list-fields>>
|
12
editions/tw5.com/tiddlers/Person.json
Normal file
12
editions/tw5.com/tiddlers/Person.json
Normal file
@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"created": "20240204200502854",
|
||||
"text": "\\import [[b b]]\n\nSee: [[test-toc-sorted-names]]\n\nTiddlers tagged with this tiddler title: ''{{!!title}}''\n\n<<list-links filter:\"[tag{!!title}]\">>\n\n<<list-fields>>",
|
||||
"tags": "nameSorted",
|
||||
"title": "Person",
|
||||
"modified": "20240208164734873",
|
||||
"type": "text/vnd.tiddlywiki",
|
||||
"toc-include": "[tag[Person]sortsub:string<name-sort>] ",
|
||||
"caption": "People"
|
||||
}
|
||||
]
|
12
editions/tw5.com/tiddlers/Person_1.tid
Normal file
12
editions/tw5.com/tiddlers/Person_1.tid
Normal file
@ -0,0 +1,12 @@
|
||||
caption: Betty Rubble
|
||||
created: 20240204194635635
|
||||
first-name: Betty
|
||||
last-name: Rubble
|
||||
modified: 20240204201551862
|
||||
tags: Person
|
||||
title: Person/1
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
12
editions/tw5.com/tiddlers/Person_2.tid
Normal file
12
editions/tw5.com/tiddlers/Person_2.tid
Normal file
@ -0,0 +1,12 @@
|
||||
caption: Booboo Bear
|
||||
created: 20240204194659091
|
||||
first-name: Booboo
|
||||
last-name: Bear
|
||||
modified: 20240204201551863
|
||||
tags: Person
|
||||
title: Person/2
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
12
editions/tw5.com/tiddlers/Person_3.tid
Normal file
12
editions/tw5.com/tiddlers/Person_3.tid
Normal file
@ -0,0 +1,12 @@
|
||||
caption: Wilma Flintstone
|
||||
created: 20240204194617448
|
||||
first-name: Wilma
|
||||
last-name: Flintstone
|
||||
modified: 20240204201551863
|
||||
tags: Person
|
||||
title: Person/3
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
12
editions/tw5.com/tiddlers/Person_4.tid
Normal file
12
editions/tw5.com/tiddlers/Person_4.tid
Normal file
@ -0,0 +1,12 @@
|
||||
caption: Barney Rubble
|
||||
created: 20240204195544323
|
||||
first-name: Barney
|
||||
last-name: Rubble
|
||||
modified: 20240204201551863
|
||||
tags: Person
|
||||
title: Person/4
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
12
editions/tw5.com/tiddlers/Person_5.tid
Normal file
12
editions/tw5.com/tiddlers/Person_5.tid
Normal file
@ -0,0 +1,12 @@
|
||||
caption: Yogi Bear
|
||||
created: 20240204195458310
|
||||
first-name: Yogi
|
||||
last-name: Bear
|
||||
modified: 20240204201551863
|
||||
tags: Person
|
||||
title: Person/5
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
12
editions/tw5.com/tiddlers/Person_6.tid
Normal file
12
editions/tw5.com/tiddlers/Person_6.tid
Normal file
@ -0,0 +1,12 @@
|
||||
caption: Fred Flintstone
|
||||
created: 20240204194520251
|
||||
first-name: Fred
|
||||
last-name: Flintstone
|
||||
modified: 20240204201551863
|
||||
tags: Person
|
||||
title: Person/6
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
14
editions/tw5.com/tiddlers/SR.tid
Normal file
14
editions/tw5.com/tiddlers/SR.tid
Normal file
@ -0,0 +1,14 @@
|
||||
created: 20240204014347171
|
||||
first-name: Robert
|
||||
last-name: S.
|
||||
modified: 20240208142459410
|
||||
tags: person
|
||||
title: SR
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
* part of [[test-contacts]]
|
||||
* has `first-name`, `last-name` fields
|
||||
|
||||
<<list-fields>>
|
10
editions/tw5.com/tiddlers/Sorted by (tiddler) Title.tid
Normal file
10
editions/tw5.com/tiddlers/Sorted by (tiddler) Title.tid
Normal file
@ -0,0 +1,10 @@
|
||||
created: 20240204201702168
|
||||
modified: 20240208163044568
|
||||
tags: nameSorted
|
||||
title: Sorted by (tiddler) Title
|
||||
toc-include: [tag[Person]]
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
@ -0,0 +1,11 @@
|
||||
created: 20240826172211655
|
||||
modified: 20240826172607528
|
||||
tags: [[Macro Examples]] [[Table-of-Contents Macros]]
|
||||
title: Table-of-Contents Macros (Advanced Examples)
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The following examples provide information about the "rewritten" toc macors. For the standard examples look at: [[Table-of-Contents Macros (Examples)]]
|
||||
|
||||
<<list-links filter:"[prefix[Examples/TOC/]]">>
|
||||
|
||||
<<tree prefix:"Examples/TOC/">>
|
12
editions/tw5.com/tiddlers/The Tower.tid
Normal file
12
editions/tw5.com/tiddlers/The Tower.tid
Normal file
@ -0,0 +1,12 @@
|
||||
created: 20240511050807552
|
||||
modified: 20240511052302496
|
||||
parent: JContents
|
||||
tags: story
|
||||
title: The Tower
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
See: [[JContents]]
|
||||
|
||||
<<list-fields>>
|
11
editions/tw5.com/tiddlers/ToDo-1.tid
Normal file
11
editions/tw5.com/tiddlers/ToDo-1.tid
Normal file
@ -0,0 +1,11 @@
|
||||
created: 20240204045534918
|
||||
modified: 20240208142539795
|
||||
tags: todo1
|
||||
title: ToDo-1
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
* this tiddler is part of the tag: "todo" tree
|
||||
|
||||
<<list-fields>>
|
14
editions/tw5.com/tiddlers/TowerCharacters.tid
Normal file
14
editions/tw5.com/tiddlers/TowerCharacters.tid
Normal file
@ -0,0 +1,14 @@
|
||||
caption:
|
||||
created: 20240511050916535
|
||||
modified: 20240513093614000
|
||||
parent: The Tower
|
||||
tags: character-category
|
||||
test: test-caption
|
||||
title: TowerCharacters
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
See: [[JContents]]
|
||||
|
||||
<<list-fields>>
|
@ -0,0 +1,6 @@
|
||||
created: 20240201204233476
|
||||
modified: 20240201205239293
|
||||
title: _/state/popup/toc/useGlobal
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
yes
|
14
editions/tw5.com/tiddlers/aaa-aaa.tid
Normal file
14
editions/tw5.com/tiddlers/aaa-aaa.tid
Normal file
@ -0,0 +1,14 @@
|
||||
created: 20240202131409493
|
||||
modified: 20240723111518110
|
||||
tags: aaa
|
||||
title: aaa-aaa
|
||||
toc-filter: [tag[person]sort[last-name]]
|
||||
toc-itemTemplate: template
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
* this tiddler contains `toc-filter`: <code>{{!!toc-filter}}</code>
|
||||
* this tiddler contains `toc-itemTemplate`: <$link to={{!!toc-itemTemplate}}>{{!!toc-itemTemplate}}</$link>
|
||||
|
||||
<<list-fields>>
|
9
editions/tw5.com/tiddlers/aaa.a.tid
Normal file
9
editions/tw5.com/tiddlers/aaa.a.tid
Normal file
@ -0,0 +1,9 @@
|
||||
created: 20240208110758671
|
||||
modified: 20240723091044063
|
||||
tag-like: aaa
|
||||
title: aaa.a
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
10
editions/tw5.com/tiddlers/aaa.b.1.tid
Normal file
10
editions/tw5.com/tiddlers/aaa.b.1.tid
Normal file
@ -0,0 +1,10 @@
|
||||
created: 20240723090930572
|
||||
modified: 20240723091006596
|
||||
tag-like: aaa.b
|
||||
tags:
|
||||
title: aaa.b.1
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
9
editions/tw5.com/tiddlers/aaa.b.tid
Normal file
9
editions/tw5.com/tiddlers/aaa.b.tid
Normal file
@ -0,0 +1,9 @@
|
||||
created: 20240208110754007
|
||||
modified: 20240723091032175
|
||||
tag-like: aaa
|
||||
title: aaa.b
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
<<list-fields>>
|
14
editions/tw5.com/tiddlers/aaa.tid
Normal file
14
editions/tw5.com/tiddlers/aaa.tid
Normal file
@ -0,0 +1,14 @@
|
||||
created: 20240202131427117
|
||||
modified: 20240723091102490
|
||||
tag-like: tag-like-root
|
||||
tags: root [[b b]] aaa
|
||||
title: aaa
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
* This tiddler is part of several tag-trees, to test recursion detection
|
||||
* It also tags itself, to test expand / fold CTRL-click state-tiddler creation
|
||||
** There should be ''no'' redundant (not needed) state tiddlers
|
||||
|
||||
<<list-fields>>
|
42
editions/tw5.com/tiddlers/b b.tid
Normal file
42
editions/tw5.com/tiddlers/b b.tid
Normal file
@ -0,0 +1,42 @@
|
||||
caption: b b-caption
|
||||
created: 20240202131440055
|
||||
modified: 20240723104825891
|
||||
tag-like: tag-like-root
|
||||
tags: aaa
|
||||
test: b b-test
|
||||
title: b b
|
||||
toc-filter:
|
||||
toc-hide:
|
||||
toc-include: [tag[todo]]
|
||||
toc-link:
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\procedure list-fields()
|
||||
<table class="tc-view-field-table">
|
||||
<tbody>
|
||||
<$list filter="[all[current]fields[]sort[title]] -text -title -bag -modified -created -revision -type " template="$:/core/ui/TiddlerFieldTemplate" variable="listItem"/>
|
||||
</tbody>
|
||||
</table>
|
||||
\end
|
||||
|
||||
This tiddler contains the `list-fields` procedure which is included in many test tiddlers.
|
||||
|
||||
```
|
||||
\procedure list-fields()
|
||||
<table class="tc-view-field-table">
|
||||
<tbody>
|
||||
<$list filter="[all[current]fields[]sort[title]] -text -title -bag -modified -created -revision -type " template="$:/core/ui/TiddlerFieldTemplate" variable="listItem"/>
|
||||
</tbody>
|
||||
</table>
|
||||
\end
|
||||
```
|
||||
|
||||
* This tiddler is part of the ''tag-tree''
|
||||
* It toc-includes all tiddlers tagged: `todo`
|
||||
** The todo's are intended to be shown with a custom template, that contains checkboxes and triggers a "done" action (NOT implemented yet)
|
||||
** [[todo1]] has a field `toc-link: no` so it cannot be clicked to open it
|
||||
** todo1 should have a chevron
|
||||
|
||||
* This tiddler has many fields <<fields>>
|
||||
|
||||
<<list-fields>>
|
13
editions/tw5.com/tiddlers/c c.tid
Normal file
13
editions/tw5.com/tiddlers/c c.tid
Normal file
@ -0,0 +1,13 @@
|
||||
created: 20240618195529960
|
||||
modified: 20240723090706837
|
||||
tag-like: tag-like-root
|
||||
tags:
|
||||
title: c c
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
* see: [[tag-like-root]]
|
||||
* part of <code>tag-like: {{!!tag-like}}</code>
|
||||
|
||||
<<list-fields>>
|
13
editions/tw5.com/tiddlers/ccc.tid
Normal file
13
editions/tw5.com/tiddlers/ccc.tid
Normal file
@ -0,0 +1,13 @@
|
||||
created: 20240202225320834
|
||||
modified: 20240723091154737
|
||||
tag-like: tag-like-root
|
||||
tags: [[b b]]
|
||||
title: ccc
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\import [[b b]]
|
||||
|
||||
* this tiddler is part of the tag: [[b b]] tree
|
||||
* also part of <code>tag-like: {{!!tag-like}}</code>
|
||||
|
||||
<<list-fields>>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user