Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tag-tiddler to tag-pill drag & drop import, add hidden setting for TagPillDragFilter #8182

Merged
merged 4 commits into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/ui/TagTemplate.tid
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ title: $:/core/ui/TagTemplate
colour={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}}
palette={{$:/palette}}
element-tag="$button"
element-attributes="""popup=<<qualify "$:/state/popup/tag">> dragFilter="[all[current]tagging[]]" tag='span'"""
element-attributes="""popup=<<qualify "$:/state/popup/tag">> dragFilter="[subfilter{$:/core/config/TagPillDragFilter}]" tag='span'"""
/>
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes" class="tc-drop-down">
<$set name="tv-show-missing-links" value="yes">
Expand Down
2 changes: 2 additions & 0 deletions core/wiki/config/TagPillDragFilter.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: $:/core/config/TagPillDragFilter
text: [all[current]tagging[]] +[!is[draft]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
created: 20240508093242925
modified: 20240728134955433
tags: [[Hidden Settings]]
title: Hidden Setting: Tag Pill Drag Filter
type: text/vnd.tiddlywiki

The ''~$:/core/config/TagPillDragFilter'' defines the filter string, that is used to drag & drop a tap-pill eg: <<tag HelloThere>> from 1 wiki to an other wiki.

* By default the set contains all tiddlers that are ''tagged:'' HelloThere ''without'' the HelloThere tag-tiddler itself
** Core Default: <code><$transclude $tiddler="$:/core" $subtiddler="$:/core/config/TagPillDragFilter" output="text/plain" /></code>
* If you do want to include the tag-tiddler use the following filter:
** Tagged tiddlers only: `[all[current]tagging[]] [all[current]is[tiddler]] +[!is[draft]]`

Your $:/core/config/TagPillDragFilter
<%if [[$:/core/config/TagPillDragFilter]is[tiddler]] %>
''has been overwritten'' and contains:
<%else%>
defaults to:
<%endif%>
<code>{{$:/core/config/TagPillDragFilter}}</code>

<<.note title:"Be Aware" _:"The core default filter does //not// include shadow-tiddlers. It will //include overwritten// shadow tiddlers. See: [[is Operator]] for details about the `is[tiddler]` and other possibilities.">>
Loading