Re: [tw5] Re: Can't save changing when i used TiddlyWiki on Node.js.

2020-10-12 Thread long xing
Oh!thanks!

Jed Carty  于2020年10月12日周一 下午8:25写道:

> click on the tab labeled Recent in the sidebar, yo should see links to the
> tiddlers there.
>
> On Monday, October 12, 2020 at 9:54:24 AM UTC+2 aaa106...@gmail.com wrote:
>
>> I have followed by tutorial step by step(
>> 
>> https://github.com/Jermolene/TiddlyWiki5)
>>
>> tiddlywiki mynewwiki --init server
>>
>> tiddlywiki mynewwiki --listen
>>
>> However, When I finished editing the page, and reopen the
>> page(127.0.0.1:8080), the page is still in its original state.
>>
>> [image: Untitled.png]
>>
>>   And the tid.file of mynewwiki have been increased
>>
>>  [image: Untitled (1).png]
>>
>> What should I do?
>>
>> Thank you for taking the time to look my questions
>>
>>
>> --
> 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/b8df53ad-cfcd-434a-b5f6-0d49c63029adn%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/CAK0z19L0qmUhBGKiJQC7YGvUoYoaVavMgyshSdjAmPANCPmjnw%40mail.gmail.com.


Re: [tw5] Re: XMLhttpRequest Errors

2020-10-12 Thread Rika Sukenik
Joshua, that worked. Thanks so much!!

On Saturday, October 10, 2020 at 8:03:03 PM UTC-7 joshua@gmail.com 
wrote:

> Separate CSS files are only needed if you are building "Standalone HTML" 
> files, basically using TW as a way to build non-TW-enabled "Static" HTML 
> files.
>
> If you are building a "single file TiddlyWiki", then all the CSS you need 
> is already included ("transcluded" *win-wink*) into the page when it is 
> loaded. Each "CSS tiddler" (tiddlers tagged with "$:/tags/Stylehseet") is 
> included in the page-header when it is rendered in the browser.
>
> Best,
> Joshua Fontany
>
> On Saturday, October 10, 2020 at 7:24:54 AM UTC-7 rika.s...@gmail.com 
> wrote:
>
>> Thanks, I'll try it. What about the css file? Do I need to run another 
>> command to generate it?
>>
>> On Fri, Oct 9, 2020, 11:12 PM Saq Imtiaz  wrote:
>>
>>> Try adding the following command and using it to generate the HTML file:
>>>
>>> "build": {
>>> "index": [
>>> "--rendertiddler",
>>> "$:/plugins/tiddlywiki/tiddlyweb/save/offline",
>>> "index.html",
>>> "text/plain"
>>> ],
>>> example:
>>> https://github.com/saqimtiaz/streams/blob/master/tiddlywiki.info#L12
>>>
>>> On Wednesday, October 7, 2020 at 1:21:52 AM UTC+2, Rika Sukenik wrote:

 hi! i'm getting 3 XMLhttpRequest errors when my page loads. You can see 
 the errors here: www.rikasukenik.com

 the errors appeared after I made the below updates to my 
 tiddliwiki.info file. I made the edits because I had an issue 
 yesterday with site non-responsiveness after using --build static. 
 Javascript was not included in the static html file. I got some guidance 
 to 
 add a test command, but now I'm getting these XMLhttpRequest errors. 

 I appreciate some eyes on this problem! thank you!

 "test": [
  "--rendertiddler",
  "$:/core/save/all",
  "index.html",
  "text/plain",
  "--rendertiddler",
  "$:/core/templates/static.template.css",
  "static/static.css",
  "text/plain"

>>> -- 
>>>
>> 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/Kfk12gPwOsY/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> tiddlywiki+...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/73e73751-5327-4cbf-9a2a-30200f8bef0bo%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/24142a9a-acfe-4a2c-a8a1-6a09b3f594b1n%40googlegroups.com.


Re: [tw5] A HOWTO: Working with tables in wikitext and marking where yer at

2020-10-12 Thread clutterstack
I like the marker idea, Charlie. Markdown tables (or wikitext tables) are 
such a pain to edit that I have been repeatedly quelling an urge to write 
separate tiddlers for each row of the one I'm writing (documenting for 
myself which macros do what, and where they live, in a personal plugin). 
It's so tempting in TW to write a "solution," thereby opening yet another 
set of parentheses before I finish the task at hand. Right now I'm jumping 
around between cells, so every time I look for my place I have to put down 
a new urge to institute a System. :)

...I actually broke down and wrote the tiddler to generate the table, and 
one single data-containing tiddler, just to scratch the itch, and went back 
to trying to maintain my discipline until the job is done. 

Tables are an annoyance in any Markdown environment, but TiddlyWiki is 
devilish in that you know you could write something on top of it to 
generate the table you're making, and organize the data while you're at 
it...

On Saturday, October 10, 2020 at 1:23:38 PM UTC-4 Charlie Veniot wrote:

> G'day,
>
> Normally I would entirely agree (I had also thought of using journals), 
> but in this particular case (for a multi-tracking thing for two power banks 
> and multiple tests), I wanted the one no fuss no muss tiddler with 
> everything "right there" so to speak.
>
> Sometimes, when wanting to just do something quickly, extra layers of 
> "fancy formality" overhead just gets in the way. 
>
> I prefer keep that good stuff "fancy formality" for when it really matters.
>
>
> On Saturday, October 10, 2020 at 1:55:06 PM UTC-3, Atronoush wrote:
>>
>> Charlie,
>>  Creating long tables is error prone and boring when you come back to 
>> edit them. Why do not use a tiddler (look at tiddler philosophy)?
>> In your case each row can be a tiddler. Every tiddler can have three 
>> fields: text field, time field and data field
>> Then simply use TiddlyTables or Shiraz dynamic table to create such a 
>> long table.
>>
>> --Atro
>>
>>
>>>
>>>

-- 
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/a6dbf087-aabf-4718-8e60-0959b42b496cn%40googlegroups.com.


Re: [tw5] Re: [TW5] Bob and BobEXE version 1.6.2, Une Vie Typique

2020-10-12 Thread s.kaczmarek
Hi, may I ask you, where is documentation of rest API?

pon., 12 paź 2020 o 23:10 TW Tones  napisał(a):

> Jed,
>
> Thanks again for your continued development and maintenance of this
> valuable solution.
>
> Tones
>
> On Tuesday, 13 October 2020 06:22:44 UTC+11, Jed Carty wrote:
>>
>> The new version of Bob and BobEXE is available in the usual place.
>>
>> This has only been tested by me, so back up your data. Don't be surprised
>> if there are bugs in the new features.
>>
>> The BobEXE version is available here:
>> https://github.com/OokTech/TW5-BobEXE/releases/tag/1.6.2
>> The plugin is available here: https://github.com/OokTech/TW5-Bob
>>
>> Highlights:
>>
>> Fixes a regression that broke wikis with spaces in the wiki name
>> Added in most of the rest of the HTTP api and documented it
>> Improves (or possibly fixes) The problems cased by Bob interacting with
>> external syncing services
>> Improved how settings are loaded in the browser
>>
>> The full changelog follows:
>>
>> !! Version 1.6.2 Une Vie Typique
>>
>> * Fixed a regression that would prevent websocket connections if the wiki
>> had a space in its name.
>> * Add a `/api/status` http route that returns settings and other wiki
>> information
>> * Switched to using the `/api/status` route to get wiki settings instead
>> of the setLoggedIn websocket message to make behaviour more predictable and
>> prevent some race conditions
>> * Lots of refactoring and cleanup on the wiki management functions in the
>> back-end
>> * You no longer need to click a button to see the available
>> plugins/themes/editions/languages on the server. If any new ones are added
>> while you have a wiki open you need to either refresh the page (the reload
>> button on your browser, nothing special) or refresh the settings.
>> * Big update to the http api routes
>> * Documented the http api
>>
>> !! Version 1.6.1 Scream in your heart
>>
>> * Changed how saveTiddler messages are handled that reduce the number of
>> redundant messages. This prevents some undesired behaviour and in some
>> extreme cases infinite saving loops.
>> ** This makes some significant speed improvements, everything but saving
>> many tiddlers in the browser is now close to the speed it was before
>> switching to the internal syncer
>> * Fixed some formatting to fit better with tiddlywiki coding styles
>> * Fixed the basepath for the file server
>> * Simplified the file system monitor in a way that should prevent race
>> conditions when used with external syncing services like git or dropbox
>> ** Thanks @lineonetwo
>> * Fixed the name `enableBobSaver` so that the GUI can disable the saver
>> correctly
>> * Updates to setting the modified flag for a wiki on the server to be
>> more consistent
>> * Update action-downloadwiki documentation to show you can set which core
>> to use and set the default download name
>> * Improved the handling of uploaded files
>> * Add proper handling so expired login tokens aren't sent when they
>> shouldn't be
>> * Create a single shared method for getting login tokens
>>
> --
> 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/419c7b66-d4b8-43e4-b46e-8b2c212429e6o%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/CANmWv%2BxznO-UpMwXeN-Om6SwWi3THbSuwoV2HGq-WX28D7xT0w%40mail.gmail.com.


Re: [tw5] Re: Total Word Count?

2020-10-12 Thread Aidan Grey
Aha!! I was trying to transpose the {{{s to [[s. Thank you!!

text={{{ [all[current]get[text]splitregexp[\s+]count[]divide[250]round[]]
}}}

On Mon, Oct 12, 2020 at 3:07 PM TW Tones  wrote:

> Aidan,
>
> That should be trivial in both the whole of wiki and tiddler focused
> counts.
>
> Here I have added it to my subtitle macros.
>
> <$list filter="[all[current]get[text]length[]compare:number:gt[0]]"
> variable=size>
> <$button tooltip="Size in characters of the current tiddler"
> class="tc-btn-invisible">
> {{$:/core/images/size}}<$text text=<>/><$text text={{{ 
> [compare:number:lteq[1300]then[
> in-post]] }}}/><$text text={{{ 
> [compare:number:gt[1300]compare:number:lteq[125000]then[
> in-article]] }}}/>
> <$text text={{{ [all[current]get[text]splitregexp[\s+]count[]] }}}/> Words
> <$text text={{{
> [all[current]get[text]splitregexp[\s+]count[]divide[250]round[]] }}}/> Pages
> 
> 
>
> This idea of obtaining details from the text field hints at a possibility
> I have raised a few times, that is of analytics in Tiddlywiki.
>
>- There are a lot of ways to measure, log and collate information in
>tiddlywiki.
>- While analytics is used by the big IT players it has also being
>recognised that providing rich analytics back to the user about their own
>data, is a great source of insight.
>- I have a thought experiment I am working on to build effective
>analytics based on data as it arrives rather than just a calculation at a
>particular time.
>- I also raised color intuitions
> to
>bring forward such analytics to allow ones intuition to work with the info.
>
> Regards
> Tones
>
> On Tuesday, 13 October 2020 05:37:52 UTC+11, Aidan Grey wrote:
>>
>> Is there a way to shift that count into a variable, so that one could
>> calculate, say, how many pages that word count equates to?
>>
>> [[the word count]divide[250]round[]]
>>
>>
>> On Mon, Oct 12, 2020 at 9:01 AM Amanda L. Goodman 
>> wrote:
>>
>>> Thanks for the clarification!
>>>
>>> It appears to be working well on my end.
>>>
>>> On Sun, Oct 11, 2020 at 5:09 PM TW Tones  wrote:
>>>
 LG,

 The first is a character count in the current tiddler, the second the
 word count in the current tiddler.

 Sorry if I have confused you, I think I assumed too much.

 Regards
 Tones

 On Monday, 12 October 2020 04:29:58 UTC+11, LG wrote:
>
> Hello, Tony!
>
> Well, that's what I get for trying to read when I'm so tired. I tried
> that and this is what I'm seeing now:
>
> 11th October 2020 at 1:16pm 359 in-post 35 Words
>
>
> I checked it several times against other word counters to ensure that
> it is accurate. I'm guessing the "359 in-post" refers to all of the
> TiddlyWiki code?
>
>
>
> On Sat, Oct 10, 2020 at 2:13 AM TW Tones  wrote:
>
>> LG,
>>
>> Simply put this provides a way to place things into the subtitle of
>> all tiddlers.
>>
>> One of those things is a display of *characters and words found in
>> the text field of tiddlers* found defined in
>> $:/PSaT/subtitle-tags/text-size
>>
>> It has the added feature that it has two numbers which it uses to
>> indicate if the character counts exceed one of two values.
>> In this case the two thresholds relate to posts or articles in the
>> LinkedIn.com network. another example 10,000+ words I hear is what some
>> essays must be for universities etc...
>>
>> Your original enquiry for was the whole of the wiki? This is the same
>> but for each tiddler. Either remove the logic or add your own thresholds.
>> By the way it works in edit as well :)
>>
>> Going forward the subtitle-tags.json what else can you do with it?
>> Perhaps it could be designed to count words after rendering, to count
>> the works in the finished tiddler after transclusions etc..
>>
>>
>> Has this answered your Questions?
>>
>> Tones
>>
>> On Saturday, 10 October 2020 13:31:16 UTC+11, LG wrote:
>>>
>>> Hey, Tony!
>>>
>>> I'm happy to help. I'll admit that I'm not sure what I'm looking for
>>> here, so I'd appreciate you spelling it out for me.
>>>
>>> I did the import and read the info off the usage tiddler. I then
>>> created a "Subtitle Test" tiddler and wrote: Hey. This resulted in it
>>> appearing right next to the date (under the title) with no space between
>>> the time and Hey. When I added " Hey" (with no quotation marks), 
>>> the
>>> expected and hoped for space appeared between the date and Hey.
>>>
>>> 9th October 2020 at 10:21pm  Hey.
>>>
>>>
>>> I'm not sure what this part means in what I should be looking for:
>>>

- Are the number of characters below 1300 they fit in a linked
in post
- Are 

[tw5] Re: [TW5] Bob and BobEXE version 1.6.2, Une Vie Typique

2020-10-12 Thread TW Tones
Jed,

Thanks again for your continued development and maintenance of this 
valuable solution.

Tones

On Tuesday, 13 October 2020 06:22:44 UTC+11, Jed Carty wrote:
>
> The new version of Bob and BobEXE is available in the usual place.
>
> This has only been tested by me, so back up your data. Don't be surprised 
> if there are bugs in the new features.
>
> The BobEXE version is available here: 
> https://github.com/OokTech/TW5-BobEXE/releases/tag/1.6.2
> The plugin is available here: https://github.com/OokTech/TW5-Bob
>
> Highlights:
>
> Fixes a regression that broke wikis with spaces in the wiki name
> Added in most of the rest of the HTTP api and documented it
> Improves (or possibly fixes) The problems cased by Bob interacting with 
> external syncing services
> Improved how settings are loaded in the browser
>
> The full changelog follows:
>
> !! Version 1.6.2 Une Vie Typique
>
> * Fixed a regression that would prevent websocket connections if the wiki 
> had a space in its name.
> * Add a `/api/status` http route that returns settings and other wiki 
> information
> * Switched to using the `/api/status` route to get wiki settings instead 
> of the setLoggedIn websocket message to make behaviour more predictable and 
> prevent some race conditions
> * Lots of refactoring and cleanup on the wiki management functions in the 
> back-end
> * You no longer need to click a button to see the available 
> plugins/themes/editions/languages on the server. If any new ones are added 
> while you have a wiki open you need to either refresh the page (the reload 
> button on your browser, nothing special) or refresh the settings.
> * Big update to the http api routes
> * Documented the http api
>
> !! Version 1.6.1 Scream in your heart
>
> * Changed how saveTiddler messages are handled that reduce the number of 
> redundant messages. This prevents some undesired behaviour and in some 
> extreme cases infinite saving loops.
> ** This makes some significant speed improvements, everything but saving 
> many tiddlers in the browser is now close to the speed it was before 
> switching to the internal syncer
> * Fixed some formatting to fit better with tiddlywiki coding styles
> * Fixed the basepath for the file server
> * Simplified the file system monitor in a way that should prevent race 
> conditions when used with external syncing services like git or dropbox
> ** Thanks @lineonetwo
> * Fixed the name `enableBobSaver` so that the GUI can disable the saver 
> correctly
> * Updates to setting the modified flag for a wiki on the server to be more 
> consistent
> * Update action-downloadwiki documentation to show you can set which core 
> to use and set the default download name
> * Improved the handling of uploaded files
> * Add proper handling so expired login tokens aren't sent when they 
> shouldn't be
> * Create a single shared method for getting login tokens
>

-- 
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/419c7b66-d4b8-43e4-b46e-8b2c212429e6o%40googlegroups.com.


Re: [tw5] Re: Total Word Count?

2020-10-12 Thread TW Tones
Aidan,

That should be trivial in both the whole of wiki and tiddler focused counts.

Here I have added it to my subtitle macros.

<$list filter="[all[current]get[text]length[]compare:number:gt[0]]" 
variable=size>
<$button tooltip="Size in characters of the current tiddler" 
class="tc-btn-invisible">
{{$:/core/images/size}}<$text text=<>/><$text text={{{ 
[compare:number:lteq[1300]then[ 
in-post]] }}}/><$text text={{{ 
[compare:number:gt[1300]compare:number:lteq[125000]then[ 
in-article]] }}}/>
<$text text={{{ [all[current]get[text]splitregexp[\s+]count[]] }}}/> Words
<$text text={{{ 
[all[current]get[text]splitregexp[\s+]count[]divide[250]round[]] }}}/> Pages



This idea of obtaining details from the text field hints at a possibility I 
have raised a few times, that is of analytics in Tiddlywiki. 

   - There are a lot of ways to measure, log and collate information in 
   tiddlywiki. 
   - While analytics is used by the big IT players it has also being 
   recognised that providing rich analytics back to the user about their own 
   data, is a great source of insight.
   - I have a thought experiment I am working on to build effective 
   analytics based on data as it arrives rather than just a calculation at a 
   particular time. 
   - I also raised color intuitions 
    to 
   bring forward such analytics to allow ones intuition to work with the info.

Regards
Tones

On Tuesday, 13 October 2020 05:37:52 UTC+11, Aidan Grey wrote:
>
> Is there a way to shift that count into a variable, so that one could 
> calculate, say, how many pages that word count equates to?
>
> [[the word count]divide[250]round[]]
>
>
> On Mon, Oct 12, 2020 at 9:01 AM Amanda L. Goodman  > wrote:
>
>> Thanks for the clarification! 
>>
>> It appears to be working well on my end. 
>>
>> On Sun, Oct 11, 2020 at 5:09 PM TW Tones > > wrote:
>>
>>> LG,
>>>
>>> The first is a character count in the current tiddler, the second the 
>>> word count in the current tiddler.
>>>
>>> Sorry if I have confused you, I think I assumed too much.
>>>
>>> Regards
>>> Tones
>>>
>>> On Monday, 12 October 2020 04:29:58 UTC+11, LG wrote:

 Hello, Tony!

 Well, that's what I get for trying to read when I'm so tired. I tried 
 that and this is what I'm seeing now: 

 11th October 2020 at 1:16pm 359 in-post 35 Words  


 I checked it several times against other word counters to ensure that 
 it is accurate. I'm guessing the "359 in-post" refers to all of the 
 TiddlyWiki code? 



 On Sat, Oct 10, 2020 at 2:13 AM TW Tones  wrote:

> LG,
>
> Simply put this provides a way to place things into the subtitle of 
> all tiddlers.
>
> One of those things is a display of *characters and words found in 
> the text field of tiddlers* found defined in 
> $:/PSaT/subtitle-tags/text-size
>
> It has the added feature that it has two numbers which it uses to 
> indicate if the character counts exceed one of two values.
> In this case the two thresholds relate to posts or articles in the 
> LinkedIn.com network. another example 10,000+ words I hear is what some 
> essays must be for universities etc...
>
> Your original enquiry for was the whole of the wiki? This is the same 
> but for each tiddler. Either remove the logic or add your own thresholds.
> By the way it works in edit as well :)
>
> Going forward the subtitle-tags.json what else can you do with it?
> Perhaps it could be designed to count words after rendering, to count 
> the works in the finished tiddler after transclusions etc..
>
>
> Has this answered your Questions?
>
> Tones
>
> On Saturday, 10 October 2020 13:31:16 UTC+11, LG wrote:
>>
>> Hey, Tony! 
>>
>> I'm happy to help. I'll admit that I'm not sure what I'm looking for 
>> here, so I'd appreciate you spelling it out for me. 
>>
>> I did the import and read the info off the usage tiddler. I then 
>> created a "Subtitle Test" tiddler and wrote: Hey. This resulted in it 
>> appearing right next to the date (under the title) with no space between 
>> the time and Hey. When I added " Hey" (with no quotation marks), 
>> the 
>> expected and hoped for space appeared between the date and Hey.
>>
>> 9th October 2020 at 10:21pm  Hey.
>>
>>
>> I'm not sure what this part means in what I should be looking for:
>>
>>>
>>>- Are the number of characters below 1300 they fit in a linked 
>>>in post
>>>- Are the number of characters above 1300 and under 125,000 they 
>>>fit in a linked in Article.
>>>
>>> How I'm interpreting it is that if the subtitle text is below a 
>> certain amount, it'll fit in the subtitle area. So I adjusted and set 
>> the 
>> below level as 10. After I put in ~60 

[tw5] [TW5] Bob and BobEXE version 1.6.2, Une Vie Typique

2020-10-12 Thread Jed Carty
The new version of Bob and BobEXE is available in the usual place.

This has only been tested by me, so back up your data. Don't be surprised 
if there are bugs in the new features.

The BobEXE version is available here: 
https://github.com/OokTech/TW5-BobEXE/releases/tag/1.6.2
The plugin is available here: https://github.com/OokTech/TW5-Bob

Highlights:

Fixes a regression that broke wikis with spaces in the wiki name
Added in most of the rest of the HTTP api and documented it
Improves (or possibly fixes) The problems cased by Bob interacting with 
external syncing services
Improved how settings are loaded in the browser

The full changelog follows:

!! Version 1.6.2 Une Vie Typique

* Fixed a regression that would prevent websocket connections if the wiki 
had a space in its name.
* Add a `/api/status` http route that returns settings and other wiki 
information
* Switched to using the `/api/status` route to get wiki settings instead of 
the setLoggedIn websocket message to make behaviour more predictable and 
prevent some race conditions
* Lots of refactoring and cleanup on the wiki management functions in the 
back-end
* You no longer need to click a button to see the available 
plugins/themes/editions/languages on the server. If any new ones are added 
while you have a wiki open you need to either refresh the page (the reload 
button on your browser, nothing special) or refresh the settings.
* Big update to the http api routes
* Documented the http api

!! Version 1.6.1 Scream in your heart

* Changed how saveTiddler messages are handled that reduce the number of 
redundant messages. This prevents some undesired behaviour and in some 
extreme cases infinite saving loops.
** This makes some significant speed improvements, everything but saving 
many tiddlers in the browser is now close to the speed it was before 
switching to the internal syncer
* Fixed some formatting to fit better with tiddlywiki coding styles
* Fixed the basepath for the file server
* Simplified the file system monitor in a way that should prevent race 
conditions when used with external syncing services like git or dropbox
** Thanks @lineonetwo
* Fixed the name `enableBobSaver` so that the GUI can disable the saver 
correctly
* Updates to setting the modified flag for a wiki on the server to be more 
consistent
* Update action-downloadwiki documentation to show you can set which core 
to use and set the default download name
* Improved the handling of uploaded files
* Add proper handling so expired login tokens aren't sent when they 
shouldn't be
* Create a single shared method for getting login tokens

-- 
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/ea00992e-0c86-4b43-8672-efb46c97f964n%40googlegroups.com.


Re: [tw5] Re: Total Word Count?

2020-10-12 Thread Aidan Grey
Is there a way to shift that count into a variable, so that one could
calculate, say, how many pages that word count equates to?

[[the word count]divide[250]round[]]


On Mon, Oct 12, 2020 at 9:01 AM Amanda L. Goodman 
wrote:

> Thanks for the clarification!
>
> It appears to be working well on my end.
>
> On Sun, Oct 11, 2020 at 5:09 PM TW Tones  wrote:
>
>> LG,
>>
>> The first is a character count in the current tiddler, the second the
>> word count in the current tiddler.
>>
>> Sorry if I have confused you, I think I assumed too much.
>>
>> Regards
>> Tones
>>
>> On Monday, 12 October 2020 04:29:58 UTC+11, LG wrote:
>>>
>>> Hello, Tony!
>>>
>>> Well, that's what I get for trying to read when I'm so tired. I tried
>>> that and this is what I'm seeing now:
>>>
>>> 11th October 2020 at 1:16pm 359 in-post 35 Words
>>>
>>>
>>> I checked it several times against other word counters to ensure that it
>>> is accurate. I'm guessing the "359 in-post" refers to all of the TiddlyWiki
>>> code?
>>>
>>>
>>>
>>> On Sat, Oct 10, 2020 at 2:13 AM TW Tones  wrote:
>>>
 LG,

 Simply put this provides a way to place things into the subtitle of all
 tiddlers.

 One of those things is a display of *characters and words found in the
 text field of tiddlers* found defined in
 $:/PSaT/subtitle-tags/text-size

 It has the added feature that it has two numbers which it uses to
 indicate if the character counts exceed one of two values.
 In this case the two thresholds relate to posts or articles in the
 LinkedIn.com network. another example 10,000+ words I hear is what some
 essays must be for universities etc...

 Your original enquiry for was the whole of the wiki? This is the same
 but for each tiddler. Either remove the logic or add your own thresholds.
 By the way it works in edit as well :)

 Going forward the subtitle-tags.json what else can you do with it?
 Perhaps it could be designed to count words after rendering, to count
 the works in the finished tiddler after transclusions etc..


 Has this answered your Questions?

 Tones

 On Saturday, 10 October 2020 13:31:16 UTC+11, LG wrote:
>
> Hey, Tony!
>
> I'm happy to help. I'll admit that I'm not sure what I'm looking for
> here, so I'd appreciate you spelling it out for me.
>
> I did the import and read the info off the usage tiddler. I then
> created a "Subtitle Test" tiddler and wrote: Hey. This resulted in it
> appearing right next to the date (under the title) with no space between
> the time and Hey. When I added " Hey" (with no quotation marks), the
> expected and hoped for space appeared between the date and Hey.
>
> 9th October 2020 at 10:21pm  Hey.
>
>
> I'm not sure what this part means in what I should be looking for:
>
>>
>>- Are the number of characters below 1300 they fit in a linked in
>>post
>>- Are the number of characters above 1300 and under 125,000 they
>>fit in a linked in Article.
>>
>> How I'm interpreting it is that if the subtitle text is below a
> certain amount, it'll fit in the subtitle area. So I adjusted and set the
> below level as 10. After I put in ~60 dummy text and checked again, all 
> ~60
> words still showed up in the subtitle field. I'm certain that I'm not
> understanding your intentions.
>
> Best,
>
> LG
>
> On Fri, Oct 9, 2020 at 12:42 AM TW Tones  wrote:
>
>> Lg,
>>
>> I was working on a small project to create subtitle tags, basically
>> using the tag $:/tags/subtitle you can place items in the tiddler
>> subtitle.
>>
>> This text size measure sounded like an ideal candidate.
>>
>>- Using the suggestions in this thread for words and characters
>>- I also added two value tests
>>   - Are the number of characters below 1300 they fit in a linked
>>   in post
>>   - Are the number of characters above 1300 and under 125,000
>>   they fit in a linked in Article.
>>
>> If you install this JSON then open $:/PSaT/subtitle-tags/text-size
>> and you can see how I did it and adjust to you needs.
>>
>> *Note It modified the core tiddler $:/core/ui/ViewTemplate/subtitle*
>>
>> Any feedback will help me publish it.
>>
>> Regards
>> Tony
>>
>> On Monday, 5 October 2020 11:58:50 UTC+11, LG wrote:
>>>
>>> I copied all of my writing into one TW file. Is there a way to get a
>>> total word count? There are 823 tiddlers.
>>
>> --
>> 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/6acL1HS8Zws/unsubscribe.
>> To unsubscribe from this group and all its topics, send an 

[tw5] Re: Keyboard Shortcut to Save

2020-10-12 Thread Ken Gray
I actually changed it to ctl-alt-s and it works perfectly! 
thanks.

On Thursday, October 8, 2020 at 2:28:28 PM UTC-4 Ken Gray wrote:

> Awesome!  Thanks.
> odd, though.  when hit it, it opens the 'import' tiddler.  That's not 
> supposed to happen is it?
>
> On Thursday, October 8, 2020 at 1:54:00 PM UTC-4 Eric Shulman wrote:
>
>> On Thursday, October 8, 2020 at 8:31:05 AM UTC-7, Ken Gray wrote:
>>>
>>> Is there a keyboard shortcut that would do a manual save (the 'Save" 
>>> icon)?
>>>
>>
>> There isn't a pre-defined shortcut, but it is easy to add one:
>>
>> 1) Create tiddler *$:/MyShortcuts/save-file*, tagged with 
>> *$:/tags/KeyboardShortcut*, containing:
>> <$action-sendmessage $message="tm-save-wiki" />
>>
>> 2) add a field named "key", with a field value of:
>> ((save-file))
>>
>> 3) Create another tiddler, *$:/config/shortcuts/save-file*, containing:
>> ctrl-shift-S
>>
>> 4) Create another tiddler, *$:/config/ShortcutInfo/save-file*, 
>> containing:
>> {{$:/language/Buttons/SaveWiki/Hint}}
>>
>> Notes:
>> * step (1) defines the action to perform
>> * step (2) defines the binding to the keystroke definition in step (3)
>> * step (3) defines the keystroke combination to use
>> * step (4) defines the description of the shortcut
>>
>> That's it.  You can then use ctrl-shift-S to save the file.
>>
>> enjoy,
>> -e
>>
>>
>>  
>>
>

