Text-slicer improvements

1. Switch from using the text field of lists for storing the associated
filter to using the field `toc-list-filter` (to make it harder to
accidentally parse the text of an ordinary tiddler as a filter)
2. Fix several bugs
This commit is contained in:
Jermolene
2015-09-04 08:42:07 +01:00
parent 5dcb53abae
commit 4ea5dce284
15 changed files with 41 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/heading
\define config-heading-status()
$(tv-heading-status-config-title)$/$(currentTiddler)$
$(tv-heading-status-config-title)$/$(tv-heading-status-config-prefix)$/$(currentTiddler)$
\end
\define body(level:"h1")
@@ -23,7 +23,7 @@ $(tv-heading-status-config-title)$/$(currentTiddler)$
<$view field="text"/>
</$link>
<$reveal type="nomatch" state=<<tv-heading-status-config-title>> text="open" default=<<tv-default-heading-state>>>
<$list filter="[tag<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler" listItem="item"/>
<$list filter="[tag<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler"/>
</$reveal>
</div>
</$set>