David,

I think I have a possible answer, but can not yet repeat your code and see 
what is actually does as a start. Can you share the showModal macro and any 
other dependencies please?.

Also when you say "I can write a line in Clipboard", could you share more, 
because I think there may be further automation and simplification possible.

Thanks
Tones

On Friday, 2 July 2021 at 09:39:27 UTC+10 David Gifford wrote:

> Hi everyone
>
> I managed to create a macro where I would add <<mapline "Ice cream is 
> delicious">> and in view mode it would show the equivalent of 
>
> <span class='map1'><$view tiddler="$tiddler$" field="title"/></span> 
> &nbsp;&nbsp;<<showModal "$tiddler$">> <<icon {{$:/core/images/link}} 
> "$tiddler$">>
>
> It was a super fast  workflow and kept my tiddler pretty clean. I was so 
> happy to have figured that out on my own. But I quickly realized that the 
> links do not create backlinks, and te relink plugin doesn't rename them. 
> And searching won't show the tiddler where the macro is.
>
> Now I am wondering: Is there a better way? I am thinking an editortoolbar 
> button that 
>
> 1) grabs the text of another tiddler where I paste that line of text 
> (let's say the tiddler is titled "Clipboard" and I have written in the text 
> field, Ice cream is delicious
> 2) stamps the following:
> @@.map1 Ice cream is delicious. @@<<showModal 'Ice cream is delicious'>> 
> <$link to=' Ice cream is delicious'>{{$:/core/images/link}}</$link>
>
> That way, I can write a line in Clipboard, then stamp the line as 
> indicated above in the tiddler I am working on, and have it show up as 
> simple text, modal and link. And backlinks will show in a view template 
> tiddler. I recognize that renaming would only update the link, not the 
> modal or simple text. But for what I am doing, I don't foresee needing to 
> rename links.
>
> Any ideas?
>
>

-- 
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/cce8881f-fd64-4a7b-9b05-f523ae960024n%40googlegroups.com.

Reply via email to