mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
Add select box for displaying tags vs. tiddlers
This commit is contained in:
parent
8e033eb0d4
commit
b00c1c7290
@ -4,8 +4,8 @@ color: #bbb
|
|||||||
|
|
||||||
\define tag-checkbox-actions()
|
\define tag-checkbox-actions()
|
||||||
<$action-listops
|
<$action-listops
|
||||||
$tiddler="$:/config/Tagger/RecentTags"
|
$tiddler="$:/config/Manager/RecentTags"
|
||||||
$subfilter="[<tag>] [list[$:/config/Tagger/RecentTags]] +[limit[12]]"
|
$subfilter="[<tag>] [list[$:/config/Manager/RecentTags]] +[limit[12]]"
|
||||||
/>
|
/>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
@ -21,51 +21,57 @@ color: #bbb
|
|||||||
<div class="tc-manager-wrapper">
|
<div class="tc-manager-wrapper">
|
||||||
<div class="tc-manager-controls">
|
<div class="tc-manager-controls">
|
||||||
<div class="tc-manager-control">
|
<div class="tc-manager-control">
|
||||||
Search: <$edit-text tiddler="$:/config/Tagger/Filter" tag="input" default="" placeholder="Search"/>
|
Show: <$select tiddler="$:/config/Manager/Show" default="tiddlers">
|
||||||
|
<option value="tiddlers">tiddlers</option>
|
||||||
|
<option value="tags">tags</option>
|
||||||
|
</$select>
|
||||||
</div>
|
</div>
|
||||||
<div class="tc-manager-control">
|
<div class="tc-manager-control">
|
||||||
Filter by tag: <$select tiddler="$:/config/Tagger/Tag" default="">
|
Search: <$edit-text tiddler="$:/config/Manager/Filter" tag="input" default="" placeholder="Search"/>
|
||||||
|
</div>
|
||||||
|
<div class="tc-manager-control">
|
||||||
|
Filter by tag: <$select tiddler="$:/config/Manager/Tag" default="">
|
||||||
<option value="">(none)</option>
|
<option value="">(none)</option>
|
||||||
<$list filter="[!is{$:/config/Tagger/System}tags[]!is[system]sort[title]]" variable="tag">
|
<$list filter="[!is{$:/config/Manager/System}tags[]!is[system]sort[title]]" variable="tag">
|
||||||
<option value=<<tag>>><$text text=<<tag>>/></option>
|
<option value=<<tag>>><$text text=<<tag>>/></option>
|
||||||
</$list>
|
</$list>
|
||||||
</$select>
|
</$select>
|
||||||
</div>
|
</div>
|
||||||
<div class="tc-manager-control">
|
<div class="tc-manager-control">
|
||||||
Sort by: <$select tiddler="$:/config/Tagger/Sort" default="title">
|
Sort by: <$select tiddler="$:/config/Manager/Sort" default="title">
|
||||||
<optgroup label="Common">
|
<optgroup label="Common">
|
||||||
<$list filter="title modified modifier created creator created" variable="field">
|
<$list filter="title modified modifier created creator created" variable="field">
|
||||||
<option value=<<field>>><$text text=<<field>>/></option>
|
<option value=<<field>>><$text text=<<field>>/></option>
|
||||||
</$list>
|
</$list>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
<optgroup label="All">
|
<optgroup label="All">
|
||||||
<$list filter="[!is{$:/config/Tagger/System}fields[]sort[title]] -title -modified -modifier -created -creator -created" variable="field">
|
<$list filter="[all{$:/config/Manager/Show}!is{$:/config/Manager/System}fields[]sort[title]] -title -modified -modifier -created -creator -created" variable="field">
|
||||||
<option value=<<field>>><$text text=<<field>>/></option>
|
<option value=<<field>>><$text text=<<field>>/></option>
|
||||||
</$list>
|
</$list>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
</$select>
|
</$select>
|
||||||
<$checkbox tiddler="$:/config/Tagger/Order" field="text" checked="reverse" unchecked="forward" default="forward">
|
<$checkbox tiddler="$:/config/Manager/Order" field="text" checked="reverse" unchecked="forward" default="forward">
|
||||||
Reverse order
|
Reverse order
|
||||||
</$checkbox>
|
</$checkbox>
|
||||||
</div>
|
</div>
|
||||||
<div class="tc-manager-control">
|
<div class="tc-manager-control">
|
||||||
<$checkbox tiddler="$:/config/Tagger/Untagged" field="text" checked="yes" unchecked="no" default="no">
|
<$checkbox tiddler="$:/config/Manager/Untagged" field="text" checked="yes" unchecked="no" default="no">
|
||||||
Only show untagged tiddlers
|
Only show untagged tiddlers
|
||||||
</$checkbox>
|
</$checkbox>
|
||||||
</div>
|
</div>
|
||||||
<div class="tc-manager-control">
|
<div class="tc-manager-control">
|
||||||
<$checkbox tiddler="$:/config/Tagger/System" field="text" checked="missing" unchecked="system" default="system">
|
<$checkbox tiddler="$:/config/Manager/System" field="text" checked="" unchecked="system" default="system">
|
||||||
Show system tiddlers
|
Show system tiddlers
|
||||||
</$checkbox>
|
</$checkbox>
|
||||||
</div>
|
</div>
|
||||||
<div class="tc-manager-control">
|
<div class="tc-manager-control">
|
||||||
<$checkbox tiddler="$:/config/Tagger/View" field="text" checked="plain" unchecked="wikified" default="wikified">
|
<$checkbox tiddler="$:/config/Manager/View" field="text" checked="plain" unchecked="wikified" default="wikified">
|
||||||
Show raw text
|
Show raw text
|
||||||
</$checkbox>
|
</$checkbox>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tc-manager-list">
|
<div class="tc-manager-list">
|
||||||
<$list filter="[!is{$:/config/Tagger/System}search{$:/config/Tagger/Filter}tag:strict{$:/config/Tagger/Tag}untagged:no{$:/config/Tagger/Untagged}sort{$:/config/Tagger/Sort}order{$:/config/Tagger/Order}]">
|
<$list filter="[all{$:/config/Manager/Show}!is{$:/config/Manager/System}search{$:/config/Manager/Filter}tag:strict{$:/config/Manager/Tag}untagged:no{$:/config/Manager/Untagged}sort{$:/config/Manager/Sort}order{$:/config/Manager/Order}]">
|
||||||
<$vars transclusion=<<currentTiddler>>>
|
<$vars transclusion=<<currentTiddler>>>
|
||||||
<div style="tc-manager-list-item">
|
<div style="tc-manager-list-item">
|
||||||
<$button popup=<<qualify "$:/state/manager/popup">> class="tc-btn-invisible tc-manager-list-item-heading">
|
<$button popup=<<qualify "$:/state/manager/popup">> class="tc-btn-invisible tc-manager-list-item-heading">
|
||||||
@ -74,10 +80,10 @@ Show raw text
|
|||||||
<$reveal state=<<qualify "$:/state/manager/popup">> type="nomatch" text="" default="" tag="div" class="tc-manager-list-item-content tc-popup-handle">
|
<$reveal state=<<qualify "$:/state/manager/popup">> type="nomatch" text="" default="" tag="div" class="tc-manager-list-item-content tc-popup-handle">
|
||||||
<div class="tc-manager-list-item-content-tiddler">
|
<div class="tc-manager-list-item-content-tiddler">
|
||||||
<div class="tc-manager-list-item-content-tiddler-item">
|
<div class="tc-manager-list-item-content-tiddler-item">
|
||||||
<$reveal state="$:/config/Tagger/View" type="nomatch" text="plain">
|
<$reveal state="$:/config/Manager/View" type="nomatch" text="plain">
|
||||||
<$transclude mode="block"/>
|
<$transclude mode="block"/>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal state="$:/config/Tagger/View" type="match" text="plain">
|
<$reveal state="$:/config/Manager/View" type="match" text="plain">
|
||||||
<pre>
|
<pre>
|
||||||
<code>
|
<code>
|
||||||
<$view/>
|
<$view/>
|
||||||
@ -93,7 +99,7 @@ Show raw text
|
|||||||
</div>
|
</div>
|
||||||
<div class="tc-manager-list-item-content-sidebar">
|
<div class="tc-manager-list-item-content-sidebar">
|
||||||
<div class="tc-manager-list-item-content-sidebar-item">
|
<div class="tc-manager-list-item-content-sidebar-item">
|
||||||
<$list filter="[is[current]tags[]] [list[$:/config/Tagger/RecentTags]] +[sort[title]] " variable="tag">
|
<$list filter="[is[current]tags[]] [list[$:/config/Manager/RecentTags]] +[sort[title]] " variable="tag">
|
||||||
<div>
|
<div>
|
||||||
<$checkbox tiddler=<<currentTiddler>> tag=<<tag>> actions=<<tag-checkbox-actions>>>
|
<$checkbox tiddler=<<currentTiddler>> tag=<<tag>> actions=<<tag-checkbox-actions>>>
|
||||||
<$macrocall $name="tag-pill" tag=<<tag>>/>
|
<$macrocall $name="tag-pill" tag=<<tag>>/>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
title: $:/config/Tagger/
|
title: $:/config/Manager/
|
||||||
|
|
||||||
|
Show: tiddlers
|
||||||
Filter:
|
Filter:
|
||||||
Order: forward
|
Order: forward
|
||||||
Sort: title
|
Sort: title
|
Loading…
Reference in New Issue
Block a user