Wow, this is great! Thank you, Diego!

David Gifford
Mexico team leader, Mexico City

*Resonate Global Mission*
*Engaging People. Embracing Christ.*
A Ministry of the Christian Reformed Church
resonateglobalmission.org


On Wed, Feb 7, 2018 at 8:04 PM, Diego Mesa <diego...@gmail.com> wrote:

> Hey all,
>
> Just for fun, I went ahead and modified Mario's plugin to go directly to
> edit mode. You have to edit:
>
> $:/core/macros/tabs
>
> And copy/paste the following content into it:
>
> \define tabs(tabsList,default,state:"$:/state/tab",class,template)
> <div class="tc-tab-set $class$">
>     <div class="tc-tab-buttons $class$">
>         <$list filter="$tabsList$" variable="currentTab">
>             <$set name="save-currentTiddler" value=<<currentTiddler>>>
>                 <$tiddler tiddler=<<currentTab>>>
>                     <$button set=<<qualify "$state$">> setTo=<<currentTab
> >> default="$default$" selectedClass="tc-tab-selected" tooltip={{!!tooltip
> }}>
>                         <$transclude tiddler={{!!icon}}/>
>                         <$tiddler tiddler=<<save-currentTiddler>>>
>                             <$set name="tv-wikilinks" value="no">
>                                 <$transclude tiddler=<<currentTab>> field=
> "caption">
>                                     <$macrocall $name="currentTab" $type=
> "text/plain" $output="text/plain"/>
>                                 </$transclude>
>                             </$set>
>                         </$tiddler>
>                     </$button>
>                     <span class="wltc-link-to-tab tc-tiddlylink">
>                         <$button>
>                             {{$:/core/images/link}}
>                             <$action-sendmessage $message=
> "tm-edit-tiddler" $param=<<currentTiddler>> />
>                         </$button>
>                     </span>
>                 </$tiddler>
>             </$set>
>         </$list>
>     </div>
>     <div class="tc-tab-divider $class$"/>
>     <div class="tc-tab-content $class$">
>         <$list filter="$tabsList$" variable="currentTab">
>
>             <$reveal type="match" state=<<qualify "$state$">> text=<<
> currentTab>> default="$default$">
>
>                 <$transclude tiddler="$template$" mode="block">
>
>                     <$transclude tiddler=<<currentTab>> mode="block"/>
>
>                 </$transclude>
>
>             </$reveal>
>
>         </$list>
>         </div>
> </div>
> \end
>
> All it does it replace Mario's original <link> with a <button>. Currently,
> this comes at the cost of:
>
>
>    - An ugly button - this can be styled!
>    - When pressed for system/shadow tiddlers the warning pops up - this
>    is desired!
>
> Best,
>
> Diego
>
>
> On Wednesday, February 7, 2018 at 6:57:23 PM UTC-6, David Gifford wrote:
>>
>> Thanks Mario!
>>
>> David Gifford
>> Mexico team leader, Mexico City
>>
>> *Resonate Global Mission*
>> *Engaging People. Embracing Christ.*
>> A Ministry of the Christian Reformed Church
>> resonateglobalmission.org
>>
>>
>> On Wed, Feb 7, 2018 at 6:55 PM, PMario <pmar...@gmail.com> wrote:
>>
>>> On Wednesday, February 7, 2018 at 3:29:09 PM UTC+1, David Gifford wrote:
>>>>
>>>> But it bugs me that I have to do three steps to edit the tiddlers
>>>> referenced by the tabs: 1) Click on the tab 2) Click on the link image on
>>>> the tab to open the tiddler. 3) click to edit the tiddler. Since what the
>>>> user wants to do is edit the tiddler (since she can already view the
>>>> tiddler in the tab), it makes sense that clicking on the link image would
>>>> open the tiddler in edit mode. That would reduce from three steps to two.
>>>>
>>>
>>> There is an option, that allows you to show all links for all tabs.
>>> So this will shorten your workflow by 1 click.
>>>
>>> https://wikilabs.github.io/editions/link-to-tabs/#%24%3A%2Fp
>>> lugins%2Fwikilabs%2Flink-to-tabs
>>>
>>>
>>>> Pleasepleaseplease Mario: modify the plugin, or create a modified
>>>> version of the plugin with this feature, as this would enhance this plugin!
>>>>
>>>
>>> That's interesting.
>>> We'll see. ... No promises, ... no ETA ;)
>>>
>>> But, I did create an issue at github: https://github.com/wikilabs/pl
>>> ugins/issues/10
>>>
>>> -m
>>>
>>> --
>>> 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/to
>>> pic/tiddlywiki/D_1lp8cMRuk/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> tiddlywiki+...@googlegroups.com.
>>> To post to this group, send email to tiddl...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/tiddlywiki.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/tiddlywiki/53e640df-7c13-4139-b5ca-c4a52166d0e3%40googlegroups.com
>>> <https://groups.google.com/d/msgid/tiddlywiki/53e640df-7c13-4139-b5ca-c4a52166d0e3%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> 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/D_1lp8cMRuk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/tiddlywiki/13ac1b0b-f48c-4c9a-9cac-e40bddc8610b%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/13ac1b0b-f48c-4c9a-9cac-e40bddc8610b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CANE%3DBFKfuURRcHTcM6Hn8%3D0TO-st970P9npsOfc7XWf29MgSuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to