-- 
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/a2f868f8-66c3-457d-a580-46c430132588n%40googlegroups.com.


Re: [tw5] Re: Total Word Count?

2020-10-12 Thread Amanda L. Goodman
Thanks for the clarification!

It appears to be working well on my end.

On Sun, Oct 11, 2020 at 5:09 PM TW Tones  wrote:

> LG,
>
> The first is a character count in the current tiddler, the second the word
> count in the current tiddler.
>
> Sorry if I have confused you, I think I assumed too much.
>
> Regards
> Tones
>
> On Monday, 12 October 2020 04:29:58 UTC+11, LG wrote:
>>
>> Hello, Tony!
>>
>> Well, that's what I get for trying to read when I'm so tired. I tried
>> that and this is what I'm seeing now:
>>
>> 11th October 2020 at 1:16pm 359 in-post 35 Words
>>
>>
>> I checked it several times against other word counters to ensure that it
>> is accurate. I'm guessing the "359 in-post" refers to all of the TiddlyWiki
>> code?
>>
>>
>>
>> On Sat, Oct 10, 2020 at 2:13 AM TW Tones  wrote:
>>
>>> LG,
>>>
>>> Simply put this provides a way to place things into the subtitle of all
>>> tiddlers.
>>>
>>> One of those things is a display of *characters and words found in the
>>> text field of tiddlers* found defined in
>>> $:/PSaT/subtitle-tags/text-size
>>>
>>> It has the added feature that it has two numbers which it uses to
>>> indicate if the character counts exceed one of two values.
>>> In this case the two thresholds relate to posts or articles in the
>>> LinkedIn.com network. another example 10,000+ words I hear is what some
>>> essays must be for universities etc...
>>>
>>> Your original enquiry for was the whole of the wiki? This is the same
>>> but for each tiddler. Either remove the logic or add your own thresholds.
>>> By the way it works in edit as well :)
>>>
>>> Going forward the subtitle-tags.json what else can you do with it?
>>> Perhaps it could be designed to count words after rendering, to count
>>> the works in the finished tiddler after transclusions etc..
>>>
>>>
>>> Has this answered your Questions?
>>>
>>> Tones
>>>
>>> On Saturday, 10 October 2020 13:31:16 UTC+11, LG wrote:

 Hey, Tony!

 I'm happy to help. I'll admit that I'm not sure what I'm looking for
 here, so I'd appreciate you spelling it out for me.

 I did the import and read the info off the usage tiddler. I then
 created a "Subtitle Test" tiddler and wrote: Hey. This resulted in it
 appearing right next to the date (under the title) with no space between
 the time and Hey. When I added " Hey" (with no quotation marks), the
 expected and hoped for space appeared between the date and Hey.

 9th October 2020 at 10:21pm  Hey.


 I'm not sure what this part means in what I should be looking for:

