Re: [tw] Save tiddlers on TiddlyServer & querying tiddlers

2018-03-28 Thread Jonathan Muehlstein
It's working now that I've switched to these files:

https://github.com/Arlen22/TiddlyServer/blob/master/tiddlywiki/datafolder-template.json
https://github.com/Arlen22/TiddlyServer/blob/master/example-settings-simple.json

Thanks for the great tools!

On Wednesday, March 28, 2018 at 4:18:13 AM UTC+3, Arlen Beiler wrote:
>
> TiddlyServer uses TiddlyWiki to load data folders, so both of these are 
> related to TiddlyWiki in general, not just TiddlyServer.
>
> The first question takes a little digging.  When you load a wiki for the 
> first time after the server is started it will go through a special startup 
> process for the wiki. Please start the server, load a wiki, then copy the 
> console output and post it here.
>
> The second question is a TiddlyWiki question that I'm not familiar with, 
> so it may be better to ask it on a separate thread.
>
> Hope that helps.
> Arlen
>
> On Tue, Mar 27, 2018, 20:19 Jonathan Muehlstein  > wrote:
>
>> Hi,
>>
>> I'm trying to setup TiddlyServer as I found the following features very 
>> useful:
>>
>>1. multiple hosts can connect to a wiki (including mobile I assume) 
>>2. scaling by separating tiddlers into files
>>
>> Though I've run into 2 issues (please excuse me if there are clear 
>> answers. I've searched around):
>>
>>
>>
>>1. I can't save tiddlers to their defined folder. When I hit save the 
>>current browser downloads a copy of the modified wiki. I understand that 
>>this is the standard tiddlywiki behavior but I expected TiddlyServer to 
>>save changes where the server is running and not locally on the host 
>>connecting. Am I missing something?
>>2. Is there an explicit way to use logical operators in queries? or 
>>should I consider e.g., [tag[url]tag[article]] as logical AND and 
>>[tag[url]][tag[kb]] as logical OR?
>>
>> Thanks,
>>
>> Jonathan
>>
>> -- 
>> 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 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/msgid/tiddlywiki/6ec8b168-affc-4d67-a0e5-dfba16a26003%40googlegroups.com
>>  
>> 
>> .
>> 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/615abb9f-7100-458d-99e8-21475a7f4c5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Save tiddlers on TiddlyServer & querying tiddlers

2018-03-28 Thread Jonathan Muehlstein
This filter does indeed give an exclusive OR.
I didn't expect the filter syntax to be this powerful in a wiki.

Thank you for clarifying this.

On Wednesday, March 28, 2018 at 5:06:19 PM UTC+3, Mark S. wrote:
>
> I guess so -- the standard "or" (||).
>
> To get the exclusive kind, I believe you can use:
>
> [tag[url]] [tag[kb]] -[tag[url]tag[kb]]
>
> -- Mark
>
> On Tuesday, March 27, 2018 at 11:35:37 PM UTC-7, Jonathan Muehlstein wrote:
>>
>> You mean that the operation resembles an "inclusive OR"?
>>
>> Best,
>> Jonathan
>>
>> On Wednesday, March 28, 2018 at 7:52:59 AM UTC+3, TonyM wrote:
>>>
>>> With a subtle difference
>>>
>>> All tagged with either or both creating a unique list of titles.
>>>
>>> Regards tony
>>>
>>>

-- 
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/c62f4c89-4d1b-4944-8bc9-487d99af76ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW5 - An environment with LaTeX and Markdown?

2018-03-28 Thread syrte
You may have interest in this
https://gist.github.com/syrte/8062e11d8fec6221820c5f998239af61

An implementation with markdown-it and katex.
Install this plugin by dragging the tid file to your TW file and install 
the official KaTeX plugin list, then you can write latex within markdown 
tiddlers.


在 2017年3月28日星期二 UTC+8上午7:34:32,Roving Richard写道:
>
> Sorry for the necrobump, but does anyone know if anyone figured out a way 
> to parse LaTeX in markdown?
>
> On Monday, April 6, 2015 at 8:57:57 AM UTC-4, radu@gmail.com wrote:
>>
>> I started using tiddlywiki about one week ago, on the third attempt. The 
>> thing that made it viable for me was the TexZilla 
>>  plugin. It works great, 
>> providing most notably the "aligned" environment which is missing in KaTeX.
>>
>> This makes TW5 almost perfect as a math notebook. What is missing is 
>> Markdown. Besides making the notes look much better, having them written in 
>> markdown syntax would make sharing one's work on (virtually all) online 
>> forums seamless.
>> Unfortunately, the Markdown plugin 
>> doesn't work 
>> together with the LaTeX plugin (one has to designate the content type as 
>> text/x-markdown and as a consequence the LaTeX rendering is inactivated).
>>
>> Are there any solutions of having markdown and LaTeX rendering functional 
>> at the same time?
>>
>> 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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a87538d5-74ce-4c3a-ba4e-96e5d0ff8275%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Single executable version of multi-user tiddlywiki, release candidate

