mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
898e992694
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
24 lines
538 B
Plaintext
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
|