>
>- Are the number of characters below 1300 they fit in a linked in
>post
>- Are the number of characters above 1300 and under 125,000 they
>fit in a linked in Article.
>
> How I'm interpreting it is that if the subtitle text is below a
 certain amount, it'll fit in the subtitle area. So I adjusted and set the
 below level as 10. After I put in ~60 dummy text and checked again, all ~60
 words still showed up in the subtitle field. I'm certain that I'm not
 understanding your intentions.

 Best,

 LG

 On Fri, Oct 9, 2020 at 12:42 AM TW Tones  wrote:

> Lg,
>
> I was working on a small project to create subtitle tags, basically
> using the tag $:/tags/subtitle you can place items in the tiddler
> subtitle.
>
> This text size measure sounded like an ideal candidate.
>
>- Using the suggestions in this thread for words and characters
>- I also added two value tests
>   - Are the number of characters below 1300 they fit in a linked
>   in post
>   - Are the number of characters above 1300 and under 125,000
>   they fit in a linked in Article.
>
> If you install this JSON then open $:/PSaT/subtitle-tags/text-size
> and you can see how I did it and adjust to you needs.
>
> *Note It modified the core tiddler $:/core/ui/ViewTemplate/subtitle*
>
> Any feedback will help me publish it.
>
> Regards
> Tony
>
> On Monday, 5 October 2020 11:58:50 UTC+11, LG wrote:
>>
>> I copied all of my writing into one TW file. Is there a way to get a
>> total word count? There are 823 tiddlers.
>
> --
> 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/6acL1HS8Zws/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/bba9c795-dd2b-4c6a-aa80-2528c3c496b4o%40googlegroups.com
> 
> .
>
 --
