Re: [tw5] Re: Keeping my Node.js TW instance's open tiddler state local to a device (or even browser tab)

2020-05-03 Thread Saq Imtiaz
@Hugo please do confirm for us if reverting to 5.1.21 resolved the issue 
for you.

On Sunday, May 3, 2020 at 12:58:57 PM UTC+2, Hugo Saavedra wrote:
>
> Thanks, all.
>
> For now switching to 5.1.21 seems to be a solid solution while I try to 
> patch 5.1.22 locally (or until the 2.1.22 release, which will likely happen 
> first!)
>
> On Sun, May 3, 2020 at 4:48 AM Saq Imtiaz wrote:
>
>> @Jed : I suspected the same but in the other thread @HokieGeek did not 
>> manage to resolve this via $:/config/syncFilter. It is possible the problem 
>> may have been the open tiddlers in the browser at the time of the change to 
>> the syncFilter, as you mentioned. 
>>
>> I do think the default syncing behaviour for the story list needs to be 
>> changed.
>>
>>
>> On Sunday, May 3, 2020 at 11:38:27 AM UTC+2, Jed Carty wrote:
>>>
>>> It sounds like the $:/StoryList tiddler is syncing. Make a tiddler 
>>> called $/config/SyncFilter and put 
>>>
>>> [all[]] -[[$:/StoryList]]
>>>
>>> in the text field. That should prevent the server from saving the state 
>>> of the open tiddlers and pushing it to other browsers. Make sure that 
>>> before you do this you have the tiddlers you want open by default open, or 
>>> after you do this you need to go onto the server and delete the story list 
>>> .tid file manually because it won't sync after you set the sync filter.
>>>
>> -- 
>> 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/22z0Qse3amw/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddl...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/4ddbe6d5-fb2f-4cf6-b7c8-8e58ca43063d%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d7129d65-c19b-4952-b2e6-c7a4d4b90c87%40googlegroups.com.


Re: [tw5] Re: Keeping my Node.js TW instance's open tiddler state local to a device (or even browser tab)

2020-05-03 Thread Hugo Saavedra
Thanks, all.

For now switching to 5.1.21 seems to be a solid solution while I try to
patch 5.1.22 locally (or until the 2.1.22 release, which will likely happen
first!)

On Sun, May 3, 2020 at 4:48 AM Saq Imtiaz  wrote:

> @Jed : I suspected the same but in the other thread @HokieGeek did not
> manage to resolve this via $:/config/syncFilter. It is possible the problem
> may have been the open tiddlers in the browser at the time of the change to
> the syncFilter, as you mentioned.
>
> I do think the default syncing behaviour for the story list needs to be
> changed.
>
>
> On Sunday, May 3, 2020 at 11:38:27 AM UTC+2, Jed Carty wrote:
>>
>> It sounds like the $:/StoryList tiddler is syncing. Make a tiddler called
>> $/config/SyncFilter and put
>>
>> [all[]] -[[$:/StoryList]]
>>
>> in the text field. That should prevent the server from saving the state
>> of the open tiddlers and pushing it to other browsers. Make sure that
>> before you do this you have the tiddlers you want open by default open, or
>> after you do this you need to go onto the server and delete the story list
>> .tid file manually because it won't sync after you set the sync filter.
>>
> --
> 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/22z0Qse3amw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/4ddbe6d5-fb2f-4cf6-b7c8-8e58ca43063d%40googlegroups.com
> 
> .
>


-- 
*Hugo Saavedra*
c: 818-356-6664

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAMa8jQ4m%2BOooWLr32%3DQmLxBTZdpwchuAXmKcJ-uPFHm-ArijYQ%40mail.gmail.com.


[tw5] Re: Keeping my Node.js TW instance's open tiddler state local to a device (or even browser tab)

2020-05-03 Thread Saq Imtiaz
@Jed : I suspected the same but in the other thread @HokieGeek did not 
manage to resolve this via $:/config/syncFilter. It is possible the problem 
may have been the open tiddlers in the browser at the time of the change to 
the syncFilter, as you mentioned. 

I do think the default syncing behaviour for the story list needs to be 
changed.


On Sunday, May 3, 2020 at 11:38:27 AM UTC+2, Jed Carty wrote:
>
> It sounds like the $:/StoryList tiddler is syncing. Make a tiddler called 
> $/config/SyncFilter and put 
>
> [all[]] -[[$:/StoryList]]
>
> in the text field. That should prevent the server from saving the state of 
> the open tiddlers and pushing it to other browsers. Make sure that before 
> you do this you have the tiddlers you want open by default open, or after 
> you do this you need to go onto the server and delete the story list .tid 
> file manually because it won't sync after you set the sync filter.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4ddbe6d5-fb2f-4cf6-b7c8-8e58ca43063d%40googlegroups.com.