2018-03-28 Thread TonyM
Jed,

Could the user name be retained in cookies like twc.

I would be happy to assist in developing a user management layer.

I have this idea that variouse page view and edit templates and some buttons 
like the edit button could be given an index number from say 1 to 9 which is 
used with the reveil widget greater than test.the idea is the higher the number 
the more is revield. Each user could have a value set 1 to 9 that determins 
what they see such as all elements equal or above.

It need not be enforced, but allow the wiki to be used in different modes from 
apparently read only through to edit shadow tiddlers.

Regards
Tony

-- 
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/e9639544-b241-4d8c-9b1c-1580491fd8b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Questions for enabling/disabling-button for plugin tobibeer.github.io/tw5-plugins/#preview

2018-03-28 Thread Evolena
Instead of disabling the whole plugin, you could try to modify the 
"exclude" filter configuration ($:/plugins/tobibeer/preview/defaults/exclude 

 
by adding/removing [all[tiddlers]]) or the classes for which there is no 
preview ($:/plugins/tobibeer/preview/defaults/not 

 
by adding/removing tc-story-river or even tc-body for example).

Le mardi 27 mars 2018 22:00:43 UTC+2, Surya a écrit :
>
> Hello all,
>
> I would like to have a button on my wiki with which I can enable/disable 
> the Preview-Tiddler-Links from 
> http://tobibeer.github.io/tw5-plugins/#preview.
> So that, when deactivated, on the whole wiki there is no more preview of 
> links. And, when activated, there is my normal setting of previewing links.
>
> I have a solution with a checkbox:
> <$checkbox 
> tiddler="$:/config/Plugins/Disabled/$:/plugins/tobibeer/preview" 
> field="text" checked="yes" unchecked="no" default="no"> Disable 
> Preview?
>
> That works. But:
>
> *1.)* I have to save and reload the wiki to have the effect working.
> So it is useless for the visitors of my public wiki.
> How can I enable/disable it with only 1 click without having to save & 
> reload the wiki?
>
> *2.)* I would like to have a button with an image in it for that.
> This should be only ONE button which reflects the two states.
> When the plugin is enabled, the button turns green and shows the image.
> When the plugin is disabled, the button shows the image but with a red 
> cross above it (I think, I would make another image for that state).
>
>
> How can I make that?
> Any ideas for that???
>
> Thanks, Surya!
>
>
>

-- 
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/effda5dc-91a1-4106-a390-4dcb0a90459b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Single executable version of multi-user tiddlywiki, release candidate

2018-03-28 Thread Jed Carty
The story list tiddler isn't saved to the server, otherwise it would force 
everyone connected to the wiki to see the same thing. I am trying to come 
up with a way to all to retain story ordering feature but I don't think 
there is a straight forward way to do it. I think I need to implement the 
authentication and login parts for multiple people before I can make saving 
the story ordering work.

-- 
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/77416b60-5c8b-46f6-842b-9b4326e49bc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] Single executable version of multi-user tiddlywiki, release candidate

2018-03-28 Thread Thomas Elmiger
Tony and Xavier,

Thank you for the hints, it is working now!

Next: find out why the "retain story ordering" button in the control button 
respectively [list[$:/StoryList]] as default tiddler does not work.

Good night and best regards,
Thomas

-- 
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/181c747d-6774-45bf-8ef3-d553a1141e02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: will D3.js plugin be upgraded to version 4.x ?

2018-03-28 Thread Silverfox


I have updated http://d3jsv5trial.tiddlyspot.com