>>> You 

[tw5] Re: Can't save changing when i used TiddlyWiki on Node.js.

2020-10-12 Thread Jed Carty
click on the tab labeled Recent in the sidebar, yo should see links to the 
tiddlers there.

On Monday, October 12, 2020 at 9:54:24 AM UTC+2 aaa106...@gmail.com wrote:

> I have followed by tutorial step by step( 
> 
> https://github.com/Jermolene/TiddlyWiki5)
>
> tiddlywiki mynewwiki --init server
>
> tiddlywiki mynewwiki --listen
>
> However, When I finished editing the page, and reopen the 
> page(127.0.0.1:8080), the page is still in its original state.
>
> [image: Untitled.png]
>
>   And the tid.file of mynewwiki have been increased 
>
>  [image: Untitled (1).png]
>
> What should I do?
>
> Thank you for taking the time to look my questions  
>
>
>

-- 
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/b8df53ad-cfcd-434a-b5f6-0d49c63029adn%40googlegroups.com.


[tw5] Re: Images Problem in Bob

2020-10-12 Thread Jed Carty
By default Bob saves media files on the server and creates a tiddler with 
an external link to the media file, so when you open the sidebar it has to 
load all of the images from the server, which is probably where the delay 
is coming from.

The files urls are all relative so they don't work when exporting to a 
single file wiki because the url isn't the same.
If you want to make this not happen then turning off the file server will 
make the standard behavior of embedding media files in the wiki as base64 
encoded tiddlers.
It makes the wikis larger because they contain all the media, but 
everything is loaded when the wiki page loads so you don't get the same 
delay, and exporting as a single file wiki keeps all the media accessible 
in the html file.

Eventually I plan to make exporting single file wikis keep the media 
usable, either embedding the base64 encoded versions in the exported file 
or exporting a files folder that can be placed next to the html file to 
make the media accessible.

On Monday, October 12, 2020 at 9:15:28 AM UTC+2 justinehe...@gmail.com 
wrote:

> I imported png files for my tags on my TOC Sidebar and everytime I open up 
> Bob and go to my tags sidebar, it take a second before the images pop up so 
> I tried to download the HTML version of my wiki and the png images doesn't 
> appear except for SVGs.  File server is already enabled and so as save 
> media on server. So what should I do about this?
>
>
>

-- 
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/b70a169b-f59e-46e6-ba9e-24b299f7ff36n%40googlegroups.com.


[tw5] Re: What is faster: <$list> all[current]get[field]compare.. VS <$reveal>?

2020-10-12 Thread Shareda
Yeah! You are fully right! I should test and debug an example before 
posting it :-/
I really appreciate your time, and I'm sorry that you had to sort out my 
mistakes (first three of your notes). 
But without that I would not get your cool advises (the other three ones). 
All of them are useful for me! Thanks!
Especially THIS looks much more optimal and beautiful comparing to mine, so 
i take it: 
<$list filter='[{$:/hb/Scrollable!!text}prefix[yes]]'>
понедельник, 12 октября 2020 г. в 13:54:17 UTC+6, Eric Shulman: 

> On Monday, October 12, 2020 at 12:17:40 AM UTC-7, Shareda wrote:
>>
>> TW Tones, here is an example code from UI preferences:
>> <$reveal type="match" state="$:/hb/Scrollable" text="yes">
>>   <$edit-text tiddler="$:/hb/CiteDivHeight" 
>> default="600" size="1" rows="1" autoHeight="no"tag=input/> <$range 
>> tiddler="$:/hb/CiteDivHeight" min="300" max="999" 
>> default="600" increment="10" tooltip='300-999px'/>
>> 
>> Instead of this I can use List like <$list 
>> filter='[all[$:/hb/Scrollable]get[text]prefix[yes]]'> 
>> and so on.
>>
>
> Just a few notes about the example $list you posted:
>
> The all[...] operator takes one or more *keywords* (current, missing, 
> orphans, shadows, tags, tiddlers) as a parameter, not a tiddler title.
> To specify a literal tiddler title, use title[TiddlerName] or just 
> [TiddlerName], like this:
> <$list filter='[[$:/hb/Scrollable]get[text]prefix[yes]]'>
>
> In place of the combination of [TiddlerName]get[text], you could write 
> {TiddlerName!!text}, like this:
> <$list filter='[{$:/hb/Scrollable!!text}prefix[yes]]'>
>
> By default, the $list widget sets "currentTiddler" within the body of the 
> <$list>
> Thus, in your example code, the value of <> within the 
> $list body will be "yes".
>
> To leave the value of currentTiddler unchanged, you must specify an 
> alternative variable name, like this:
> <$list filter='[[$:/hb/Scrollable]get[text]prefix[yes]]' 
> variable="something">
>
> As an alternative, you could also preserve the value currentTiddler by 
> adding "then" at the end of your test, like this:
> <$list filter='[[$:/hb/Scrollable]get[text]prefix[yes]then
> ]'>
>
> Of course, if you don't use the result within the body of the $filter (as 
> in your example, which explicitly specifies tiddler="$:/hb/CiteDivHeight"), 
> then you can omit the variable="..." syntax entirely.
> Even so, it's a good convention to use a variable whenever the $list is 
> just being used as a conditional test. I like to use a name that describes 
> the purpose of the test, like this:
> <$list filter='[[$:/hb/Scrollable]get[text]prefix[yes]]' 
> variable="if_scrollable_flag_is_set">
>
> enjoy,
> -e
>
>>

