1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-16 06:44:50 +00:00

Text-slicer: reorganise plugin shadow tiddler titles

This commit is contained in:
Jermolene 2015-08-31 16:49:47 +01:00
parent ae80f9176d
commit cc4bef9c0e
19 changed files with 38 additions and 41 deletions

View File

@ -1,4 +0,0 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/export-full-doc
tags: $:/tags/ViewTemplate
<$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/template-tiddler" listItem="item"/>

View File

@ -0,0 +1,4 @@
title: $:/plugins/tiddlywiki/text-slicer/exporters/full-doc
tags: $:/tags/ViewTemplate
<$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler" listItem="item"/>

View File

@ -5,7 +5,7 @@ tags: $:/tags/Image
<g fill-rule="evenodd" sketch:type="MSPage"> <g fill-rule="evenodd" sketch:type="MSPage">
<path d="M64,0 L118.5596,32 L118.5596,96 L64,128 L9.44039956,96 L9.44039956,32 L64,0 Z" ></path> <path d="M64,0 L118.5596,32 L118.5596,96 L64,128 L9.44039956,96 L9.44039956,32 L64,0 Z" ></path>
<g transform="translate(32.000000, 32.000000) scale(2.19)" fill="#ffffff"> <g transform="translate(32.000000, 32.000000) scale(2.19)" fill="#ffffff">
{{$:/plugins/tiddlywiki/text-slicer/text-slicer-icon}} {{$:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon}}
</g> </g>
</g> </g>
</svg> </svg>

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/text-slicer/text-slicer-icon title: $:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon
tags: $:/tags/Image tags: $:/tags/Image
<svg class="tc-image-text-slicer tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128"> <svg class="tc-image-text-slicer tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">

View File

