[tw5] Re: Action-send-message new tiddler question

2020-01-27 Thread Eric Shulman
On Monday, January 27, 2020 at 8:13:07 AM UTC-8, Hubert wrote:
>
> I'm sure others will suggest a more elegant (and shorter) solution...
>

No need to use $wikify.  Since <> is already defined as a 
variable, you can use $(currentTiddler)$ inside the macro, like this: 

\define journalButton()
<$button> click
   <$action-sendmessage $message="tm-new-tiddler" title=<> 
text="""[[$(currentTiddler)$]]"""/>

\end

<>

enjoy,
-e

-- 
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/448c0691-74fe-42cf-a338-0f3f535ea6f8%40googlegroups.com.


[tw5] Re: Action-send-message new tiddler question

2020-01-27 Thread David Gifford
Hi Hubert!

I used your code and figured out how to integrate it into the new journal 
buttons. Thought I had written earlier to thank you. Thanks a bunch!

On Monday, January 27, 2020 at 10:13:07 AM UTC-6, Hubert wrote:
>
> Hi David,
>
> I'm sure others will suggest a more elegant (and shorter) solution, but 
> this is one way you could do that (using the $wikify widget):
>
> \define button()
> <$button actions=<>>
> click
> 
> \end
>
> \define actions()
> <$action-sendmessage $message="tm-new-tiddler" title=<> 
> text="""[[$(tid)$]]"""/>
> \end
>
> <$wikify name=tid text=<>>
> <>
> 
>
> Regards,
> Hubert
>
> On Monday, 27 January 2020 15:40:50 UTC, David Gifford wrote:
>>
>> I accidentally had quotes around <>. What I should have 
>> posted is below. I want to do this, but have the current tiddler title show 
>> up as a link: [[name of parent tiddler]]
>>
>> <$action-sendmessage $message="tm-new-tiddler" title=<> 
>> text=<> />
>>
>> On Monday, January 27, 2020 at 9:03:44 AM UTC-6, David Gifford wrote:
>>>
>>> Okay I am getting excited about my Roam-y adaptation, and this is one of 
>>> the last pieces of the puzzle.
>>>
>>> I did this for a 'new journal here' clone.
>>>
>>> <$action-sendmessage $message="tm-new-tiddler" title=<> 
>>> text="<>" />
>>>
>>> It creates a new tiddler that puts the parent tiddler's title in the 
>>> text of the child tiddler.
>>>
>>> But I would really like that to be a link rather than just plain text. 
>>> How could I do that?
>>>
>>

-- 
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/1eb3ab6d-6788-499c-afaf-4a56062c0de5%40googlegroups.com.


[tw5] Re: Action-send-message new tiddler question

2020-01-27 Thread Hubert
Hi David,

I'm sure others will suggest a more elegant (and shorter) solution, but 
this is one way you could do that (using the $wikify widget):

\define button()
<$button actions=<>>
click

\end

\define actions()
<$action-sendmessage $message="tm-new-tiddler" title=<> 
text="""[[$(tid)$]]"""/>
\end

<$wikify name=tid text=<>>
<>


Regards,
Hubert

On Monday, 27 January 2020 15:40:50 UTC, David Gifford wrote:
>
> I accidentally had quotes around <>. What I should have 
> posted is below. I want to do this, but have the current tiddler title show 
> up as a link: [[name of parent tiddler]]
>
> <$action-sendmessage $message="tm-new-tiddler" title=<> 
> text=<> />
>
> On Monday, January 27, 2020 at 9:03:44 AM UTC-6, David Gifford wrote:
>>
>> Okay I am getting excited about my Roam-y adaptation, and this is one of 
>> the last pieces of the puzzle.
>>
>> I did this for a 'new journal here' clone.
>>
>> <$action-sendmessage $message="tm-new-tiddler" title=<> 
>> text="<>" />
>>
>> It creates a new tiddler that puts the parent tiddler's title in the text 
>> of the child tiddler.
>>
>> But I would really like that to be a link rather than just plain text. 
>> How could I do that?
>>
>

-- 
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/65d1de55-d8be-4e36-9e2f-b79be868c3c2%40googlegroups.com.


[tw5] Re: Action-send-message new tiddler question

2020-01-27 Thread David Gifford
I accidentally had quotes around <>. What I should have 
posted is below. I want to do this, but have the current tiddler title show 
up as a link: [[name of parent tiddler]]

<$action-sendmessage $message="tm-new-tiddler" title=<> 
text=<> />

On Monday, January 27, 2020 at 9:03:44 AM UTC-6, David Gifford wrote:
>
> Okay I am getting excited about my Roam-y adaptation, and this is one of 
> the last pieces of the puzzle.
>
> I did this for a 'new journal here' clone.
>
> <$action-sendmessage $message="tm-new-tiddler" title=<> 
> text="<>" />
>
> It creates a new tiddler that puts the parent tiddler's title in the text 
> of the child tiddler.
>
> But I would really like that to be a link rather than just plain text. How 
> could I do that?
>

-- 
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/23f10eb8-e850-447e-ad59-7305f8110998%40googlegroups.com.