mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-03 08:07:36 +00:00
Major updates to text-slicer plugin
* In the interests of performance and expressiveness, switched to using a Sax parser instead of a DOM implementation. * Use extensible declarative rules to control the slicing process * Added new optional set of rules for slicing by heading, where the paragraphs underneath a heading are packed into the same tiddler as the heading * Added a modal dialogue for specifying parameters when slicing in the browser
This commit is contained in:
@@ -7,10 +7,11 @@ description: Slice this text tiddler by headings and lists
|
||||
\whitespace trim
|
||||
|
||||
\define hint()
|
||||
Slice this text tiddler by headings and lists
|
||||
Slice this text tiddler into chunks
|
||||
\end
|
||||
|
||||
<$button message="tm-slice-tiddler" param=<<currentTiddler>> tooltip=<<hint>> aria-label=<<hint>> class=<<tv-config-toolbar-class>>>
|
||||
<$button tooltip=<<hint>> aria-label=<<hint>> class=<<tv-config-toolbar-class>>>
|
||||
<$action-sendmessage $message="tm-modal" $param="$:/plugins/tiddlywiki/text/slicer/ui/slice-modal" currentTiddler=<<currentTiddler>>/>
|
||||
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon}}
|
||||
</$list>
|
||||
|
||||
Reference in New Issue
Block a user