@ -1,5 +1,5 @@
/*\ /*\
title: $:/plugins/tiddlywiki/text-slicer/slicer.js title: $:/plugins/tiddlywiki/text-slicer/modules/slicer.js
type: application/javascript type: application/javascript
module-type: startup module-type: startup

View File

@ -1,3 +0,0 @@
title: $:/tags/TextSlicerToolbar
list: $:/plugins/tiddlywiki/text-slicer/toolbar/title $:/plugins/tiddlywiki/text-slicer/toolbar/tags $:/plugins/tiddlywiki/text-slicer/toolbar/rename $:/plugins/tiddlywiki/text-slicer/toolbar/edit $:/plugins/tiddlywiki/text-slicer/toolbar/cancel $:/plugins/tiddlywiki/text-slicer/toolbar/done

View File

@ -1,6 +0,0 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/view-document
<$button>
<$action-sendmessage $message="tm-open-window" $param=<<currentTiddler>> template="$:/plugins/tiddlywiki/text-slicer/templates/export-full-doc"/>
View document
</$button>

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/template-document title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/document
\define config-show-toolbar() \define config-show-toolbar()
$:/config/plugins/tiddlywiki/text-slicer/show-toolbar/$(currentTiddler)$ $:/config/plugins/tiddlywiki/text-slicer/show-toolbar/$(currentTiddler)$
@ -21,7 +21,7 @@ $:/config/plugins/tiddlywiki/text-slicer/heading-status/$(currentTiddler)$
<$checkbox tiddler=<<config-show-toolbar>> field="text" checked="yes" unchecked="no" default="no"> Show toolbar</$checkbox> <$checkbox tiddler=<<config-show-toolbar>> field="text" checked="yes" unchecked="no" default="no"> Show toolbar</$checkbox>
{{||$:/plugins/tiddlywiki/text-slicer/templates/view-document}} {{||$:/plugins/tiddlywiki/text-slicer/ui/view-document-button}}
</div> </div>
@ -29,7 +29,7 @@ $:/config/plugins/tiddlywiki/text-slicer/heading-status/$(currentTiddler)$
<$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}> <$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}>
<$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/template-tiddler" listItem="item"/> <$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler" listItem="item"/>
</$set> </$set>

View File

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

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/template-item title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/item
<$link tag="li" class="tc-document-tiddler-link"> <$link tag="li" class="tc-document-tiddler-link">

View File

@ -1,8 +1,8 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/template-list title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/list
\define body(type:"ul") \define body(type:"ul")
<$type$> <$type$>
<$list filter={{!!text}} template="$:/plugins/tiddlywiki/text-slicer/templates/template-tiddler" listItem="item"/> <$list filter={{!!text}} template="$:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler" listItem="item"/>
</$type$> </$type$>
\end \end

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/template-paragraph title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/paragraph
<$link tag="div" class="tc-document-tiddler-link"> <$link tag="div" class="tc-document-tiddler-link">

View File

@ -1,25 +1,25 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/template-tiddler title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler
<$list filter="[<tv-show-toolbar>prefix[yes]]" variable="hasToolbar"> <$list filter="[<tv-show-toolbar>prefix[yes]]" variable="hasToolbar">
{{||$:/plugins/tiddlywiki/text-slicer/templates/tiddler-toolbar}} {{||$:/plugins/tiddlywiki/text-slicer/ui/toolbar/tiddler-toolbar}}
</$list> </$list>
<$reveal type="match" state="!!toc-type" text="document"> <$reveal type="match" state="!!toc-type" text="document">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/template-document" mode="block"/> <$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/interactive/document" mode="block"/>
</$reveal> </$reveal>
<$reveal type="match" state="!!toc-type" text="heading"> <$reveal type="match" state="!!toc-type" text="heading">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/template-heading" mode="block"/> <$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/interactive/heading" mode="block"/>
</$reveal> </$reveal>
<$reveal type="match" state="!!toc-type" text="paragraph"> <$reveal type="match" state="!!toc-type" text="paragraph">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/template-paragraph" mode="block"/> <$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/interactive/paragraph" mode="block"/>
</$reveal> </$reveal>
<$reveal type="match" state="!!toc-type" text="list"> <$reveal type="match" state="!!toc-type" text="list">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/template-list" mode="block"/> <$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/interactive/list" mode="block"/>
</$reveal> </$reveal>
<$reveal type="match" state="!!toc-type" text="item"> <$reveal type="match" state="!!toc-type" text="item">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/template-item" mode="block"/> <$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/interactive/item" mode="block"/>
</$reveal> </$reveal>

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/text-slicer/preview-column title: $:/plugins/tiddlywiki/text-slicer/ui/preview-column
tags: $:/tags/AboveStory tags: $:/tags/AboveStory
<$scrollable fallthrough="no" class="tc-document-preview-column"> <$scrollable fallthrough="no" class="tc-document-preview-column">
@ -7,7 +7,7 @@ tags: $:/tags/AboveStory
<$set name="tv-show-gadgets" value="yes"> <$set name="tv-show-gadgets" value="yes">
<$list filter="[toc-type[document]!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/template-document"/> <$list filter="[toc-type[document]!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/interactive/document"/>
</$set> </$set>

View File

@ -1,7 +1,7 @@
title: $:/plugins/tiddlywiki/text-slicer/ui/slice-button title: $:/plugins/tiddlywiki/text-slicer/ui/slice-toolbar-button
tags: $:/tags/ViewToolbar tags: $:/tags/ViewToolbar
list-before: $:/core/ui/Buttons/edit list-before: $:/core/ui/Buttons/edit
caption: {{$:/plugins/tiddlywiki/text-slicer/text-slicer-icon}} Slice tiddler caption: {{$:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon}} Slice tiddler
description: Slice this tiddler by headings and lists description: Slice this tiddler by headings and lists
\define hint() \define hint()
@ -10,7 +10,7 @@ Slice this tiddler by headings and lists
<$button message="tm-slice-tiddler" param=<<currentTiddler>> tooltip=<<hint>> aria-label=<<hint>> class=<<tv-config-toolbar-class>>> <$button message="tm-slice-tiddler" param=<<currentTiddler>> tooltip=<<hint>> aria-label=<<hint>> class=<<tv-config-toolbar-class>>>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/plugins/tiddlywiki/text-slicer/text-slicer-icon}} {{$:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon}}
</$list> </$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]"> <$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text">Slice tiddler</span> <span class="tc-btn-text">Slice tiddler</span>

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/tiddler-toolbar title: $:/plugins/tiddlywiki/text-slicer/ui/toolbar/tiddler-toolbar
<$list filter="[<tv-show-gadgets>prefix[yes]]" variable="hasToolbar"> <$list filter="[<tv-show-gadgets>prefix[yes]]" variable="hasToolbar">
<div class="tc-slice-toolbar"> <div class="tc-slice-toolbar">

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/text-slicer/toolbar/title title: $:/plugins/tiddlywiki/text-slicer/ui/toolbar/title
tags: $:/tags/TextSlicerToolbar tags: $:/tags/TextSlicerToolbar
\define renameProxyTitle() \define renameProxyTitle()

View File

@ -0,0 +1,6 @@
title: $:/plugins/tiddlywiki/text-slicer/ui/view-document-button
<$button>
<$action-sendmessage $message="tm-open-window" $param=<<currentTiddler>> template="$:/plugins/tiddlywiki/text-slicer/exporters/full-doc"/>
View document
</$button>

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/view-template-tiddler title: $:/plugins/tiddlywiki/text-slicer/ui/view-template-segment
tags: $:/tags/ViewTemplate tags: $:/tags/ViewTemplate
<$reveal type="nomatch" state="!!toc-type" text=""> <$reveal type="nomatch" state="!!toc-type" text="">
@ -15,7 +15,7 @@ tags: $:/tags/ViewTemplate
<$set name="tv-show-gadgets" value="yes"> <$set name="tv-show-gadgets" value="yes">
<$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/template-tiddler"/> <$transclude tiddler="$:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler"/>
</$set> </$set>