Talah,

Now every time I want to do this, to use << angle brackets inside <<macro>> 
syntax? I convert it to a macro call. 

However the copy-to-clipboard is a basic and not very sophisticated macro. 
You can't even change or hide the label. 

But the copy to clipboard macro is based on the 
message="tm-copy-to-clipboard" so I built my own macro to copy the content 
of the "fieldname" in the current tiddler

\define edit-fields-copy-to-clipboard(fieldname)
<$set name=field-content value={{!!$fieldname$}}>
<$button class="tc-btn-invisible" message="tm-copy-to-clipboard" param=<<
field-content>> tooltip="Copy fieldname $fieldname$ contents to clipboard">
<$image width="14" source="$:/PSaT/EditFields/Clipboard.png"/>
</$button>
</$set>
\end

And call in a tiddler or in a list that changes the current Tiddler
<<edit-fields-copy-to-clipboard fieldname>>

So you to can build a custom macro that actually works for you.

and as stated before any macro can be called using the macrocall widget eg; 
in this case

<$macrocall $name="edit-fields-copy-to-clipboard" fieldname="myfieldname"/>

in which it is possible to do this

<$macrocall $name="edit-fields-copy-to-clipboard" fieldname=<
<mymacroorvariable>>/>

You could add tiddlername to the parameters of your macro, however I 
currently favour making my macros use the current tiddler and I get the 
calling tiddler to manage what is the current tiddler with the ListWidget 
or the TiddlerWidget.

Regards
Tony



On Friday, July 6, 2018 at 4:40:50 AM UTC+10, talha131 wrote:
>
> I have this text <<list-links "[tag[fish-shell]sort[title]]>>, that I am 
> trying to place inside copy-to-clipboard macro.
>
> I tried following, but it didn’t work.
>
> <<copy-to-clipboard 
> <<list-links "[tag[fish-shell]sort[title]]>>
> >>
>
> Then taking cue from “How to escape double quotes inside 
> copy-to-clipboard macro?” 
> <https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!starred/tiddlywiki/mqHvLm20tpc>,
>  
> I tried following but it too didn’t work.
>
> <<copy-to-clipboard """
> <<list-links "[tag[fish-shell]sort[title]]>>
> """
> >>
>
> Finally I tried, following syntax which worked
>
> <$macrocall $name="copy-to-clipboard" src="""
> <<list-links "[tag[fish-shell]sort[title]]>>
> """/>
>
> My question is, is it possible to use << angle brackets inside 
> <<copy-to-clipboard 
> >> syntax?
> ​
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/738d8b76-6b90-44d7-b74a-0ba8242141f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to