-- 
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/4c48eaa2-728b-4907-ab4f-e3848c592d65n%40googlegroups.com.


[tw5] Re: Enable CORS on local node server?

2020-10-12 Thread amreus
Thank you. I could use a lot of help with everything. I'm not a programmer 
- I  just play around with things sometimes. The javascript is all very 
hacky and it would be nice to offer the cors as an option instead of having 
it hard-coded.  I can share what I have on github if you or anyone else is 
interested. 

I have not tried anything other than Firefox on Windows 10.

Here's an image of the fields I am grabbing.  I decided to hide the 
tiddlers as system tiddlers and use the caption field for display. Also 
changed to using the URL as the unique identifier instead of the html title 
tag. 

There is a major downside - since you can't catch CORS errors in 
javascript, I'm not sure how to notify the user if the bookmarking fails 
for that reason.  Specifically there is a problem with bookmarking Github 
pages - they are blocking the javascript and I get an error: " Content 
Security Policy: The page’s settings blocked the loading of a resource at 
inline (“script-src”)." I'm not sure if that can be overcome yet.

But over-all I'm happy with how well it works.  Just browse and click to 
bookmark.  Then use all of the tools available in TiddlyWiki to organize 
your bookmarks. It's slightly less convenient than the built-in bookmarks 
library but vastly more powerful. 