I could implement the widget for *Circle packing *(still need to understand 
how to improve with CSS style rather than hardcoding), but I failed, so 
far, to implement *Zoomable circle packing* ( 
https://bl.ocks.org/mbostock/7607535).

I cannot understand why it works when using D3 script in an HTML page, and 
not on the D3 adaptation for TW.

I think that the problem start when we use d3.hierarchy... but I may be 
wrong

when I console.log  this: 

> var root = d3.hierarchy(root) 

.sum(function(d) { return d.size; })

.sort(function(a, b) { return b.value - a.value; })

 
I obtain:



>  








we can see that x, y and r are undefined, but I don't why... and I even 
don't understand how they should be generated

Would that be possible that some variable would need to be initialized just 
when using D3 into TW, and not into regular HTML ?
Any other idea ?

Nicolas

-- 
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/47dbe145-3cd4-4698-b62c-2facad2d1d74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to limit the execution of an action to a certain screensize / device

2018-03-28 Thread Jan Johannpeter
Hi Simon, Hi Jeremy,
Great, and great how TiddlyWiki constantly evolves. I look forward using
this feature this Weekend.
Yours Jan

Jeremy Ruston  schrieb am Mi. 28. März 2018 um
12:53:

> Hi Jan, BurningTreeC,
>
> Just to let you know that 5.1.16 includes the following features that you
> can try out in the prerelease at https://tiddlywiki.com/prerelease
>
> * The core now reports the browser screen size in
> $:/info/browser/screen/width and $:/info/browser/screenheight
> * As BurningTreeC notes, a new feature of the DynaView plugin that reports
> the current viewport size dynamically
> * Support for "startup actions": action widgets that are executed at
> startup — see https://tiddlywiki.com/prerelease/#StartupActions
> * Riz’s updates to the reveal widget have landed, too — see
> https://tiddlywiki.com/prerelease/#RevealWidget
>
> With these features it is possible to build UIs that respond to
> differences in the screen size by hiding and showing features in wikitext,
> instead of the usual approach of CSS media queries. (The main advantage of
> the wikitext approach is performance: features hidden with CSS are still
> rendered and still incur an overhead).
>
> Startup actions also make it easier to reset configuration settings at
> startup.
>
> Best wishes
>
> Jeremy.
>
>
> On 28 Mar 2018, at 09:35, BurningTreeC 
> wrote:
>
> @Jan ,
>
> Yes you can use the viewport-thing for that, it's now bundled in the
> dynaview plugin from the prerelease page,
> I recommend using that. Just enable saving the viewport dimensions in the
> plugin's settings tab,
> then you'll have two tiddlers $:/state/dynaview/viewportdimension/width
> and $:/state/dynaview/viewportdimensions/height whose values update
> dynamically every time the viewport size changes
>
> Then you can make your Buttons like that:
>
> \define compareViewportLow()
> <$list
> filter="[{$:/state/DynaView/ViewportDimensions/Width}regexp[^$(lowValue)$$]]">
> <$button><$actions when viewport low/><$actions more actions/>
> 
> \end
> \define compareViewportHigh()
> <$list
> filter="[{$:/state/DynaView/ViewportDimensions/Width}regexp[^$(highValue)$$]]">
> <$button><$actions when viewport high/>
> 
> \end
> <$list filter="[list[$:/numbers/viewport-low]]" variable="lowValue">
> <>
> 
> <$list filter="[list[$:/numbers/viewport-high]]" variable="highValue">
> <>
> 
>
> I'm using two tiddlers here that store values from 1 to the breakpoint for
> "viewport low" in the list field of $:/numbers/viewport-low and values from
> the breakpoint for "viewport low + 1" to a high value in the list field of
> $:/numbers/viewport-high
>
> You can get a tiddler with all numbers from 1 to  here:
> http://tiddlytouch.tiddlyspot.com/#%24%3A%2Fplugins%2FBTC%2Ftiddly-touch%2Flists%2Fnumbers
>
> Then you can split the list field at the value you choose for your
> breakpoint and make two tiddlers from it
>
>
> That's one idea,
> The other one is using Riz's version of the reveal widget, which can
> compare values with lt (less than) gt (greater than) and gteq and lteq
> (greater/equal, less/equal)
> It could also make it to the next tiddlywiki release, but at the moment
> it's not at the prerelease page as far as I know
>
> You can find it here:
> https://ibnishak.github.io/Tesseract/pluginsandmacros/index.html#Reveal-Extended%3A%20Adding%20%3C%2C%3E%2C%3C%3D%2C%3E%3D%20types%20to%20reveal%20widget
>
> Using this is easier than my version above - you won't need the two
> number-tiddlers!
>
>
> Simon
>
> --
> 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/dac33f9b-b8f8-4e9b-9e32-2ccedc1258a2%40googlegroups.com
> 
> .
> 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/54D0D3FD-A521-4D32-811D-4E828B14CCEB%40gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 

[tw] Re: Save tiddlers on TiddlyServer & querying tiddlers

2018-03-28 Thread 'Mark S.' via TiddlyWiki
I guess so -- the standard "or" (||).

To get the exclusive kind, I believe you can use:

[tag[url]] [tag[kb]] -[tag[url]tag[kb]]

-- Mark

On Tuesday, March 27, 2018 at 11:35:37 PM UTC-7, Jonathan Muehlstein wrote:
>
> You mean that the operation resembles an "inclusive OR"?
>
> Best,
> Jonathan
>
> On Wednesday, March 28, 2018 at 7:52:59 AM UTC+3, TonyM wrote:
>>
>> With a subtle difference
>>
>> All tagged with either or both creating a unique list of titles.
>>
>> Regards tony
>>
>>

-- 
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/b39fbe26-5533-4788-9036-e2416230bcbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: How to limit the execution of an action to a certain screensize / device

2018-03-28 Thread Jeremy Ruston
Hi Jan, BurningTreeC,

Just to let you know that 5.1.16 includes the following features that you can 
try out in the prerelease at https://tiddlywiki.com/prerelease 


* The core now reports the browser screen size in $:/info/browser/screen/width 
and $:/info/browser/screenheight
* As BurningTreeC notes, a new feature of the DynaView plugin that reports the 
current viewport size dynamically
* Support for "startup actions": action widgets that are executed at startup — 
see https://tiddlywiki.com/prerelease/#StartupActions 

* Riz’s updates to the reveal widget have landed, too — see 
https://tiddlywiki.com/prerelease/#RevealWidget 


With these features it is possible to build UIs that respond to differences in 
the screen size by hiding and showing features in wikitext, instead of the 
usual approach of CSS media queries. (The main advantage of the wikitext 
approach is performance: features hidden with CSS are still rendered and still 
incur an overhead).

Startup actions also make it easier to reset configuration settings at startup.

Best wishes

Jeremy.

> On 28 Mar 2018, at 09:35, BurningTreeC  wrote:
> 
> @Jan ,
> 
> Yes you can use the viewport-thing for that, it's now bundled in the dynaview 
> plugin from the prerelease page,
> I recommend using that. Just enable saving the viewport dimensions in the 
> plugin's settings tab,
> then you'll have two tiddlers $:/state/dynaview/viewportdimension/width and 
> $:/state/dynaview/viewportdimensions/height whose values update dynamically 
> every time the viewport size changes
> 
> Then you can make your Buttons like that:
> 
> \define compareViewportLow()
> <$list 
> filter="[{$:/state/DynaView/ViewportDimensions/Width}regexp[^$(lowValue)$$]]">
> <$button><$actions when viewport low/><$actions more actions/>
> 
> \end
> \define compareViewportHigh()
> <$list 
> filter="[{$:/state/DynaView/ViewportDimensions/Width}regexp[^$(highValue)$$]]">
> <$button><$actions when viewport high/>
> 
> \end
> <$list filter="[list[$:/numbers/viewport-low]]" variable="lowValue">
> <>
> 
> <$list filter="[list[$:/numbers/viewport-high]]" variable="highValue">
> <>
> 
> 
> I'm using two tiddlers here that store values from 1 to the breakpoint for 
> "viewport low" in the list field of $:/numbers/viewport-low and values from 
> the breakpoint for "viewport low + 1" to a high value in the list field of 
> $:/numbers/viewport-high
> 
> You can get a tiddler with all numbers from 1 to  here: 
> http://tiddlytouch.tiddlyspot.com/#%24%3A%2Fplugins%2FBTC%2Ftiddly-touch%2Flists%2Fnumbers
> 
> Then you can split the list field at the value you choose for your breakpoint 
> and make two tiddlers from it
> 
> 
> That's one idea,
> The other one is using Riz's version of the reveal widget, which can compare 
> values with lt (less than) gt (greater than) and gteq and lteq 
> (greater/equal, less/equal)
> It could also make it to the next tiddlywiki release, but at the moment it's 
> not at the prerelease page as far as I know 
> 
> You can find it here: 
> https://ibnishak.github.io/Tesseract/pluginsandmacros/index.html#Reveal-Extended%3A%20Adding%20%3C%2C%3E%2C%3C%3D%2C%3E%3D%20types%20to%20reveal%20widget
> 
> Using this is easier than my version above - you won't need the two 
> number-tiddlers!
> 
> 
> Simon
> 
> -- 
> 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/dac33f9b-b8f8-4e9b-9e32-2ccedc1258a2%40googlegroups.com
>  
> .
> 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/54D0D3FD-A521-4D32-811D-4E828B14CCEB%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to limit the execution of an action to a certain screensize / device

2018-03-28 Thread BurningTreeC
@Jan ,

Yes you can use the viewport-thing for that, it's now bundled in the 
dynaview plugin from the prerelease page,
I recommend using that. Just enable saving the viewport dimensions in the 
plugin's settings tab,
then you'll have two tiddlers $:/state/dynaview/viewportdimension/width and 
$:/state/dynaview/viewportdimensions/height whose values update dynamically 
every time the viewport size changes

Then you can make your Buttons like that:

\define compareViewportLow()
<$list 
filter="[{$:/state/DynaView/ViewportDimensions/Width}regexp[^$(lowValue)$$]]">
<$button><$actions when viewport low/><$actions more actions/>

\end
\define compareViewportHigh()
<$list 
filter="[{$:/state/DynaView/ViewportDimensions/Width}regexp[^$(highValue)$$]]">
<$button><$actions when viewport high/>

\end
<$list filter="[list[$:/numbers/viewport-low]]" variable="lowValue">
<>

<$list filter="[list[$:/numbers/viewport-high]]" variable="highValue">
<>


I'm using two tiddlers here that store values from 1 to the breakpoint for 
"viewport low" in the list field of $:/numbers/viewport-low and values from 
the breakpoint for "viewport low + 1" to a high value in the list field of 
$:/numbers/viewport-high

You can get a tiddler with all numbers from 1 to  here: 
http://tiddlytouch.tiddlyspot.com/#%24%3A%2Fplugins%2FBTC%2Ftiddly-touch%2Flists%2Fnumbers

Then you can split the list field at the value you choose for your 
breakpoint and make two tiddlers from it


That's one idea,
The other one is using Riz's version of the reveal widget, which can 
compare values with lt (less than) gt (greater than) and gteq and lteq 
(greater/equal, less/equal)
It could also make it to the next tiddlywiki release, but at the moment 
it's not at the prerelease page as far as I know 

You can find it here: 
https://ibnishak.github.io/Tesseract/pluginsandmacros/index.html#Reveal-Extended%3A%20Adding%20%3C%2C%3E%2C%3C%3D%2C%3E%3D%20types%20to%20reveal%20widget

Using this is easier than my version above - you won't need the two 
number-tiddlers!


Simon

-- 
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/dac33f9b-b8f8-4e9b-9e32-2ccedc1258a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] Single executable version of multi-user tiddlywiki, release candidate

