Re: [tw] [TW5]How to add (remove) tags directly from $:/boot/bootprefix.js?

2016-12-18 Thread sini-Kit
Thank you Jeremy and Mario. And how can I create signal tiddler with yes or 
no text value?

return new $tw.Tiddler("$:/_FlagSpecialCss",{"text": "yes"}); ???  the is 
no example how to use this hook.
 

воскресенье, 18 декабря 2016 г., 23:32:55 UTC+3 пользователь Jeremy Ruston 
написал:

> Hi Sini-kit
>
> Perhaps a simpler way would be to have your bootprefix code update a 
> tiddler $:/_FlagSpecialCss to have the value “yes” when the time is between 
> 1 and 5, and “no” otherwise. Then in your stylesheet tiddler, use a reveal 
> widget something like the example below.
>
> Best wishes
>
> Jeremy
>
> \define if-special-time(then,else)
> <$reveal state="$:/_FlagSpecialCss" type="match" text="yes" default="no">
> $then$
> 
> <$reveal state="$:/_FlagSpecialCss" type="match" text="no" default="no">
> $else$
> 
> \end
>
> \rules only filteredtranscludeinline transcludeinline macrodef 
> macrocallinline macrocallblock
>
> <
> .rule-for-special-times {
> color: red;
> }
>
> """
> else: """
>
> .rule-for-not-special-times {
> color: green;
> }
>
> """>>
>
>
> On 18 Dec 2016, at 20:22, Siniy-Kit > 
> wrote:
>
> Hi! I am writing a little script to $:/boot/bootprefix.js. This script 
> connects to other site time API, get time from it and if hours in this time 
> between 1 and 5 it must change css styles of tw5
> so I want this script to add tag $:/tags/Stylesheet to mycssstyle 
> tiddler. I write the first part with time, but don't know TW5 function to 
> add tag to tiddler
>
>  found 
>
> FieldManglerWidget.prototype.handleRemoveTagEvent = function(event) 
>
> FieldManglerWidget.prototype.handleAddTagEvent = function(event)
>
>
> but I don't understand how to use this functions.
>
> -- 
> 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/77dfdaa8-224f-444d-9613-94cc7bdceb19%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/fa234d32-dbb0-4ae0-9afa-156bfe8153b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Filtered search for tags with open all option?

2016-12-18 Thread Thomas Elmiger
Hi Dave

Maybe my answer comes a bit late … an alternative to your UI would be to 
show tag pills instead of tag names and put an open-all-link on them. This 
way you do not have to type (or copy-paste) the tag names and you can see 
all tagged tiddler’s titles before opening them all.

I copied and adapted a solution that was posted in another thread here: 
http://tid.li/tw5/hacks.html#OpenAllTagged 

All the best!
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/e5381445-22dc-4ba2-8316-281b89ca92a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Federation plugin and TWederation progress

2016-12-18 Thread Dmitry Sokolov
Hi Jed,

I am in but new to the development. :)
My goal is to facilitate the development of versioning of individual 
multi-user tiddlers. 
Would you help me and my student getting started? The student selected TW 
as his summer project. Thank you Sid!! :)

Thank you beforehand,
Dmitry

On Monday, 19 September 2016 21:48:14 UTC+12, Jed Carty wrote:
>
> My little robot has gone off into the world by itself, so I have time to 
> spend on tiddlywiki development again. Currently I have done nothing of 
> value for TWederation in the past month. So that update is easy.
>
> I am going to put this here so hopefully people will actually read it: 
> This is beta software, if you try to use it without reading the small 
> amount of documentation than it probably won't work. If you try to make 
> something using it and don't look at and understand the code first it 
> probably won't work. If you modify nothing and try to make it do something 
> other than the simple things I mention than it probably won't work. This is 
> the version where I removed almost all the sarcasm.
>
> I split the basic mechanism I use for inter-wiki communication into its 
> own plugin here , if you 
> want to use the mechanism that is what you need to look at and use.
>
> There are two plugins there, Federation-core which is just the back-end 
> part, if you put that in a wiki than other wikis can pull content from it. 
> It doesn't have anything else.
> Federation-tools are some very basic tools to make fetching content from 
> another wiki that has the Federation-core plugin easier. There isn't really 
> anything in the way of documentation so if you want to make something you 
> will have to look at the code.
>
> TWederation is built on top of what is in the Federation-core plugin, I am 
> still working on refactoring everything in the twederation plugins to make 
> future development easier. I hope to have the new versions up later today.
>
>
> A very important note:
>
> This is not the only way to make federated tiddlywikis! This is the way 
> that I have worked out with a lot of help from other people (most notably 
> Jeremy and Mat) that doesn't require anything other than a simple file 
> server for the wikis on the network. I originally made this so that I could 
> connect multiple wikis on my computer together and it expanded into 
> something online. There are some important limits on what it can do and I 
> don't think that this will ever be able to support large networks. If I 
> manage to create a working community of 100 connected wikis I will be a bit 
> surprised. Most of the problems when it comes to scale are due to 
> performance issues. I think that for larger groups we can overcome some of 
> these problems and retain a distributed structure by allowing multiple 
> technologies. Once I have the basic TWederation system working well I am 
> hoping to incorporate the work that Danielo has done with PouchDb (see 
> NoteSelf ) to allow for larger distributed 
> networks.
>

-- 
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/d403fc01-fcb6-4dbe-b620-2f9fe63fdd06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] NW doesn't open

2016-12-18 Thread Ben John
Hi 
I have  problem opening tiddlydesktop-win64-v0.0.8  that I hope you have 
some advice on. When I click on NW in my task bar Tiddly Desktop doesn't 
open. Instead the work around I found using Task Manager is to right click 
on NW and then maximise when in Apps under Task Manager. This works but as 
soon as I minimise or close down  I usually though not always have to go 
through the same process if I want to get back into Tiddly Desktop. 
Operating system = Windows 10 64bit. Any advice would be much appreciated. 

Ben

-- 
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/2f08d3b1-7b00-4bcd-aeb8-54cb2a51bb55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Who's minding the store(.php) ?

2016-12-18 Thread 'Mark S.' via TiddlyWiki
Any response back? It's one of the primary ways to run TW on the net. It 
would be nice if it had a secure home somewhere.

Thanks,
Mark

On Thursday, June 9, 2016 at 2:47:40 PM UTC-7, Jeremy Ruston wrote:
>
> I’ve been in touch with BidiX more recently than that. I’ve dropped him a 
> line via email drawing his attention to this thread and asking for 
> clarification about the license.
>
> Best wishes
>
> Jeremy
>
> On 9 Jun 2016, at 22:39, 'Mark S.' via TiddlyWiki <
> tiddl...@googlegroups.com > wrote:
>
> The last post by Bidix (or at least containing text bidix) I can find is 
> from November 2008.
>
> The bidix.info site is held & maintained by an all-Japanese 
> individual/entity and seems to be selling glucosamine when I run a 
> translator.
>
> Mark
>
> On Thursday, June 9, 2016 at 8:51:40 AM UTC-7, Jeremy Ruston wrote:
>>
>> It would be good to track down a copy and then fork it to a repo in 
>> https://github.com/TiddlyWiki. I’m not a PHP user; is there anyone out 
>> there who can volunteer to help with this?
>>
>> Best wishes
>>
>> Jeremy
>>
>> On 8 Jun 2016, at 18:30, 'Mark S.' via TiddlyWiki <
>> tiddl...@googlegroups.com> wrote:
>>
>> Where do I find store.php?
>>
>> Tried to go to the site that is recommended on TiddlyWiki.com 
>> , but there's nothing there. Under downloads 
>> there's zip files that turn out to contain html files, but no store.php. 
>> Other links ended with 404 messages.
>>
>> Thanks,
>> Mark
>>
>>
>> -- 
>> 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/bc3a03f0-6295-4542-b4c2-8f730dee30d8%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+...@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/c9025a35-931b-4a82-b37a-fc7008f2839d%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/eae4d74f-251e-46be-9832-fe96c8341cdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Special tweak for $:/core/ui/AdvancedSearch/Filter

2016-12-18 Thread David Gifford
Hi Mark and Mario and anyone lurking about...

Here is the updated version with this fix. Quite versatile search tools.

Refresh your  browser if you looked at these links before.

http://giffmex.org/experiments/sabbath.html creates the static html at 
http://giffmex.org/experiments/sabbath.static.html

Thanks again for your help

Dave

On Sunday, December 18, 2016 at 7:06:48 PM UTC-6, David Gifford wrote:
>
> Thanks Mark! Works great! And thanks again to Mario. Blessings to you both.
>
> On Sun, Dec 18, 2016 at 6:46 PM, 'Mark S.' via TiddlyWiki <
> tiddlywiki@googlegroups.com> wrote:
>
>>
>> Be sure to back up. Then drag and drop, and import, the following into 
>> your TW. This adds a search-by-tag field to the advanced search bar. See if 
>> it's close to what you want.
>>
>> Mark
>>
>> On Sunday, December 18, 2016 at 1:35:16 PM UTC-8, David Gifford wrote:
>>>
>>> Hi Mario
>>>
>>> Thanks Mario, but that wasn't what I meant. I meant just seeing the text 
>>> input box and the results below. Would look like the advance filter tab, 
>>> but instead of having to input the whole search query with brackets etc, 
>>> you would only have to input the actual tag to get the list of tiddlers 
>>> with that tag. Sorry I wasn't clear.
>>>
>>> Davw
>>>
>>> On Sunday, December 18, 2016 at 1:52:41 PM UTC-6, PMario wrote:

 Hi David,

 I don't think, that's very useful. IMO there needs to be a more UI 
 stuff. Copy the following code into a tiddler. IMO it's not enough. 

 \define getFilter()
 [tag[$(tag)$]!is[system]sort[title]]
 \end

 tag: <$edit-text tiddler="$:/temp/special-search" field="text" 
 tag=input/>

 <$set name=tag value={{$:/temp/special-search}}>

 filter: <>

 <$list filter=<> ><$link to=<> 
 ><>
 

 have fun!
 mario

>>> -- 
>> 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/4pz7_6df2oo/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/c3b9b529-7f40-41fd-b493-bb84dd1183b5%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> David Gifford
> Christian Reformed World Missions, Mexico City
>
>

-- 
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/be33ecaa-3a3f-49a9-8a10-19536df2ee2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Special tweak for $:/core/ui/AdvancedSearch/Filter

2016-12-18 Thread David Gifford
Thanks Mark! Works great! And thanks again to Mario. Blessings to you both.

On Sun, Dec 18, 2016 at 6:46 PM, 'Mark S.' via TiddlyWiki <
tiddlywiki@googlegroups.com> wrote:

>
> Be sure to back up. Then drag and drop, and import, the following into
> your TW. This adds a search-by-tag field to the advanced search bar. See if
> it's close to what you want.
>
> Mark
>
> On Sunday, December 18, 2016 at 1:35:16 PM UTC-8, David Gifford wrote:
>>
>> Hi Mario
>>
>> Thanks Mario, but that wasn't what I meant. I meant just seeing the text
>> input box and the results below. Would look like the advance filter tab,
>> but instead of having to input the whole search query with brackets etc,
>> you would only have to input the actual tag to get the list of tiddlers
>> with that tag. Sorry I wasn't clear.
>>
>> Davw
>>
>> On Sunday, December 18, 2016 at 1:52:41 PM UTC-6, PMario wrote:
>>>
>>> Hi David,
>>>
>>> I don't think, that's very useful. IMO there needs to be a more UI
>>> stuff. Copy the following code into a tiddler. IMO it's not enough.
>>>
>>> \define getFilter()
>>> [tag[$(tag)$]!is[system]sort[title]]
>>> \end
>>>
>>> tag: <$edit-text tiddler="$:/temp/special-search" field="text"
>>> tag=input/>
>>>
>>> <$set name=tag value={{$:/temp/special-search}}>
>>>
>>> filter: <>
>>>
>>> <$list filter=<> ><$link to=<>
>>> ><>
>>> 
>>>
>>> have fun!
>>> mario
>>>
>> --
> 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/4pz7_6df2oo/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/c3b9b529-7f40-41fd-b493-bb84dd1183b5%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Gifford
Christian Reformed World Missions, Mexico City

-- 
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%3DBF%2BbGp_us2S18gRe75ez8ZM%3DDGoBMxfDJSRR%3DCjc%2BoPReQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Special tweak for $:/core/ui/AdvancedSearch/Filter

2016-12-18 Thread 'Mark S.' via TiddlyWiki

Be sure to back up. Then drag and drop, and import, the following into your 
TW. This adds a search-by-tag field to the advanced search bar. See if it's 
close to what you want.

Mark

On Sunday, December 18, 2016 at 1:35:16 PM UTC-8, David Gifford wrote:
>
> Hi Mario
>
> Thanks Mario, but that wasn't what I meant. I meant just seeing the text 
> input box and the results below. Would look like the advance filter tab, 
> but instead of having to input the whole search query with brackets etc, 
> you would only have to input the actual tag to get the list of tiddlers 
> with that tag. Sorry I wasn't clear.
>
> Davw
>
> On Sunday, December 18, 2016 at 1:52:41 PM UTC-6, PMario wrote:
>>
>> Hi David,
>>
>> I don't think, that's very useful. IMO there needs to be a more UI stuff. 
>> Copy the following code into a tiddler. IMO it's not enough. 
>>
>> \define getFilter()
>> [tag[$(tag)$]!is[system]sort[title]]
>> \end
>>
>> tag: <$edit-text tiddler="$:/temp/special-search" field="text" tag=input/>
>>
>> <$set name=tag value={{$:/temp/special-search}}>
>>
>> filter: <>
>>
>> <$list filter=<> ><$link to=<> 
>> ><>
>> 
>>
>> have fun!
>> mario
>>
>

-- 
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/c3b9b529-7f40-41fd-b493-bb84dd1183b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


search_by_tag.json
Description: application/json


[tw] Re: Special tweak for $:/core/ui/AdvancedSearch/Filter

2016-12-18 Thread David Gifford
Hi Mario

Thanks Mario, but that wasn't what I meant. I meant just seeing the text 
input box and the results below. Would look like the advance filter tab, 
but instead of having to input the whole search query with brackets etc, 
you would only have to input the actual tag to get the list of tiddlers 
with that tag. Sorry I wasn't clear.

Davw

On Sunday, December 18, 2016 at 1:52:41 PM UTC-6, PMario wrote:
>
> Hi David,
>
> I don't think, that's very useful. IMO there needs to be a more UI stuff. 
> Copy the following code into a tiddler. IMO it's not enough. 
>
> \define getFilter()
> [tag[$(tag)$]!is[system]sort[title]]
> \end
>
> tag: <$edit-text tiddler="$:/temp/special-search" field="text" tag=input/>
>
> <$set name=tag value={{$:/temp/special-search}}>
>
> filter: <>
>
> <$list filter=<> ><$link to=<> 
> ><>
> 
>
> have fun!
> mario
>

-- 
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/5f4ee5e5-8e41-453f-9dbf-3d5454ff17dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5]How to add (remove) tags directly from $:/boot/bootprefix.js?

2016-12-18 Thread PMario
Hi,

The FieldManglerWidget needs a visual representation to work. So you can't 
use it.

imo $:/boot/bootprefix.js is too early in the boot process. tiddlers don't 
exist in the prefix. ...

The $tw.wiki object is created at boot.js 
https://github.com/Jermolene/TiddlyWiki5/blob/master/boot/boot.js#L1958

Imo you could use the TW hook mechanism: see: 
http://tiddlywiki.com/dev/#HookMechanism:HookMechanism%20%5B%5BHook%3A%20th-saving-tiddler%5D%5D%20%5B%5BContributing%20to%20the%20TiddlyWiki%20Core%5D%5D

So you could hook into: th-opening-default-tiddlers-list. If it's too late 
in the TW startup you should request a new one as described at: 
http://tiddlywiki.com/dev/#Contributing%20to%20the%20TiddlyWiki%20Core 

have fun!
mario



-- 
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/765af81c-d678-4ad4-b807-f2f920a287b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5]How to add (remove) tags directly from $:/boot/bootprefix.js?

2016-12-18 Thread Jeremy Ruston
Hi Sini-kit

Perhaps a simpler way would be to have your bootprefix code update a tiddler 
$:/_FlagSpecialCss to have the value “yes” when the time is between 1 and 5, 
and “no” otherwise. Then in your stylesheet tiddler, use a reveal widget 
something like the example below.

Best wishes

Jeremy

\define if-special-time(then,else)
<$reveal state="$:/_FlagSpecialCss" type="match" text="yes" default="no">
$then$

<$reveal state="$:/_FlagSpecialCss" type="match" text="no" default="no">
$else$

\end

\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline 
macrocallblock

<>


> On 18 Dec 2016, at 20:22, Siniy-Kit  wrote:
> 
> Hi! I am writing a little script to $:/boot/bootprefix.js. This script 
> connects to other site time API, get time from it and if hours in this time 
> between 1 and 5 it must change css styles of tw5
> so I want this script to add tag $:/tags/Stylesheet to mycssstyle tiddler. I 
> write the first part with time, but don't know TW5 function to add tag to 
> tiddler
> 
>  found
> FieldManglerWidget.prototype.handleRemoveTagEvent = function(event) 
> 
> FieldManglerWidget.prototype.handleAddTagEvent = function(event)
> 
> but I don't understand how to use this functions.
> 
> -- 
> 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/77dfdaa8-224f-444d-9613-94cc7bdceb19%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/C9B0A935-A89A-4B10-97D5-B9EA5E30CC84%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5]How to add (remove) tags directly from $:/boot/bootprefix.js?

2016-12-18 Thread Siniy-Kit
Hi! I am writing a little script to $:/boot/bootprefix.js. This script 
connects to other site time API, get time from it and if hours in this time 
between 1 and 5 it must change css styles of tw5
so I want this script to add tag $:/tags/Stylesheet to mycssstyle tiddler. 
I write the first part with time, but don't know TW5 function to add tag to 
tiddler

 found 

FieldManglerWidget.prototype.handleRemoveTagEvent = function(event) 

FieldManglerWidget.prototype.handleAddTagEvent = function(event)


but I don't understand how to use this functions.

-- 
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/77dfdaa8-224f-444d-9613-94cc7bdceb19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Special tweak for $:/core/ui/AdvancedSearch/Filter

2016-12-18 Thread PMario
Hi David,

I don't think, that's very useful. IMO there needs to be a more UI stuff. 
Copy the following code into a tiddler. IMO it's not enough. 

\define getFilter()
[tag[$(tag)$]!is[system]sort[title]]
\end

tag: <$edit-text tiddler="$:/temp/special-search" field="text" tag=input/>

<$set name=tag value={{$:/temp/special-search}}>

filter: <>

<$list filter=<> ><$link to=<> 
><>


have fun!
mario

-- 
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/022a37cd-eac6-4d94-b11c-ddd0c28e1f0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Hiding the extra space between the tiddler title and the tiddler text.

2016-12-18 Thread PMario
On Sunday, December 18, 2016 at 6:13:15 PM UTC+1, David Gifford wrote:
>
> Here is an experimental comparison of a full TW using this approach, and a 
> static html created with that TW, merely by clicking to hide the titles and 
> exporting as static html.
>
> TW: http://giffmex.org/experiments/sabbath.html
> static: http://giffmex.org/experiments/sabbath.static.html
>

Ah, now I see why you wanted it that way. Nice work!
-m

-- 
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/8f5e8f05-c5f7-4ced-9f11-135923b44a91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Photo Gallery plugin

2016-12-18 Thread LG
I'm running 5.1.11.

On Saturday, December 17, 2016 at 7:29:54 PM UTC-5, Jed Carty wrote:
>
> What version is the old wiki? I am hoping to spend a lot of time over the 
> christmas break working on tiddlywiki so input here is good.
>

-- 
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/a484e5d6-4d52-4d77-86ea-2fb8e6e6f2c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Hiding the extra space between the tiddler title and the tiddler text.

2016-12-18 Thread David Gifford
Hi Mario

Here is an experimental comparison of a full TW using this approach, and a 
static html created with that TW, merely by clicking to hide the titles and 
exporting as static html.

TW: http://giffmex.org/experiments/sabbath.html
static: http://giffmex.org/experiments/sabbath.static.html

Dave

On Sunday, December 18, 2016 at 5:42:29 AM UTC-6, PMario wrote:
>
> On Sunday, December 18, 2016 at 4:37:42 AM UTC+1, David Gifford wrote:
>>
>> Here is the file with the adjusted spacing. You have to create a few 
>> tiddlers with text and use the topmenu Hide button to hide the tiddler 
>> titles to see what I did. 
>> http://giffmex.org/experiments/notestorm2017.html
>>
>
> I see. That's an interesting approach.
> -m
>

-- 
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/ec5e0ab7-9311-4a05-b5e3-321d29e335eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Improving tiddler renaming behaviour

2016-12-18 Thread Jeremy Ruston
Hi Mario

These look like interesting proposals, I’d be happy to consider pull requests, 
but as you note, performance is a concern here.

> 1) The "rename tags checkbox" is shown, even if no tiddler is tagged with the 
> "old" name.

I don’t understand why that matters? The text is offering to do the relinking; 
it’s not asserting that there are any items to be renamed.
> 
> 2) imo new feature in 5.1.14-prereleas
> 
> eg: 
>   - tiddler a and b exist
>   - renaming tiddler a to name: b shows: "Target tiddler already exists"  
> <- OK
>   - it also shows the rename tags checkbox.  <- see: 1)  ... imo should be 
> changed ... but may slow down the UI

Why should it not? If you want to merge two tiddlers then you’d want to relink 
the fields.
> 
> 3) no warning, that new tiddler name is already a tag
> to reproduce: 
> 
>  - create tiddler a
>  - create tiddler aa and tag it: a
>  - create tiddler bb and tag it: b make sure that tiddler b does 
> _not_ exist!
>  - no rename tiddler: a to b
> 
> IMO there should be an info, that other tiddlers use that tag already!

I don’t follow the logic. Why does the user need to know that they are renaming 
the tiddler to the name of an existing tag? It’s a common operation, surely?

> 
> Suggestion: After the rename mechanism did change tiddlers, there should be 
> an info, which tiddlers have been changed! So the user knows, what was going 
> on. 

Yes, I agree. As I’ve mentioned before, the architecture of the $:/Import 
mechanism is designed as a general purpose “holding pen” for the review of 
changes before accepting them. I have recently integrated a JS diff engine too, 
which I’ll merge when I get a chance.

Best wishes

Jeremy

> 
> 
> -mario
> 
> 
> 
> -- 
> 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/d6215b70-e79e-40d6-9c25-b95f49bcca41%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/A983C606-4F6F-45CB-8EC9-43E1A2380CBD%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Improving tiddler renaming behaviour

2016-12-18 Thread Jeremy Ruston
Hi Danielo

> On 18 Dec 2016, at 10:52, Danielo Rodríguez  wrote:
> 
> I totally disagree, let me expose my reasons
>  First, I don't see the problem on performing a batch operation like this in 
> an asynchronous fashion. Not only when sync to server is implied, always. 
> Because this is a batch operation that could involve a complicated logic, 
> doing it in an asychronous fashion allows us to keep the UI responsive while 
> doing the required changes, and of course would allow to interact with the 
> server without any problem. For me is a win-win situation.
Renaming is currently implemented as a synchronous operation. Yes, you could 
reimplement it as some kind of asynchronous operation. There’s no framework for 
such operations at present though. But it’s synchronous at the moment.
> Second, you are restringing the usage of remote stores to the most classic 
> ones.
No, I am not restricting the usage of remote stores to the most classic ones. I 
am making an architectural point. If you want to keep the data on the server, 
then you need to operate on it on the server. If you move the data to the 
client to operate on it then you are no longer operating on it on the server. 
> Nowadays remote does not means a server that you control, it can be a 
> database as a service, an API that allows you to retrieve and create files 
> (dropbox, github) , and many more, server-less is becoming mainstream. 
> Restricting an operation that can be easily performed on the client to the 
> server architecture means restricting tiddlywiki too much, and coupling it to 
> just a small set of compatible servers.
None of that seems relevant to my point. I’m not restricting anything; I’m 
making the point that we can’t within the client create a general solution to 
the problem of performing operations on the server.
> Third, this can cause race conditions and weird situations. Imagine that you 
> perform a batch operation on the client side, and asks the same operation to 
> be performed on the server once the renaming suceeds on client. Because the 
> operation is asynchronous, the user can try to load some of the affected 
> tiddlers before the operation can complete on the server, then the server 
> will deliver to you the older version, which will cause an unstable and hard 
> to guess situation. This was a race condition and the client side won. This 
> gets even funnier if you ask for a bunch of tiddlers and some of them are 
> delivered BEFORE the operation completes, while others are delivered AFTER 
> the relinking is completed, I can't imagine what kind of messy situations we 
> can get here. Not to mention that what could happen if you perform the 
> renaming on the client but it fails on the server? then you will be on some 
> kind of split-brain
I’m not sure what you’re saying here. What can cause race conditions? Your 
second sentence is making an odd assumption about performing the same operation 
on the client and the server; I don’t understand the relevance.

Best wishes

Jeremy.


>  
> 
> 
> In the absence of a server side mechanism for relinking, there’s not much we 
> can do other than think about ways to ensure that the affected tiddlers are 
> loaded into the client before attempting a search and replace.
> 
> Where is the problem wit this approach ? For me it's perfectly valid. 
> Tiddlywiki is a single page application, it can handle all the required logic 
> to operate the tiddlers on the client. Why not? I can't find a valid reason 
> to don't doing it. Let's keep tiddlwiki as functional and compatible with any 
> server architecture as possible.  
> 
> I guess there might be something that the syncer/sync modules could do to 
> merge modified fields of lazily loaded tiddlers.
> 
> This is, again, a complicated and unnecessary logic when you can just fetch 
> the tiddlers and perform some POTWOs (plain old tiddlywiki operations) 
> 
> Regards.
> 
> -- 
> 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/174db8d4-d254-470d-9c22-4b54a1d0dd4b%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, s

Re: [tw] Reveal content based on field content

2016-12-18 Thread Danielo Rodríguez
Much clearer now 

-- 
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/f323048e-134d-46e5-9251-9e8aa50f703b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] How to use $list filter in css slylesheet?

2016-12-18 Thread Siniy-Kit
Yes! I forget about " " and space after [] .yourstyle{} I spent so 
many time to find it.

<$list filter="[[Rolly]]"> tw[tags~="<$view field=title/>"]   .img-square:after 
{width: 35px;height: 35px;display: block;background-repeat: 
no-repeat;background-size: 35px 35px;background-image: 
url(images/budil.svg);text-align: left;background-position: left 
bottom;position:absolute;bottom:7px;left:7px;content: "";} 



воскресенье, 18 декабря 2016 г., 17:15:28 UTC+3 пользователь Jed Carty 
написал:

> I have used lists to make css styles before, it should work. If you are 
> sure the css is correct than my only suggestion is to make sure that the 
> tiddler type is either blank or text/vnd.tiddlywiki
>

-- 
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/8f86d079-2bf1-49cf-b506-550a7313eccc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] How to use $list filter in css slylesheet?

2016-12-18 Thread Jed Carty
I have used lists to make css styles before, it should work. If you are 
sure the css is correct than my only suggestion is to make sure that the 
tiddler type is either blank or text/vnd.tiddlywiki

-- 
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/18eae53c-0077-4b65-b781-11630ccb1db3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] How to use $list filter in css slylesheet?

2016-12-18 Thread Siniy-Kit
Hi I make a new tiddler with tag $:/tags/Stylesheet and put list to it

<$list filter="[[Rolly]]"> tw[tags~=<$view field=title/>].img-square:after 
{width: 35px;height: 35px;display: block;background-repeat: 
no-repeat;background-size: 35px 35px;background-image: 
url(images/budil.svg);text-align: left;background-position: left 
bottom;position:absolute;bottom:7px;left:7px;content: "";} 

the result is 

tw[tags~=Rolly].img-square:after { width: 35px; height: 35px; display: 
block; background-repeat: no-repeat; background-size: 35px 35px; 
background-image: url(images/budil.svg); text-align: left; 
background-position: left 
bottom;position:absolute;bottom:7px;left:7px;content: "";}

 This result is fully correct, but don't work...

is it possible to use $list in css?


 

-- 
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/964ed88f-fa48-4300-b9c9-2b54c6e5f7d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Context Search plugin updated

2016-12-18 Thread David Gifford

Hey Danielo, are you going to fix this plugin and change the tw's to tc's?


On Monday, January 19, 2015 at 2:54:10 AM UTC-6, Danielo Rodríguez wrote:
>
> It is available at braintest 
> 
>
> It is not a big update from outside: I just included the plugin 
> documentation as part of the readme of the plugin. But from inside I made 
> an important code cleanup and ordering that will make future updates more 
> easy and also bug corrections.
>
> This version also fixes the problem with the captions and adopts a correct 
> TW naming convention.
>
> Regards.
>

-- 
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/2fa7bbc4-260a-49ec-901f-99568b25f791%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Special tweak for $:/core/ui/AdvancedSearch/Filter

2016-12-18 Thread David Gifford
Another request. This is something beyond me but would be useful, I think, 
to a lot of users. Maybe someone has already created something like this.

Imagine a blank search field where you type in the name of a tag, and in 
doing so, you are invoking [tag[]!is[system]sort[title]] that tag, and 
getting the results for that.

This would functionally be a duplicate of searching for 
[tag[]!is[system]sort[title]] in $:/core/ui/AdvancedSearch/Filter, but for 
users it would be nice to not have to see all that extra stuff, just a 
blank field, and type.

Does anybody already have something like this cooked up?

-- 
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/b0ca6599-3df5-470f-87de-efe5bdb022eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Filtered search for tags with open all option?

2016-12-18 Thread David Gifford
oops. edited to add the link. But of course, Mario, you realize it was the 
same link as in the other two threads...

On Sunday, December 18, 2016 at 5:43:39 AM UTC-6, PMario wrote:
>
> On Sunday, December 18, 2016 at 4:38:48 AM UTC+1, David Gifford wrote:
>>
>> Here is the link. 
>>
>
> Where? :)
>  
> -m
>

-- 
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/b516c03a-8137-4d4d-8f2c-58c51f8ad694%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Filtered search for tags with open all option?

2016-12-18 Thread PMario
On Sunday, December 18, 2016 at 4:38:48 AM UTC+1, David Gifford wrote:
>
> Here is the link. 
>

Where? :)
 
-m

-- 
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/1e03cf4c-c612-4df2-9a77-5a17df637c78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Hiding the extra space between the tiddler title and the tiddler text.

2016-12-18 Thread PMario
On Sunday, December 18, 2016 at 4:37:42 AM UTC+1, David Gifford wrote:
>
> Here is the file with the adjusted spacing. You have to create a few 
> tiddlers with text and use the topmenu Hide button to hide the tiddler 
> titles to see what I did. 
> http://giffmex.org/experiments/notestorm2017.html
>

I see. That's an interesting approach.
-m

-- 
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/78f5911c-141c-4e2e-8ce4-46b090e73678%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Last Q I promise...new tiddler with special title

2016-12-18 Thread PMario
On Sunday, December 18, 2016 at 4:36:26 AM UTC+1, David Gifford wrote:
>
> Here is the file with this button 
> http://giffmex.org/experiments/notestorm2017.html
>
>
Glad that I could help.
Thx for sharing.
-m 

-- 
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/cd7c4382-282a-4ac1-9dfc-e0c697d5bbf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] Improving tiddler renaming behaviour

2016-12-18 Thread Danielo Rodríguez
I totally disagree, let me expose my reasons
 

> I don’t think that there’s much we can do to fix things up in the face of 
> lazy loading. Fundamentally, such operations need to be done on the server 
> in such situations, and we don’t currently have the plumbing for that.
>


> The difficulty is that retrieving the non-skinny versions of the tiddlers 
> is an asynchronous operation, while the rename operation is synchronous in 
> the UI.
> But I’m not sure that shipping tiddlers to the client for operations is 
> really the way to go (except as a temporary hack/workaround), there’s 
> plenty of operations that we would want to perform on the server (eg batch 
> image resizing), and we really need a robust mechanism for invoking 
> server-based actions from the client.

 


   -  First, I don't see the problem on performing a batch operation like 
   this in an asynchronous fashion. Not only when sync to server is implied, 
   always. Because this is a batch operation that could involve a complicated 
   logic, doing it in an asychronous fashion allows us to keep the UI 
   responsive while doing the required changes, and of course would allow to 
   interact with the server without any problem. For me is a win-win situation.
   - Second, you are restringing the usage of remote stores to the most 
   classic ones. Nowadays remote does not means a server that you control, it 
   can be a database as a service, an API that allows you to retrieve and 
   create files (dropbox, github) , and many more, server-less is becoming 
   mainstream. Restricting an operation that can be easily performed on the 
   client to the server architecture means restricting tiddlywiki too much, 
   and coupling it to just a small set of compatible servers.
   - Third, this can cause race conditions and weird situations. Imagine 
   that you perform a batch operation on the client side, and asks the same 
   operation to be performed on the server once the renaming suceeds on 
   client. Because the operation is asynchronous, the user can try to load 
   some of the affected tiddlers before the operation can complete on the 
   server, then the server will deliver to you the older version, which will 
   cause an unstable and hard to guess situation. This was a race condition 
   and the client side won. This gets even funnier if you ask for a bunch of 
   tiddlers and some of them are delivered BEFORE the operation completes, 
   while others are delivered AFTER the relinking is completed, I can't 
   imagine what kind of messy situations we can get here. Not to mention that 
   what could happen if you perform the renaming on the client but it fails on 
   the server? then you will be on some kind of split-brain

 


> In the absence of a server side mechanism for relinking, there’s not much 
> we can do other than think about ways to ensure that the affected tiddlers 
> are loaded into the client before attempting a search and replace.
>

Where is the problem wit this approach ? For me it's perfectly valid. 
Tiddlywiki is a single page application, it can handle all the required 
logic to operate the tiddlers on the client. Why not? I can't find a valid 
reason to don't doing it. Let's keep tiddlwiki as functional and compatible 
with any server architecture as possible.  

>
> I guess there might be something that the syncer/sync modules could do to 
> merge modified fields of lazily loaded tiddlers.
>

This is, again, a complicated and unnecessary logic when you can just fetch 
the tiddlers and perform some POTWOs (plain old tiddlywiki operations) 

Regards.

-- 
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/174db8d4-d254-470d-9c22-4b54a1d0dd4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Lack of file in "Saving on a PHP server"

2016-12-18 Thread F Cantero
In tiddlywiki.com, the first line of the tiddler ''saving on a PHP server'' 
contains a link 

 
to a file whose content is "SVN hosting has been permanently disabled." 
where a php file should be. 

-- 
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/6495d9f8-fbbf-40de-b081-ffce1ced6a84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.