Example of a tool tip for abbreviations

97 views
Skip to first unread message

Tim Pizey

unread,
Sep 14, 2024, 9:49:35 AM9/14/24
to tiddl...@googlegroups.com
Hi,

At https://timp.tiddlyhost.com/#Inline%20abbreviation%20example

I use a global macro to find a tiddler by name and render it as a button.

I would welcome code review or comments.

best wishes
Tim

--
Tim Pizey - http://tim.pizey.uk/

Charlie Veniot

unread,
Sep 14, 2024, 10:35:38 AM9/14/24
to TiddlyWiki
G'day Tim,

Because I really much prefer short-hand transclusions over macros, I just looked at that approach, and I fiddled a little bit with your implementation because I prefer type as little as possible and let the Transclusion template do as much of the work as possible.

(Code pasted after the two screenshots)

Screenshot 2024-09-14 11.30.11 AM.png

Screenshot 2024-09-14 11.31.30 AM.png


Ignore the triple-tick delimiters (needed by Talk TiddlyWiki for TW code)

```
<$list filter="[search:title,caseinsensitive{!!title}!match[tAbbr]]">
<$button tooltip={{!!text}}>{{!!title}}</$button>
</$list>

```
and
```
Using an abbreviation works like this long hand: {{{ togaf || tAbbr }}}


```

Tim Pizey

unread,
Sep 27, 2024, 10:00:27 AM9/27/24
to tiddl...@googlegroups.com
Thank you,

I have updated with your implementation.

best
Tim

On Sat, 14 Sept 2024 at 15:35, Charlie Veniot <cj.v...@gmail.com> wrote:
>
> G'day Tim,
>
> Because I really much prefer short-hand transclusions over macros, I just looked at that approach, and I fiddled a little bit with your implementation because I prefer type as little as possible and let the Transclusion template do as much of the work as possible.
>
> (Code pasted after the two screenshots)
>
>
>
>
>
> Ignore the triple-tick delimiters (needed by Talk TiddlyWiki for TW code)
>
> ```
> <$list filter="[search:title,caseinsensitive{!!title}!match[tAbbr]]">
> <$button tooltip={{!!text}}>{{!!title}}</$button>
> </$list>
> ```
> and
> ```
> Using an abbreviation works like this long hand: {{{ togaf || tAbbr }}}
>
>
> ```
>
> On Saturday, September 14, 2024 at 10:49:35 AM UTC-3 Tim Pizey wrote:
>>
>> Hi,
>>
>> At https://timp.tiddlyhost.com/#Inline%20abbreviation%20example
>>
>> I use a global macro to find a tiddler by name and render it as a button.
>>
>> I would welcome code review or comments.
>>
>> best wishes
>> Tim
>>
>> --
>> Tim Pizey - http://tim.pizey.uk/
>
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b6a654c3-887a-4574-9bd1-09a11bff96fdn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages