Re: [tw] [TW5] "transient" popups

2014-04-09 Thread Danielo Rodríguez
I was experiencing the same issue and I didn't understand why. Glad to see that 
it is fixed in the next release. 

Thank you. 

-- 
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.


Re: [tw] [TW5] "transient" popups

2014-04-09 Thread FrD
Hi Jeremy,

That's great !
Thanks a lot.

FrD

Le mercredi 9 avril 2014 17:09:36 UTC+2, Jeremy Ruston a écrit :
>
> Hi FrD
>
> > Without the linkcatcher, it works well
>
> The fix *should* be to add the attribute message="tw-navigate" to the 
> linkcatcher widget. However, in 5.0.8 there turned out to be a couple of 
> bugs that stop that working. They are both now fixed for 5.0.9:
>
>
> https://github.com/Jermolene/TiddlyWiki5/commit/e5fe3f76ac1c8191b6809c9f8c1a128373449b15
>
> Best wishes
>
> Jeremy.
>
>
>
>
>
> 

-- 
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.


Re: [tw] [TW5] "transient" popups

2014-04-09 Thread Jeremy Ruston
Hi FrD

> Without the linkcatcher, it works well

The fix *should* be to add the attribute message="tw-navigate" to the
linkcatcher widget. However, in 5.0.8 there turned out to be a couple of
bugs that stop that working. They are both now fixed for 5.0.9:

https://github.com/Jermolene/TiddlyWiki5/commit/e5fe3f76ac1c8191b6809c9f8c1a128373449b15

Best wishes

Jeremy.





On Wed, Apr 9, 2014 at 3:55 PM, FrD  wrote:

