<$list filter="[all[current]tag[Tweet]type[text/plain]]">
<$set name=test filter="[list[!!text]prefix{$:/_state/tesseract/hashtag2tag}] +[removeprefix{$:/_state/tesseract/hashtag2tag}]">
<$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-add-tag" $param={{$:/temp/NewTagName}}/>
<$action-listops $tags=<<test>>/>
<$action-deletetiddler $tiddler="$:/temp/NewTagName"/>
<$action-sendmessage $message="tm-add-field" $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/>
<$action-deletetiddler $tiddler="$:/temp/newfieldname"/>
<$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/>
<$action-sendmessage $message="tm-save-tiddler"/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/done-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Save/Caption}}/></span>
</$list>
</$button>
</$fieldmangler>
</$set>
</$list>
<$list filter="[all[current]!tag[Tweet]]">
<$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-add-tag" $param={{$:/temp/NewTagName}}/>
<$action-deletetiddler $tiddler="$:/temp/NewTagName"/>
<$action-sendmessage $message="tm-add-field" $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/>
<$action-deletetiddler $tiddler="$:/temp/newfieldname"/>
<$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/>
<$action-sendmessage $message="tm-save-tiddler"/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/done-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Save/Caption}}/></span>
</$list>
</$button>
</$fieldmangler>
</$list>
There is further work needed on this. Particualarly how the in-text #hashtagged words get processed. At the moment the gizmo doesn't know that "#Buddha's" "#Buddha" & "#buddha" should ALL be converted to TW Tags as "#buddha" (Twitter is not case sensitive; punctuation shouldn't be in the TW tag). But before bothering you and others about this I'll try and work out how to do it myself.
Just thinking about what you are doing and was wondering if each tweet is a paragraph and #tags are at the end of a paragraph then a #tag will always have a leading space, not be at the beginning and be unlikely to be confused with the other uses of #.
It would seem to me that when you close a tiddler a macro on the view template could test for the tweet tag, extract the hash tags and populate a field from which you can click and create non existing #tag tiddlers as desired and present a tweet button to export in a Twitter standard if desired.
I am not a tweeter myself but I did create a custom export function to export operating system commands to be executed by a loop batch outside the browser.
Just some thoughts. I may be way off but it seems to me processing/parsing a tiddlers content on closing a tiddler could prove useful like detecting and [[ boxing ]] any text that matches an existing tag and more would be cute.
Tony
... it seems to me processing/parsing a tiddlers content on closing a tiddler could prove useful like detecting and [[ boxing ]] any text that matches an existing tag and more would be cute.
<$set name=test filter="
[list[!!text]prefix[#]]
[list[!!text]prefix[#]removesuffix['s]] +[!suffix['s]]
[list[!!text]prefix[#]removesuffix[.]] +[!suffix[.]]
[list[!!text]prefix[#]removesuffix[...]] +[!suffix[...]]
[list[!!text]prefix[#]removesuffix[,]] +[!suffix[,]]
[list[!!text]prefix[#]removesuffix[;]] +[!suffix[;]]
[list[!!text]prefix[#]removesuffix[:]] +[!suffix[:]]
[list[!!text]prefix[#]removesuffix[!]] +[!suffix[!]]
[list[!!text]prefix[#]removesuffix[?]] +[!suffix[?]]
[list[!!text]prefix[#]removesuffix[--]] +[!suffix[--]]
[list[!!text]prefix[...#]removeprefix[...]] +[!prefix[...]]
[list[!!text]prefix[--#]removeprefix[--]] +[!prefix[--]]
">
This is about #buddha1 #buddha1 #buddha1 who went to #Buddha2's
concerning #buddha3. who spoke to #buddha4, about the state of
#buddha5; #buddha6: and questioned #buddha7! and #buddha8? whether
#buddha9-- had a clear conscience about #BUDDHA10... and
--#Buddha11 as well as ...#Buddha12 #BuddhaDANGER "
You can try this. Import. Save. Reload. Now you can can add tolower[] to each of your filters.
Good luck,
Mark