[tw5] Re: Keeping my Node.js TW instance's open tiddler state local to a device (or even browser tab)

2020-05-03 Thread Jed Carty
It sounds like the $:/StoryList tiddler is syncing. Make a tiddler called 
$/config/SyncFilter and put 

[all[]] -[[$:/StoryList]]

in the text field. That should prevent the server from saving the state of 
the open tiddlers and pushing it to other browsers. Make sure that before 
you do this you have the tiddlers you want open by default open, or after 
you do this you need to go onto the server and delete the story list .tid 
file manually because it won't sync after you set the sync filter.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d415bc51-6197-45d5-8fa0-86d632a89cf2%40googlegroups.com.


Re: [tw5] Re: Keeping my Node.js TW instance's open tiddler state local to a device (or even browser tab)

2020-05-02 Thread Saq Imtiaz
Hugo, I assume you are running the latest version, 5.1.22?
If so, I believe you are encoutering a bug that was introduced due to some 
changes to the sync mechanism. See the discussion here:
https://groups.google.com/forum/#!msg/tiddlywiki/ENyfB5ZxPWs/eXcv-96NAgAJ

If you are comfortable with javascript I think these are the two bits that 
need tweaking, both part of the TiddlyWeb adaptor plugin:

https://github.com/Jermolene/TiddlyWiki5/pull/4373/files#diff-a44355b62ef95b5b6faeb20a6050e800R162

https://github.com/Jermolene/TiddlyWiki5/pull/4373/files#diff-226de645e68fcb78adbc193a6884c5d3R1

Alternatively you can run 5.1.21 until this gets fixed.

Regards,
Saq