On Sunday, October 11, 2020 at 9:01:23 PM UTC-4 joshua@gmail.com wrote:

> Excellent work! I've been following you progress. I will definitely use 
> something like this in my Bookmarks plugin.
>
> Has this been tested in multiple browsers? I also really like how this 
> opens up the possibility to write tiddlers to a wiki-tab while your browser 
> has another tab or content in view. Mahalo (thanks)!
>
> Best,
> Joshua Fontany
> On Sunday, October 11, 2020 at 2:10:21 AM UTC-7 amreus wrote:
>
>> Thanks Joshua,
>>
>> I did figure enough of it it out to get a working bookmarklet. I had to 
>> add the right headers to the server.js file and put handler file. 
>>
>> I'm not an expert but I think it is safe enough.  The code is a 
>> bookmarklet which calls the WebServer API .  The result is I can press my 
>> bookmarklet button on any page and have a tiddler created from the web page 
>> info. Kind of cool but I'm not sure how useful it really is.  I think I'm 
>> motivated by curiosity and the challenge more than the utility. 
>>
>> Here's the bookmarklet as of now:
>>
>>   function () {
>> var e = encodeURIComponent;
>> var t = document.title;
>> var u = window.location.href;
>> var data = JSON.stringify({ "tags": "Link", "url": u });
>> var xhr = new XMLHttpRequest();
>> xhr.open('PUT', 'http://127.0.0.1:8080/recipes/default/tiddlers/' + t
>> );
>> xhr.setRequestHeader('x-requested-with', 'TiddlyWiki');
>> xhr.onreadystatechange = function () {
>>   if (xhr.readyState === 4) {
>> console.log('xhr.status: ' + xhr.status);
>> console.log('xhr.responseText: ' + xhr.responseText);
>>   }
>> };
>> xhr.send(data);
>>   })();
>>
>> On Saturday, October 10, 2020 at 11:18:36 PM UTC-4 joshua@gmail.com 
>> wrote:
>>
>>>
>>> CORS errors are a problem when the javascript you are running is being 
>>> run from within the Browser, but is trying to access a resource that is not 
>>> on the "same domain" as the document you are viewing.
>>>
>>> As long as you 100% make sure that your code is running on the _Server_ 
>>> (node.js), it can then make any modifications to the Wiki files you need. 
>>> This will then be picked up the next time the browser syncs with the server.
>>>
>>> Best,
>>> Joshua Fontany
>>> On Saturday, October 10, 2020 at 1:41:57 PM UTC-7 amreus wrote:
>>>
 Is it possible to allow Cross Origin Resource Sharing when running a 
 node wiki locally?

 I'm starting the server using the command: tiddlywiki.js  --listen




