Jeremy,
Thanks this method does copy a *version of the rendered tiddler*. However
the result does not behave the same as if I were to copy the result of
viewing the rendered tiddler.
I have tried changing the output but there is a fundamental difference -
the clipboard always contains numerous extra Characters, resulting in
multiple line feeds.
The following is an example of the macros in the tiddler I am trying to
copy, basically it generates a CSV formatted output
<$list filter={{CMI Consultants list!!consultants-list}} variable=person>
<$tiddler tiddler=<<person>> >
<$text text=<<person>>/>,
<<field discipline>>,
Here: <<display-valid-services>>,
<$list filter={{CMI office-list!!office-list}} variable=office>
<$list filter="[<person-in-office-flag>limit[1]]"
emptyMessage="" variable=result><<result>>,</$list>
</$list>
</$tiddler><br>
</$list><!-- people -->
Its output on screen looks like this
Prue Tannner, Occupational Therapist , Here: , ✔ , ✔ , ✔ , ✔ , , , , , ,
Renae Alarm, Occupational Therapist , Here: , ✔ , ✔ , ✔ , , , , , , ,
Manda Bell, Occupational Therapist , Here: , , , , , , , ✔ , , ,
Ant Cuttler, Rehabilitation Counsellor , Here: , ✔ , ✔ , , , , , , , ,
Linda Paxter, Rehabilitation Counsellor , Here: , ✔ , ✔ , ✔ , , , , , , ,
Linda Wooden, Occupational Therapist , Here: , , , , , , , , ✔ , ,
But the clipboard content separates every text element above with multiple
line feeds
It can only seem to me that wikify is not doing as advertised. Because of
this I have sought other methods to resolve this without results.
Regards
Tony
On Wednesday, August 21, 2019 at 2:00:51 AM UTC+10, Jeremy Ruston wrote:
>
> Hi Tony
>
> Here's one way to do it. It's a classic application of the wikify widget:
> we need access to the wikified text of a tiddler, rather than its raw text.
>
> Note how the actions are placed in a separate action string to avoid
> having to do the wikification until it is required (if it was within the
> button widget then the wikify widget would be re-evaluated each time the
> store changes).
>
> Best wishes
>
> Jeremy
>
>
> \define actions()
> <$wikify name="content" text={{HelloThere}}>
> <$action-sendmessage $message="tm-copy-to-clipboard" $param=<<content>>/>
> </$wikify>
> \end
> <$button actions=<<actions>>>
> Copy to clipboard
> </$button>
>
>
> --
> Jeremy Ruston
> [email protected] <javascript:>
> https://jermolene.com
>
> On 19 Aug 2019, at 11:58, TonyM <[email protected] <javascript:>> wrote:
>
>
> Folks,
>
> I believe I should know this, but I have a tiddler name "tiddlername"
> which contains wikitext, list macros and more. Its a beautiful
> representation of a csv file from my tiddler data and fields.
>
> In any tiddler I can place {{tiddlername}} and see the wonderful result.
>
> However I want to be able to copy the *result* as text
>
> <$button message="tm-copy-to-clipboard" param= >
> Copy to clipboard
> </$button>
>
> *How do I provide this with the appropriate parameter ?*
>
> I have another tiddler called "realcutetiddler" which renders a really
> nice HTML output. Rather than save this as a static html tiddler I would
> like to copy the HTML result to the clipboard
>
> *Again How do I provide the above with the appropriate parameter ?*
>
> At the moment, with everything I try I just get in the clipboard the raw
> unprocessed wiki text in my tiddlers.
>
> *Yours, very lost.*
>
> Tony
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/08094092-20d2-43fc-b8d6-422eb07937f2%40googlegroups.com
>
> <https://groups.google.com/d/msgid/tiddlywiki/08094092-20d2-43fc-b8d6-422eb07937f2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/d5e28304-3270-4f25-b057-5c1ea1ff8616%40googlegroups.com.