On Sunday, May 3, 2020 at 3:03:25 AM UTC+2, Hugo Saavedra wrote:
>
> Tony,
>
> Thanks very much for the pointers. I'll hack around on this. 
>
> I'm surprised that this is expected behavior -- it was pretty unexpected 
> for me when I realized what was happening!
>
> Are there any published guidelines and best practices for writing plugins? 
> And similarly for understanding the Tiddlywiki internals/APIs (in addition 
> to the helpful link you provided about InfoMechanism)?
>
> On Sat, May 2, 2020, 6:26 PM TonyM > 
> wrote:
>
>> Hugo,
>>
>> Doing what you ask may not be straight forward but here are a few leads, 
>> pending other input;
>>
>>- The [[Sniif plugin|
>>https://tiddlywiki.com/#%24%3A%2Fplugins%2Ftiddlywiki%2Fbrowser-sniff]] 
>>kan test which browser you are using which could be used to identify 
>> device.
>>- Your could add actions to a new save button that saves the story 
>> $:/StoryList 
>>list field and clears it, save for user
>>- The Info mechanism provides information you can use 
>>https://tiddlywiki.com/#InfoMechanism
>>- There are startup actions available in tiddlywiki including a 
>>plugin with more extensive features.
>>
>>
>> Design considerations
>>
>>- Do try and design your solution independently of node vs single 
>>File Wikis 
>>- Please try and publish it eventualy back into the community
>>- Continue asking for help in the forum.
>>
>> Regards
>> Tony
>>
>>
>> On Sunday, 3 May 2020 07:48:10 UTC+10, Hugo Saavedra wrote:
>>>
>>> Hi all!
>>>
>>> I apologize if this question has been asked before -- I'm not totally 
>>> sure what strings to search on, and I've scoured the TW docs pretty 
>>> thoroughly.
>>>
>>> *Question*
>>>
>>> Is it possible to make it so that the state of my Wiki (specifically, 
>>> which tiddlers are open) is local to the device? If so, how does one d?o 
>>> this
>>>
>>> *Background*
>>>
>>> I have been using TiddlyWiki as a repository for my math notes using the 
>>> Node.js server. 
>>>
>>> An important condition for me is that my server is accessible from 
>>> different devices, so I am hosting it behind NGINX on a DO droplet. 
>>>
>>> Write access is private with an authenticated user, read access is 
>>> public.
>>>
>>> When I open TiddlyWiki on a brand new device, my default "Home" page 
>>> will be open momentarily, and then suddenly all the Tiddlers I have open 
>>> (including drafts!) on some tab on a completely different device will open. 
>>>
>>> If I open different tiddlers on the new device, after 10-30 seconds 
>>> those tiddlers will be replaced by the tiddlers on a different device.
>>>
>>> I think that if I log in on this new device, this behavior stops, but 
>>> the annoyance for me is that I would like users of my wiki to browse 
>>> without seeing the state on one of my machines. 
>>>
>>> I really appreciate any help or thoughts here!
>>>
>> -- 
>> 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/22z0Qse3amw/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddl...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/ef5c0cb5-04a1-4f08-b821-4cf5827f725f%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5f97b3f2-f49a-4624-b54a-d7aae29a2769%40googlegroups.com.


Re: [tw5] Re: Keeping my Node.js TW instance's open tiddler state local to a device (or even browser tab)

2020-05-02 Thread TonyM
Hugo,

There is documentation and discussions in the forum, including the dev 
forum, on writing plugins but you do not need to, using tiddlywikis native 
tools as pointed to by me is sufficient to build this solution.

I am building something that would encompass this but I do not want to 
suggest when and If I will publish it, as I am so busy.

Regards
Tony

On Sunday, 3 May 2020 11:03:25 UTC+10, Hugo Saavedra wrote:
>
> Tony,
>
> Thanks very much for the pointers. I'll hack around on this. 
>
> I'm surprised that this is expected behavior -- it was pretty unexpected 
> for me when I realized what was happening!
>
> Are there any published guidelines and best practices for writing plugins? 
> And similarly for understanding the Tiddlywiki internals/APIs (in addition 
> to the helpful link you provided about InfoMechanism)?
>
> On Sat, May 2, 2020, 6:26 PM TonyM > 
> wrote:
>
>> Hugo,
>>
>> Doing what you ask may not be straight forward but here are a few leads, 
>> pending other input;
>>
>>- The [[Sniif plugin|
>>https://tiddlywiki.com/#%24%3A%2Fplugins%2Ftiddlywiki%2Fbrowser-sniff]] 
>>kan test which browser you are using which could be used to identify 
>> device.
>>- Your could add actions to a new save button that saves the story 
>> $:/StoryList 
>>list field and clears it, save for user
>>- The Info mechanism provides information you can use 
>>https://tiddlywiki.com/#InfoMechanism
>>- There are startup actions available in tiddlywiki including a 
>>plugin with more extensive features.
>>
>>
>> Design considerations
>>
>>- Do try and design your solution independently of node vs single 
>>File Wikis 
>>- Please try and publish it eventualy back into the community
>>- Continue asking for help in the forum.
>>
>> Regards
>> Tony
>>
>>
>> On Sunday, 3 May 2020 07:48:10 UTC+10, Hugo Saavedra wrote:
>>>
>>> Hi all!
>>>
>>> I apologize if this question has been asked before -- I'm not totally 
>>> sure what strings to search on, and I've scoured the TW docs pretty 
>>> thoroughly.
>>>
>>> *Question*
>>>
>>> Is it possible to make it so that the state of my Wiki (specifically, 
>>> which tiddlers are open) is local to the device? If so, how does one d?o 
>>> this
>>>
>>> *Background*
>>>
>>> I have been using TiddlyWiki as a repository for my math notes using the 
>>> Node.js server. 
>>>
>>> An important condition for me is that my server is accessible from 
>>> different devices, so I am hosting it behind NGINX on a DO droplet. 
>>>
>>> Write access is private with an authenticated user, read access is 
>>> public.
>>>
>>> When I open TiddlyWiki on a brand new device, my default "Home" page 
>>> will be open momentarily, and then suddenly all the Tiddlers I have open 
>>> (including drafts!) on some tab on a completely different device will open. 
>>>
>>> If I open different tiddlers on the new device, after 10-30 seconds 
>>> those tiddlers will be replaced by the tiddlers on a different device.
>>>
>>> I think that if I log in on this new device, this behavior stops, but 
>>> the annoyance for me is that I would like users of my wiki to browse 
>>> without seeing the state on one of my machines. 
>>>
>>> I really appreciate any help or thoughts here!
>>>
>> -- 
>> 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/22z0Qse3amw/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddl...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/ef5c0cb5-04a1-4f08-b821-4cf5827f725f%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a0ba01fd-059e-41a2-8ba4-a51927928153%40googlegroups.com.


Re: [tw5] Re: Keeping my Node.js TW instance's open tiddler state local to a device (or even browser tab)

2020-05-02 Thread Hugo Saavedra
Tony,

Thanks very much for the pointers. I'll hack around on this.

I'm surprised that this is expected behavior -- it was pretty unexpected
for me when I realized what was happening!

Are there any published guidelines and best practices for writing plugins?
And similarly for understanding the Tiddlywiki internals/APIs (in addition
to the helpful link you provided about InfoMechanism)?

On Sat, May 2, 2020, 6:26 PM TonyM  wrote:

> Hugo,
>
> Doing what you ask may not be straight forward but here are a few leads,
> pending other input;
>
>- The [[Sniif plugin|
>https://tiddlywiki.com/#%24%3A%2Fplugins%2Ftiddlywiki%2Fbrowser-sniff]]
>kan test which browser you are using which could be used to identify 
> device.
>- Your could add actions to a new save button that saves the story 
> $:/StoryList
>list field and clears it, save for user
>- The Info mechanism provides information you can use
>https://tiddlywiki.com/#InfoMechanism
>- There are startup actions available in tiddlywiki including a plugin
>with more extensive features.
>
>
> Design considerations
>
>- Do try and design your solution independently of node vs single File
>Wikis
>- Please try and publish it eventualy back into the community
>- Continue asking for help in the forum.
>
> Regards
> Tony
>
>
> On Sunday, 3 May 2020 07:48:10 UTC+10, Hugo Saavedra wrote:
>>
>> Hi all!
>>
>> I apologize if this question has been asked before -- I'm not totally
>> sure what strings to search on, and I've scoured the TW docs pretty
>> thoroughly.
>>
>> *Question*
>>
>> Is it possible to make it so that the state of my Wiki (specifically,
>> which tiddlers are open) is local to the device? If so, how does one d?o
>> this
>>
>> *Background*
>>
>> I have been using TiddlyWiki as a repository for my math notes using the
>> Node.js server.
>>
>> An important condition for me is that my server is accessible from
>> different devices, so I am hosting it behind NGINX on a DO droplet.
>>
>> Write access is private with an authenticated user, read access is public.
>>
>> When I open TiddlyWiki on a brand new device, my default "Home" page will
>> be open momentarily, and then suddenly all the Tiddlers I have open
>> (including drafts!) on some tab on a completely different device will open.
>>
>> If I open different tiddlers on the new device, after 10-30 seconds those
>> tiddlers will be replaced by the tiddlers on a different device.
>>
>> I think that if I log in on this new device, this behavior stops, but the
>> annoyance for me is that I would like users of my wiki to browse without
>> seeing the state on one of my machines.
>>
>> I really appreciate any help or thoughts here!
>>
> --
> 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/22z0Qse3amw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/ef5c0cb5-04a1-4f08-b821-4cf5827f725f%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAMa8jQ7HYtDOP40yBwLR1rbOqK1ZLv8cvWWLXpYkS1fzcQN0dg%40mail.gmail.com.


[tw5] Re: Keeping my Node.js TW instance's open tiddler state local to a device (or even browser tab)

2020-05-02 Thread TonyM
Hugo,

Doing what you ask may not be straight forward but here are a few leads, 
pending other input;

   - The [[Sniif 
   
plugin|https://tiddlywiki.com/#%24%3A%2Fplugins%2Ftiddlywiki%2Fbrowser-sniff]] 
   kan test which browser you are using which could be used to identify device.
   - Your could add actions to a new save button that saves the story 
$:/StoryList 
   list field and clears it, save for user
   - The Info mechanism provides information you can use 
   https://tiddlywiki.com/#InfoMechanism
   - There are startup actions available in tiddlywiki including a plugin 
   with more extensive features.


Design considerations

   - Do try and design your solution independently of node vs single File 
   Wikis 
   - Please try and publish it eventualy back into the community
   - Continue asking for help in the forum.

Regards
Tony


On Sunday, 3 May 2020 07:48:10 UTC+10, Hugo Saavedra wrote:
>
> Hi all!
>
> I apologize if this question has been asked before -- I'm not totally sure 
> what strings to search on, and I've scoured the TW docs pretty thoroughly.
>
> *Question*
>
> Is it possible to make it so that the state of my Wiki (specifically, 
> which tiddlers are open) is local to the device? If so, how does one d?o 
> this
>
> *Background*
>
> I have been using TiddlyWiki as a repository for my math notes using the 
> Node.js server. 
>
> An important condition for me is that my server is accessible from 
> different devices, so I am hosting it behind NGINX on a DO droplet. 
>
> Write access is private with an authenticated user, read access is public.
>
> When I open TiddlyWiki on a brand new device, my default "Home" page will 
> be open momentarily, and then suddenly all the Tiddlers I have open 
> (including drafts!) on some tab on a completely different device will open. 
>
> If I open different tiddlers on the new device, after 10-30 seconds those 
> tiddlers will be replaced by the tiddlers on a different device.
>
> I think that if I log in on this new device, this behavior stops, but the 
> annoyance for me is that I would like users of my wiki to browse without 
> seeing the state on one of my machines. 
>
> I really appreciate any help or thoughts here!
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ef5c0cb5-04a1-4f08-b821-4cf5827f725f%40googlegroups.com.