Hi Tones thanks for the response. See replies below On Thu, Jul 1, 2021 at 7:21 PM TW Tones <anthony.mus...@gmail.com> wrote:
> 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?. > This isn't the file I am referring to, but it is the same showmodal code: https://giffmex.org/wiki/nt1.a.html#%24%3A%2F.giffmex%2FEric%2FShowModal, a gift from Eric, slightly modified by me. > > 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. > What I mean is, I will have an edit-text window for the tiddler Clipboard, to have open in any tiddler, as an editTemlate tiddler. My hope is to be able to type a phrase in the Clipboard tiddler, and click an editortoolbar button to stamp the following: @@.map1 XX @@<<showModal 'XX'>> <$link to='XX'>{{$:/core/images/link}}</$link> Where XX = the present text of the Clipboard tiddler. Then I would clear Clipboard and add new text, and hit the editor toolbar button again. > > 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> >> <<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 a topic in the > Google Groups "TiddlyWiki" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/tiddlywiki/LPOIaGiXiPY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > tiddlywiki+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/cce8881f-fd64-4a7b-9b05-f523ae960024n%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/cce8881f-fd64-4a7b-9b05-f523ae960024n%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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CANE%3DBF%2B44pmCZpVV6H7BEMsOUaGo9gbJg%2Bj8qLWO35gw2MEcdw%40mail.gmail.com.