-- 
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/a3c91c66-8265-4943-8939-0dcec991cdcdn%40googlegroups.com.


[tw5] Re: avoid page refresh when I change the 'global' variable

2020-10-12 Thread Shareda
Eric, thank you for showing what I've missed about macros, that is 
important for me! I will use that with any variable/macros used only in the 
Story River. 

But in this case and on the present time links are to be refreshed 
everywhere including the Sidebar. 

Here is my custom piece of link.js. Later i'll optimize it, as it is my 
first touch of JavaScript, styles, etc..
if(!this.isMissing && !this.isShadow) {
  var toTiddler = self.wiki.getTiddler(self.to),
  toFreq = Number(toTiddler.getFieldString("freq")),
  toWeight = Number(toTiddler.getFieldString("weight")),
  highlightGain = 
Number(this.getVariable("hb-highlight-intensity-kw"));
if (toWeight || toFreq) {

domNode.setAttribute("style","font-weight:"+(highlightGain*4.99*(toFreq)+400-200*highlightGain)+";
 background:rgba("+(150+toWeight)+","+(250-toWeight)+",235,"+ 
(highlightGain*(toFreq/(150)+0.5)) + "); text-decoration: none; color: 
inherit;border-color: rgba("+(155+toWeight)+","+(255-toWeight)+",255,"+ 
(highlightGain*(toFreq/(150)+0.5)) + "); border-radius: 4px; 
border-bottom-width: 0px; border-left-width: 2px; border-right-width: 2px; 
border-top-width: 0px; padding-inline-end: 1px; padding-inline-start: 
1px;border-style: solid");
   domNode.setAttribute("data-toWeight",toWeight);
}  }


понедельник, 12 октября 2020 г. в 03:47:55 UTC+6, Eric Shulman: 

> On Sunday, October 11, 2020 at 11:51:14 AM UTC-7, Shareda wrote:
>>
>> TW Tones, yes, maybe I can do so, but.. I made this variable to get the 
>> desired value from inside of my custumized link.js widget, which redraws 
>> all internal links. The $:/hb/HighlightIntensityKW value can be changed 
>> only by RangeWidget from UI, that's what I need. It works as i need except 
>> of loosing  current scroll position. 
>>
>> Eric, can I get value of such  <> macro inside 
>> of my customized link.js by some JavaScript  expression? 
>> If so, wouldn't that make it slower (compared to using a variable)? Now i 
>> have *10 109 * linked tiddlers, and soon there will be ~ 25 000.  
>
> Now I get value by this JS line: 
>> var highlightGain = Number(this.getVariable("hb-highlight-intensity-kw"));
>
>
> Macros *are* variables.  Internally, in the TWCore, they are one and the 
> same.
>
> The only difference is that the macro declaration syntax allows you to 
> pass in
> optional parameters to be substituted into the macro value before 
> returning.
>
> See https://tiddlywiki.com/#Macros, in which Jeremy writes:
>
>> Most macros are in fact just parameterised variables 
>> .
>
> and
>
>> The dumpvariables  macro 
>> lists all variables (including macros) that are available at that position 
>> in the widget tree.
>
>
> You should be able to get the value of the macro using Javascript in your 
> customized
> link.js widget, as long as that widget is being rendered in a tiddler 
> view, since the
> macro/variable defininition is being loaded via $:/tags/Macro/View.
>
> However, I can't test this myself since I don't have your customized code.
>
> I suggest placing the <> macro somewhere just before an 
> occurrence of a link that uses your customized link.js code
> to see if it lists your hb-highlight-intensity-kw variable and value.
>
> You could also add
> console.log("highlight gain is:" + hightlightGain);
> somewhere in your link.js code, and then check the output in the browser's 
> developer console window.
>
> -e
>

-- 
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/3d1fb434-4a79-4530-890e-a691a2c6c7e6n%40googlegroups.com.


回复: [tw5] Re: What is the max limit number of tiddlers under a node-tiddlywiki server?

2020-10-12 Thread yrosgi
Thank you, Tones.

 

It is my first time hear about the skinny tiddlers and NoteSelf. Is there any 
link or detail about the skinny tiddlers and how to build and use index with 
TiddlyWiki?

 

Thanks in advance :)

 

L,

发件人: tiddlywiki@googlegroups.com  代表 TW Tones
发送时间: 2020年10月12日 5:24
收件人: TiddlyWiki 
主题: [tw5] Re: What is the max limit number of tiddlers under a node-tiddlywiki 
server?

 

yrosgi L,

 

There would be a lot of other methods need such as skinny tiddlers, etc.. to 
build something of the scale you ask. 

 

TiddlyWiki interactivity and searchability is part of its architecture, as a 
result I believe it has some design elements that may fight against such a 
large implementation.

 

Not withstanding these points and from Eric and Mario it is "software" and a 
lot can be done. for example;

*   Depending on the data you could move it into data tiddlers
*   Getting tiddlywiki to talk to an external database such as in NoteSelf
*   Building a search index of you data and searching that instead

*   If there is a lot of common words in data it can be reduced to a 
smaller index

If we knew more about the nature of the data that would consume so many 
tiddlers perhaps we could craft a solution, however just as I would not use 
Microsoft Excel for the data I have in my TiddlyWikis there is a point where 
tiddlywiki may not be suitable.

 

Regards

Tones


On Sunday, 11 October 2020 20:43:01 UTC+11, yrosgi L wrote:

 

The node-tiddlywiki store separate tiddlers into the single directory 
"tiddlers" under the server's root.

As I know that the file system such as NTFS' maximum file number is 2^32-1, 
what will happen when the number of tiddlers reaches the file system limit? 
Will the global search function still work?

 

Thanks.

-- 
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/6gl15O3FZk0/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/afb24a32-97c7-4404-ba31-c26589e728b7o%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/002801d6a06e%24293c6940%247bb53bc0%24%40gmail.com.


[tw5] Re: What is faster: <$list> all[current]get[field]compare.. VS <$reveal>?

2020-10-12 Thread Eric Shulman
On Monday, October 12, 2020 at 12:17:40 AM UTC-7, Shareda wrote:
>
> TW Tones, here is an example code from UI preferences:
> <$reveal type="match" state="$:/hb/Scrollable" text="yes">
>   <$edit-text tiddler="$:/hb/CiteDivHeight" 
> default="600" size="1" rows="1" autoHeight="no"tag=input/> <$range 
> tiddler="$:/hb/CiteDivHeight" min="300" max="999" 
> default="600" increment="10" tooltip='300-999px'/>
> 
> Instead of this I can use List like <$list 
> filter='[all[$:/hb/Scrollable]get[text]prefix[yes]]'> 
> and so on.
>

Just a few notes about the example $list you posted:

The all[...] operator takes one or more *keywords* (current, missing, 
orphans, shadows, tags, tiddlers) as a parameter, not a tiddler title.
To specify a literal tiddler title, use title[TiddlerName] or just 
[TiddlerName], like this:
<$list filter='[[$:/hb/Scrollable]get[text]prefix[yes]]'>

In place of the combination of [TiddlerName]get[text], you could write 
{TiddlerName!!text}, like this:
<$list filter='[{$:/hb/Scrollable!!text}prefix[yes]]'>

By default, the $list widget sets "currentTiddler" within the body of the 
<$list>
Thus, in your example code, the value of <> within the 
$list body will be "yes".

To leave the value of currentTiddler unchanged, you must specify an 
alternative variable name, like this:
<$list filter='[[$:/hb/Scrollable]get[text]prefix[yes]]' 
variable="something">

As an alternative, you could also preserve the value currentTiddler by 
adding "then" at the end of your test, like this:
<$list filter='[[$:/hb/Scrollable]get[text]prefix[yes]then
]'>

Of course, if you don't use the result within the body of the $filter (as 
in your example, which explicitly specifies tiddler="$:/hb/CiteDivHeight"), 
then you can omit the variable="..." syntax entirely.
Even so, it's a good convention to use a variable whenever the $list is 
just being used as a conditional test. I like to use a name that describes 
the purpose of the test, like this:
<$list filter='[[$:/hb/Scrollable]get[text]prefix[yes]]' 
variable="if_scrollable_flag_is_set">

