[tw] Re: [TW5] Help with "New task here" functionality

2014-12-12 Thread alanschnarr
Hi everybody,
I can now add tasks inline without needing to vector off to a separate 
tiddler to edit or save. I thought I'd share my code in case it is useful 
to someone else.

\define taskButtonTags()
[[$(currentTiddler)$]] task
\end

<$reveal type="match" state="$:/temp/addtodo" text="hide">
<$button set="$:/temp/addtodo" setTo="show">Add a to-do


<$reveal type="nomatch" text="hide" state="$:/temp/addtodo">

<$edit-text tiddler="$:/temp/newtodo" placeholder="Add a new to-do..." tag=
"input" type="text"/>

<$button set="$:/temp/newtodo!!title" setTo={{$:/temp/newtodo}}>
<$action-setfield $tiddler="$:/temp/newtodo" tags=<>/> 
Add this to-do...

<$button set="$:/temp/addtodo" setTo="hide">I'm done adding to-dos


Thanks again!
Alan

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Help with "New task here" functionality

2014-12-11 Thread alanschnarr
Thanks for the quick reply, Tobias.
I'll check it out.

Alan

On Thursday, December 11, 2014 3:55:17 AM UTC-7, Tobias Beer wrote:
>
> Have a look at...
>
> $:/core/ui/Buttons/new-journal-here 
> 
>
> ...which contains the button-code for creating a new journal entry tagging 
> to a given tiddler.
>
> Best wishes, Tobias.
>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Help with "New task here" functionality

2014-12-11 Thread Tobias Beer
Have a look at...

$:/core/ui/Buttons/new-journal-here 


...which contains the button-code for creating a new journal entry tagging 
to a given tiddler.

Best wishes, Tobias.

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.