1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-05 11:43:16 +00:00
TiddlyWiki5/plugins/tiddlywiki/text-slicer/macros.tid
Jermolene 898e992694 Improvements to text-slicer plugin
1. Introduce template tiddlers for the document, each tiddler, and the
tiddler toolbar
2. Move the text slicer toolbar button to the left of the edit button
3. Add a selectable toolbar, currently just containing the tiddler title
2015-08-03 15:10:35 +01:00

24 lines
538 B
Plaintext

title: $:/plugins/tiddlywiki/text-slicer/macros
tags: $:/tags/Macro
\define display-heading-tiddler(level:"h1")
<$level$><$view field="title"/></$level$>
<$list filter='[tag<currentTiddler>!has[draft.of]]'>
<$tiddler>
{{||$:/plugins/tiddlywiki/text-slicer/templates/display-tiddler}}
</$tiddler>
</$list>
\end
\define display-list-tiddler(type:"ol")
<$type$>
<$list filter='[tag<currentTiddler>!has[draft.of]]'>
<li>
<$tiddler>
{{||$:/plugins/tiddlywiki/text-slicer/templates/display-tiddler}}
</$tiddler>
</li>
</$list>
</$type$>
\end