!! @TW_Tones
Thank you, sir.
I have a button that you click to copy the contents raw, or previews that can be set on any tiddlers, and you can change the type to see as plain text.
I can imagine that comes in handy, /nod
. The issue is that I’m in need a single button to do it all.
I think there are a lot of ways to do this.
Agreed. I’ll provide the way I ended up handling it, but I’m not convinced it is the best option for most people, especially since I use a much older version of TW.
!! @pmario
Show all tiddlers in the story river in text/plain mode
You’re correct: this is the fundamental function.
I think 1. and 2. can be done creating a ViewTemplate that is linked into the ViewTemplate-cascade that can show text/plain using one or more $:/state/ tiddlers.
IIUC (and I easily may not), I’ve not upgraded to the point where I have cascades, I believe. That may come later. That seems like a more appropriate approach.
The 3rd one is a completely different thing. I think there should be a possibility to copy the tiddler content in .tid file format into the clipboard. So it does not only copy the “structure” of the text-field, but also shows the LLM all other fields, that may be part of the tiddler. eg: tags.
I barely use standard fields at all, and I’m okay with some imperfection in how the tags are captured. You’re correct that a more perfect answer in general would allow one to clearly distinguish (and specifically eliminate some of) the fields for LLMs in a way that looks more like the .tid
files. My approach here is ugly by comparison. As odd as it sounds, if I were to munge or reformat the data further at this point, I’d use system tooling.
I just hit the toggle, Ctl+A
then Ctl+C
, untoggle, and paste it straight into the LLM input stream. It’s good enough for my case.
just brainstorming
I’m honored and [[grateful]]. Thank you, sir.
!! @All
My favorite hacker came to my rescue. Thank you, [[j3d1h]]. In case this may be useful to anyone else, and to save you from searching my ℍ𝕪𝕡𝕖𝕣𝔱𝔢𝔵𝔱 in this case, I’ll show you what we’ve got. We’ve modified [[$:/core/ui/TopBar/menu]] to add a button. We decided to leave system tiddlers in the storyriver untouched. I’m not sure if there are any gotchas (we’ve not found any so far).
[[Plaintext Body Rendering Toggle]]:
<$reveal type="match" state="$:/state/ugly" text="">
<$button class=<<tv-config-toolbar-class>> set="$:/state/ugly" setTo="false">△</$button></$reveal>
<$reveal type="match" state="$:/state/ugly" text="true">
<$button class=<<tv-config-toolbar-class>> set="$:/state/ugly" setTo="false">
<$action-deletetiddler $tiddler="$:/core/ui/ViewTemplate/body"/>
◭</$button></$reveal>
<$reveal type="match" state="$:/state/ugly" text="false">
<$button class=<<tv-config-toolbar-class>> set="$:/state/ugly" setTo="true">
<$action-setfield $tiddler="$:/core/ui/ViewTemplate/body" text='<$reveal tag="div" class="tc-tiddler-body" type="nomatch" state=<<folded-state>> text="hide" retain="yes" animate="yes">
<$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]!is[system]]">
<div style="white-space: pre-wrap;"><$text text={{{ [all[current]get[text]] }}}>
<$transclude tiddler="$:/language/MissingTiddler/Hint"/>
</$text></div>
</$list>
<$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]is[system]]">
<$transclude>
<$transclude tiddler="$:/language/MissingTiddler/Hint"/>
<$list filter="[title{!!title}listed[aliases]first[]]" variable="">
You may have meant one of the following pages
<$list filter="[title{!!title}listed[aliases]]">
<li><$link>{{!!title}}</$link></li>
</$list>
</$list>
</$transclude>
</$list>
</$reveal>' />
◮</$button></$reveal>