2018-03-28 Thread Xavier Cazin
Hi Thomas,

Since 0.0.0.0 is *not* a real computer address, you own computer will keep
both 127.0.0.1 (always true for operations local to it like accesses with a
browser running on the same machine) and its local network address that is
displayed in the "Hello!" tiddler (probably assigned automatically at
connection time, and starting with 192.168).

Assigning 0.0.0.0 to the server is just a convention that says that other
hosts in the same local network are allowed to access the wikis operated by
the server. They will do so using your machine local address (thus
typically http://192.168.x.x:8080).

Best,
Xavier.

-- Xavier Cazin

On Tue, Mar 27, 2018 at 10:30 PM, Thomas Elmiger 
wrote:

> Hi Jed, it seems the 0.0.0.0 setting is not saved (although the checkmark
> is dark gray, not red).
>
> Am Dienstag, 27. März 2018 21:49:52 UTC+2 schrieb Jed Carty:
>>
>> Your browser opens in 127.0.0.1 even if it is available to the local
>> network, this doesn't mean other computers can't connect. It should show
>> you the ip address to use to connect from other computers.
>>
> --
> 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/9f147160-42fb-401a-a2be-6eb7cb6acd16%40googlegroups.com
> 
> .
>
> 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/CADeSwYMmmpw-RTt%3Dv6G9nYwAcOD0BTMSd0JGSQQzL6AFiSQ6DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Save tiddlers on TiddlyServer & querying tiddlers

2018-03-28 Thread Jonathan Muehlstein
A couple more details in case necessary to understand the issue:

I've followed the quick install instructions 
@ https://github.com/Arlen22/TiddlyServer#quick-install and created the 
empty tiddlywiki.info file using "datafolder-template.json"and placed an 
empty "tiddlers" folder next to it. 

My settings are simply the ones found in "example-settings-simple.json" 
copied into settings.json.

The console output is a log of HTTP responses.

*Update*:
As a sanity check I've used the following for the settings and the tiddlers 
autosave now:
https://github.com/Arlen22/TiddlyServer/blob/master/example-settings-simple.json

I assume that the following settings are what make the difference?
"etagWindow": 5,
"allowLocalhost": {
"settings": true,
"mkdir": true,
"upload": true
}

I currently see console output such as:
syncer-server-filesystem: Dispatching 'save' task: $:/StoryList 
 filesystem: Saved file 
/home/ubuntu/workspace/twdata/test-wiki/tiddlers/$__StoryList.tid

Thanks again,
Jonathan

On Wednesday, March 28, 2018 at 4:18:13 AM UTC+3, Arlen Beiler wrote:
>
> TiddlyServer uses TiddlyWiki to load data folders, so both of these are 
> related to TiddlyWiki in general, not just TiddlyServer.
>
> The first question takes a little digging.  When you load a wiki for the 
> first time after the server is started it will go through a special startup 
> process for the wiki. Please start the server, load a wiki, then copy the 
> console output and post it here.
>
> The second question is a TiddlyWiki question that I'm not familiar with, 
> so it may be better to ask it on a separate thread.
>
> Hope that helps.
> Arlen
>
> On Tue, Mar 27, 2018, 20:19 Jonathan Muehlstein  > wrote:
>
>> Hi,
>>
>> I'm trying to setup TiddlyServer as I found the following features very 
>> useful:
>>
>>1. multiple hosts can connect to a wiki (including mobile I assume) 
>>2. scaling by separating tiddlers into files
>>
>> Though I've run into 2 issues (please excuse me if there are clear 
>> answers. I've searched around):
>>
>>
>>
>>1. I can't save tiddlers to their defined folder. When I hit save the 
>>current browser downloads a copy of the modified wiki. I understand that 
>>this is the standard tiddlywiki behavior but I expected TiddlyServer to 
>>save changes where the server is running and not locally on the host 
>>connecting. Am I missing something?
>>2. Is there an explicit way to use logical operators in queries? or 
>>should I consider e.g., [tag[url]tag[article]] as logical AND and 
>>[tag[url]][tag[kb]] as logical OR?
>>
>> Thanks,
>>
>> Jonathan
>>
>> -- 
>> 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 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/msgid/tiddlywiki/6ec8b168-affc-4d67-a0e5-dfba16a26003%40googlegroups.com
>>  
>> 
>> .
>> 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/8a53f777-056a-46be-b8f5-14be626f353b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Questions for enabling/disabling-button for plugin tobibeer.github.io/tw5-plugins/#preview

2018-03-28 Thread Jed Carty
Plugins that include javascript can't be toggled without reloading the wiki 
so I don't think that a button like you want to use can be done without 
modifying the plugin itself.

-- 
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/54694a76-ff9b-46a4-8bca-ae14ae97b445%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: will D3.js plugin be upgraded to version 4.x ?

2018-03-28 Thread Silverfox
Thank you for you're support ... I learn a lot thanks to you...
I'll investigate and let you know

Le mardi 27 mars 2018 23:13:02 UTC+2, BurningTreeC a écrit :
>
>
> maybe it's this line in the widget
>>
>> var diameter = +svg.attr("width");
>>
>
> ok sorry ;) that's in the demo, too
>
> I'm no javascript genius 
>

-- 
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/6d43d026-2494-44e3-b6b9-ef6463fba526%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] How to limit the execution of an action to a certain screensize / device

2018-03-28 Thread Jan

Hello everybody, Hi Simon in particular...
I am working on a mobile menu/view for TW (which kan be seen on 
smarties.tiddlyspot.com ).
Therefore I would need a button which works differently on Smartphones 
than on desktops.
O smartphones when clicking a link in the Menu, it shall be closed 
because it would be in the way. On the desktop the menu shall remain.
So far I am doing with two buttons and css which switches their 
visibility. But that is an awfull lot of code.

Is there a way to turn of the with something like reveal.

@Simon: Could your viewport thing do something like this?

Yours Jan


--
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/5ABB4474.8070701%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.