>
>
> Le mercredi 9 avril 2014 16:35:53 UTC+2, Jeremy Ruston a écrit :
>
>> Hi FrD
>>
>> > But I was wondering if it was possible to use the set and setTo
>> attributes AND still propagate to the navigator widget the message
>> originating from the link widget.
>>
>> That's already what the linkcatcher widget does:
>>
>> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/
>> modules/widgets/linkcatcher.js#L68
>>
>> It will perform any or all of the three actions, depending on which
>> attributes are provided.
>>
>> Conceivably the issue you're encountering is that the ordering of the
>> actions is wrong?
>>
>>
> The code of my slider is :
>
> <$reveal type="match" text="" default="" state="$:/state/toc">
> <$button set="$:/state/toc" setTo="open" class="btn-invisible
> tw-slider mynav-
> btn">{{$:/_images/arrow-down-double}}
> 
> 
> <$reveal type="nomatch" text="" default="" state="$:/state/toc">
> <$button set="$:/state/toc" setTo="" class="btn-invisible tw-slider
> mynav-
> btn">{{$:/_images/arrow-up-double}}
> 
> 
> <$reveal type="nomatch" text="" default="" state="$:/state/toc"
> animate="yes">
> <$linkcatcher set="$:/state/toc" setTo="">
>
> {{{[list[Chaque moment est l'univers]]}}}
> 
>
> 
>
> Without the linkcatcher, it works well : a click on the button opens the
> slider and a click on a link triggers the navigation.
> With the linkcatcher (as above) the slider closes when a link is clicked
> and no navigation is performed.
> According to your message I should add a message attribute, but with which
> value ? (I couldn't find in  the doc)
>
> Thanks again.
>
> FrD
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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.


Re: [tw] [TW5] "transient" popups

2014-04-09 Thread FrD


Le mercredi 9 avril 2014 16:35:53 UTC+2, Jeremy Ruston a écrit :
>
> Hi FrD
>
> > But I was wondering if it was possible to use the set and setTo 
> attributes AND still propagate to the navigator widget the message 
> originating from the link widget.
>
> That's already what the linkcatcher widget does:
>
>
> https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/widgets/linkcatcher.js#L68
>
> It will perform any or all of the three actions, depending on which 
> attributes are provided.
>
> Conceivably the issue you're encountering is that the ordering of the 
> actions is wrong?
>
>
The code of my slider is :

<$reveal type="match" text="" default="" state="$:/state/toc">
<$button set="$:/state/toc" setTo="open" class="btn-invisible tw-slider 
mynav- 
btn">{{$:/_images/arrow-down-double}}


<$reveal type="nomatch" text="" default="" state="$:/state/toc">
<$button set="$:/state/toc" setTo="" class="btn-invisible tw-slider 
mynav-   
btn">{{$:/_images/arrow-up-double}}


<$reveal type="nomatch" text="" default="" state="$:/state/toc" 
animate="yes">
<$linkcatcher set="$:/state/toc" setTo="">

{{{[list[Chaque moment est l'univers]]}}}




Without the linkcatcher, it works well : a click on the button opens the 
slider and a click on a link triggers the navigation.
With the linkcatcher (as above) the slider closes when a link is clicked 
and no navigation is performed.
According to your message I should add a message attribute, but with which 
value ? (I couldn't find in  the doc)

Thanks again.

FrD

-- 
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.


Re: [tw] [TW5] "transient" popups

2014-04-09 Thread Jeremy Ruston
Hi FrD

> But I was wondering if it was possible to use the set and setTo
attributes AND still propagate to the navigator widget the message
originating from the link widget.

That's already what the linkcatcher widget does:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/widgets/linkcatcher.js#L68

It will perform any or all of the three actions, depending on which
attributes are provided.

Conceivably the issue you're encountering is that the ordering of the
actions is wrong?

Best wishes

Jeremy




On Wed, Apr 9, 2014 at 3:29 PM, FrD  wrote:

>
>
> Le mercredi 9 avril 2014 12:36:16 UTC+2, Jeremy Ruston a écrit :
>
>> The linkcatcher widget captures tw-navigate messages, which is the
>> message generated by the link widget.
>>
>>
>>> Or suppose the link widget has "set" and "setTo" attributes. It could
>>> set a state tiddler to another value and thus activate a "reveal" widget
>>> and so maybe close a tiddler or better (in my case -:) ) a slider ...
>>>
>>
>> That's really what the linkcatcher lets us do: avoid having set/setTo
>> attributes on the link widget.
>>
>>
>
> Hi Jeremy
>
> Thanks for your answer.
> I've tried the linkcatcher widget. Indeed it captures the message from the
> link widget inside.
> But if I use the set and setTo attributes it sets the right tiddler to the
> right value but the navigation to the target tiddler doesn't happen. I
> understand it's the correct behaviour of the linkcatcher widget.
> But I was wondering if it was possible to use the set and setTo attributes
> AND still propagate to the navigator widget the message originating from
> the link widget.
> So a click would both trigger a navigation AND set a tiddler to a value.
>
> Something like :
> <$linkcatcher set="$:/state/mystatetiddler" setTo="MyValue"
> propagate="Yes">
>  ...link(s) ...
> 
>
> I don't know if it's easy to do or even if it's a good idea ...
>
> FrD
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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.


Re: [tw] [TW5] "transient" popups

2014-04-09 Thread FrD
I've just seen the thread by Danielo :
https://groups.google.com/d/msg/tiddlywiki/juZt0WaNbII/2RLhvcqzPScJ
(TW5 Linkcatcher)

This is kind of related  ...

FrD


Le mercredi 9 avril 2014 16:29:24 UTC+2, FrD a écrit :
>
>
>
> Le mercredi 9 avril 2014 12:36:16 UTC+2, Jeremy Ruston a écrit :
>>
>> The linkcatcher widget captures tw-navigate messages, which is the 
>> message generated by the link widget.
>>  
>>
>>> Or suppose the link widget has "set" and "setTo" attributes. It could 
>>> set a state tiddler to another value and thus activate a "reveal" widget 
>>> and so maybe close a tiddler or better (in my case -:) ) a slider ...
>>>
>>
>> That's really what the linkcatcher lets us do: avoid having set/setTo 
>> attributes on the link widget.
>>  
>>
>
> Hi Jeremy
>
> Thanks for your answer.
> I've tried the linkcatcher widget. Indeed it captures the message from the 
> link widget inside.
> But if I use the set and setTo attributes it sets the right tiddler to the 
> right value but the navigation to the target tiddler doesn't happen. I 
> understand it's the correct behaviour of the linkcatcher widget.
> But I was wondering if it was possible to use the set and setTo attributes 
> AND still propagate to the navigator widget the message originating from 
> the link widget.
> So a click would both trigger a navigation AND set a tiddler to a value.
>
> Something like :
> <$linkcatcher set="$:/state/mystatetiddler" setTo="MyValue" 
> propagate="Yes">
>  ...link(s) ...
> 
>
> I don't know if it's easy to do or even if it's a good idea ...
>
> FrD
>

-- 
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.


Re: [tw] [TW5] "transient" popups

2014-04-09 Thread FrD


Le mercredi 9 avril 2014 12:36:16 UTC+2, Jeremy Ruston a écrit :
>
> The linkcatcher widget captures tw-navigate messages, which is the message 
> generated by the link widget.
>  
>
>> Or suppose the link widget has "set" and "setTo" attributes. It could set 
>> a state tiddler to another value and thus activate a "reveal" widget and so 
>> maybe close a tiddler or better (in my case -:) ) a slider ...
>>
>
> That's really what the linkcatcher lets us do: avoid having set/setTo 
> attributes on the link widget.
>  
>

Hi Jeremy

Thanks for your answer.
I've tried the linkcatcher widget. Indeed it captures the message from the 
link widget inside.
But if I use the set and setTo attributes it sets the right tiddler to the 
right value but the navigation to the target tiddler doesn't happen. I 
understand it's the correct behaviour of the linkcatcher widget.
But I was wondering if it was possible to use the set and setTo attributes 
AND still propagate to the navigator widget the message originating from 
the link widget.
So a click would both trigger a navigation AND set a tiddler to a value.

Something like :
<$linkcatcher set="$:/state/mystatetiddler" setTo="MyValue" propagate="Yes">
 ...link(s) ...


I don't know if it's easy to do or even if it's a good idea ...

FrD

-- 
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.


Re: [tw] [TW5] "transient" popups

2014-04-09 Thread Jeremy Ruston
Hi FrD

After having used this solution, I was wondering if the slider could be
> closed by cliking on a link (inside th ToC).
>

That's the same as the original request: the ability to configure the popup
manager to dismiss popups on any click.



> As the link widget creates a handler for the onclick event, one can
> imagine extending the link widget so that it could also send messages to be
> captured by an enclosing widget (linkcatcher ?).
>

The linkcatcher widget captures tw-navigate messages, which is the message
generated by the link widget.


> Or suppose the link widget has "set" and "setTo" attributes. It could set
> a state tiddler to another value and thus activate a "reveal" widget and so
> maybe close a tiddler or better (in my case -:) ) a slider ...
>

That's really what the linkcatcher lets us do: avoid having set/setTo
attributes on the link widget.


> I don't know if it makes sense as I don't understand the internals of TW5,
> just wondering ...
>

No problem, ask away.

Best wishes

Jeremy



>
> Any thoughts ?
>
> Thanks
>
> FrD
>
> Le lundi 7 avril 2014 19:04:10 UTC+2, Jeremy Ruston a écrit :
>
>> Hi FrD
>>
>> There's no support at the moment for changing the popup dismissal
>> behaviour. There's been some discussion about adding a user interface to
>> enable users to explicitly "pin" or "unpin" each popup, determining how
>> readily it is dismissed.
>>
>> Best wishes
>>
>> Jeremy
>>
>>
>>
>>
>>


-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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.


Re: [tw] [TW5] "transient" popups

2014-04-08 Thread FrD
Hi Jeremy,

Thanks for the answer.
For now I'm using a slider so the user can have the ToC appear at the top 
and the bottom of a chapter (i.e. a tiddler) and navigate to another 
chapter (i. e. tiddler). The slider still remains open when link is clicked 
but the visual effect is less "weird" than with a popup.

After having used this solution, I was wondering if the slider could be 
closed by cliking on a link (inside th ToC). As the link widget creates a 
handler for the onclick event, one can imagine extending the link widget so 
that it could also send messages to be captured by an enclosing widget 
(linkcatcher ?).
Or suppose the link widget has "set" and "setTo" attributes. It could set a 
state tiddler to another value and thus activate a "reveal" widget and so 
maybe close a tiddler or better (in my case -:) ) a slider ...

I don't know if it makes sense as I don't understand the internals of TW5, 
just wondering ...

Any thoughts ?

Thanks

FrD

Le lundi 7 avril 2014 19:04:10 UTC+2, Jeremy Ruston a écrit :
>
> Hi FrD
>
> There's no support at the moment for changing the popup dismissal 
> behaviour. There's been some discussion about adding a user interface to 
> enable users to explicitly "pin" or "unpin" each popup, determining how 
> readily it is dismissed. 
>
> Best wishes
>
> Jeremy
>
>
>
>
> 

-- 
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.


Re: [tw] [TW5] "transient" popups

2014-04-07 Thread Jeremy Ruston
Hi FrD

There's no support at the moment for changing the popup dismissal
behaviour. There's been some discussion about adding a user interface to
enable users to explicitly "pin" or "unpin" each popup, determining how
readily it is dismissed.

Best wishes

Jeremy



On Mon, Apr 7, 2014 at 4:25 PM, FrD  wrote:

> Hi,
>
> Some times ago there was a thread that discussed popups.
> Namely the possibility to have "transient" popups, that is popups that
> disappear once clicked (inside ou outside). It's not the current behaviour
> (at least for instance for the tag chooser and so it allows to choose
> multiple tags).
>
> But I could definitly use a transient popup. Actually I want to open a
> popup with a button at the top of each tiddler that contains a chapter (of
> a book or from notes) ; this popup would contain a table of content (TOC)
> with links to each chapter. For now clicking on a link of the TOC make me
> jump to the right tiddler but the popup is still open.
>
> Has anybody written something for this kind of popup or modified something
> ? Or is it planned in the core ?
>
> Thanks
>
> FrD
>
> --
> 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.
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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] [TW5] "transient" popups

2014-04-07 Thread FrD
Hi,

Some times ago there was a thread that discussed popups.
Namely the possibility to have "transient" popups, that is popups that 
disappear once clicked (inside ou outside). It's not the current behaviour 
(at least for instance for the tag chooser and so it allows to choose 
multiple tags).

But I could definitly use a transient popup. Actually I want to open a 
popup with a button at the top of each tiddler that contains a chapter (of 
a book or from notes) ; this popup would contain a table of content (TOC) 
with links to each chapter. For now clicking on a link of the TOC make me 
jump to the right tiddler but the popup is still open.

Has anybody written something for this kind of popup or modified something 
? Or is it planned in the core ?

Thanks

FrD

-- 
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.