enjoy,
-e

>

-- 
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/4a0602b0-5cfe-47c3-9062-0fd1ec556ef3o%40googlegroups.com.


[tw5] Can't save changing when i used TiddlyWiki on Node.js.

2020-10-12 Thread long xing


I have followed by tutorial step by step( 

https://github.com/Jermolene/TiddlyWiki5)

tiddlywiki mynewwiki --init server

tiddlywiki mynewwiki --listen

However, When I finished editing the page, and reopen the 
page(127.0.0.1:8080), the page is still in its original state.

[image: Untitled.png]

  And the tid.file of mynewwiki have been increased 

 [image: Untitled (1).png]

What should I do?

Thank you for taking the time to look my questions  


-- 
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/a072f1d2-9f8d-4edc-92ef-e5761b2a2d2bn%40googlegroups.com.


[tw5] Re: What is the max limit number of tiddlers under a node-tiddlywiki server?

2020-10-12 Thread yrosgi L
Hi Mario,

This question actually raising when I think and care about what case will 
cause performance issues. For example, if my wiki has 65535 tiddlers and 
each tiddler near about 128KiB, will the search box still work fine? or 
whether the wiki start time become longer?

PS: the number 2^32-1 is just a maximum I think in theory that on my disk. 

L,

在2020年10月11日星期日 UTC+8 下午7:33:35 写道:

> Hi, 
>
> What are you trying to do? ... Considering that you create 1 file per 
> second, you'd need about 68 years to create half of this number of files. 
> ... 
>
> Depending on your harddisk 1 file needs about 16/32/64kByte, even if you 
> want to store only 1 byte in it. So using 16kByte it would be about 34 
> Terrabyte of HD space, to store about 2 billion files. 
>
> So it would be really interesting, what you want to do?
>
> -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/19e677b6-3a6a-41b0-a4a3-90267676afa2n%40googlegroups.com.


[tw5] Re: What is faster: <$list> all[current]get[field]compare.. VS <$reveal>?

2020-10-12 Thread Shareda
TW Tones, here is an example code from UI preferences:
<$reveal type="match" state="$:/hb/Scrollable" text="yes">
  <$edit-text tiddler="$:/hb/CiteDivHeight" 
default="600" size="1" rows="1" autoHeight="no"tag=input/> <$range 
tiddler="$:/hb/CiteDivHeight" min="300" max="999" 
default="600" increment="10" tooltip='300-999px'/>

Instead of this I can use List like <$list 
filter='[all[$:/hb/Scrollable]get[text]prefix[yes]]'> 
and so on.

bimlas, thanks! If (or when) I face some disturbing slow down of my wiki 
then I will measure the difference and place results here! Now I prefer 
<$list>.
понедельник, 12 октября 2020 г. в 12:01:21 UTC+6, bimlas: 

> Shareda,
>
> I've researched this before too and I'm using the "list" widget because of 
> the unnecessary DOM elements of the "reveal" widget 
> . 
> There is virtually no difference in speed between them, maybe the "list" is 
> a little faster, but measure yourself: 
> https://tiddlywiki.com/#Performance%20Instrumentation
>

-- 
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/f0c51b58-fb95-4ccc-9248-d5cf9c8d69b4n%40googlegroups.com.


[tw5] Images Problem in Bob

2020-10-12 Thread jin
I imported png files for my tags on my TOC Sidebar and everytime I open up 
Bob and go to my tags sidebar, it take a second before the images pop up so 
I tried to download the HTML version of my wiki and the png images doesn't 
appear except for SVGs.  File server is already enabled and so as save 
media on server. So what should I do about this?


-- 
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/45fa9167-7241-4cfd-80d0-cb1e8d819d9an%40googlegroups.com.


[tw5] Re: What is faster: <$list> all[current]get[field]compare.. VS <$reveal>?

2020-10-12 Thread bimlas
Shareda,

I've researched this before too and I'm using the "list" widget because of 
the unnecessary DOM elements of the "reveal" widget 
. 
There is virtually no difference in speed between them, maybe the "list" is 
a little faster, but measure 
yourself: https://tiddlywiki.com/#Performance%20Instrumentation

-- 
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/4b78e74c-a612-4694-bc84-565dcbc29c7dn%40googlegroups.com.