[tw5] Re: Time Tracking in TiddlyWiki?

2020-07-25 Thread Eric Shulman
On Saturday, July 25, 2020 at 8:29:07 PM UTC-7, Eric Shulman wrote:
>
> I've just posted an update with a new tiddler:
>http://tiddlytools.com/timer.html#TiddlyTools%2FTimer%2FCountDown
>
> Coming soon: display a message when the countdown reaches 0
>

You can now enter and display a modal message when the countdown reaches 0.
Default message is "Countdown completed!"
Also, added a "reset" button to stop countdown and clear all inputs.

-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/d6691c35-ad82-4138-80fb-decc6eb4d2fao%40googlegroups.com.


[tw5] Re: Time Tracking in TiddlyWiki?

2020-07-25 Thread TW Tones
Eric,

Great stuff, One requirement may be to trigger a sound or mpeg to play?

Thanks for all your work, you are very prolific as well as helpful, always 
have being for more than a decade. Much appreciated.

Tony

On Sunday, July 26, 2020 at 1:29:07 PM UTC+10, Eric Shulman wrote:
>
> On Saturday, July 25, 2020 at 1:50:52 PM UTC-7, Mat wrote:
>>
>> I made a quick attempt to make a countdown timer (for an InstantBoss 
>>  as mentioned previously 
>> in this thread) but it didn't really work out well. Basically I took a 
>> time, e.g 10 minutes and, in a filter, subtracted the timer value. How 
>> would you propose to use your timer for this?
>>
>
> I've just posted an update with a new tiddler:
>http://tiddlytools.com/timer.html#TiddlyTools%2FTimer%2FCountDown
>
> To use it:
>
>- To display the countdown timer in another tiddler, use 
>{{||TiddlyTools/Timer/CountDown}}
>- Enter the desired hours, minutes, and seconds in the input fields.
>- The start button begins the countdown. The input fields 
>automatically update to show the time remaining.
>- The stop button pauses the countdown. You can adjust the time 
>remaining. Press start to resume the countdown.
>
> Coming soon: display a message when the countdown reaches 0
>
> Let me know if you have any additional features you want it to do.
>
> 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/76be812f-cc74-4238-aee7-2d5044f47ed4o%40googlegroups.com.


[tw5] Re: Code Pattern needed - internal flag within list

2020-07-25 Thread TW Tones
Mark

Speaking of Mohammad (From Shiraz) I suspect international politics has 
made him absent a while now, again. I hope he is OK!

Regards
Tony

On Sunday, July 26, 2020 at 1:56:35 PM UTC+10, Mark S. wrote:
>
>
> Hi Tony,
>
> I think Mohammad's *refnotes* project may do something like this.
>
> The algorithm, as I understand it is
>
>   1. Look for the first marker in the string using splitbefore
>   2. Use the result from (1) to remove the prefix from the original string
>   3. Look for the 2nd marker in the string from (2) using splitbefore. The 
> result is one of the strings you want. Output the string.
>   4. Use the result from (3) to remove any prefix from the original 
> string. That string then becomes the new "original" string, and is fed back 
> to (1) recursively.
>
> All of this could be done much more easily with PR 2963.
>
>
> On Saturday, July 25, 2020 at 6:34:11 PM UTC-7, TW Tones wrote:
>>
>> Folks,
>>
>> The following objective I believe exposes a limitation in tiddlywiki I 
>> would like to resolve; however I wish to find at least a work around for 
>> now.
>>
>> I am just writing a macro to process lines in a tiddler
>> <$tiddler tiddler=<> >
>> <$list filter="[all[current]get[text]splitregexp[\n]]" variable=line>
>>
>> 
>>  
>>
>> However inside the list, I want to process each line, 
>>
>>- However I wish to detect a start and end condition and display only 
>>the lines including and between the start and end condition.
>>- This start and end condition may occur more than once in the same 
>>tiddler.
>>- A real world example may be extracting the content between an open 
>>and close html div or section tag.
>>
>> To do this my first idea so far is 
>>
>>- setting a flag at the start of when the condition is met, 
>>- displaying each line when this flag is on
>>- and turning the flag off when the end condition is met.
>>
>> However this flag would be a variable in the traditional (non tiddlywiki 
>> sense) and I do not believe we have one in, tiddlywiki that does not 
>> require a trigger to set a text reference to that value. This is a gap I 
>> have recognised for some time but had trouble communicating.
>>
>> A second idea is to "call a sub-routine", while the condition is met, 
>>
>>- but to do this we need to have the ability to request the next line 
>>from the source tiddler
>>- We can not do this to my knowledge because the flow must return to 
>>the next item in the list that calls the subroutine.
>>
>>
>> Can anyone share a solution to this issues please?
>>
>> thanks in advance for considering this
>> TW Tones
>>
>>
>>

-- 
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/1c308202-6ebd-4585-ba5a-e506199cd426o%40googlegroups.com.


[tw5] Re: Code Pattern needed - internal flag within list

2020-07-25 Thread TW Tones
Mark,

I see split before and split after may be away to operate on a string, I 
may need to treat the whole text field as a single string, and deal with 
multiple matches.

I will explore that but it would help if we could set values and flags 
within content. Set and vars have closing statements, and macros are 
defined once.

Regards
Tony

On Sunday, July 26, 2020 at 1:56:35 PM UTC+10, Mark S. wrote:
>
>
> Hi Tony,
>
> I think Mohammad's *refnotes* project may do something like this.
>
> The algorithm, as I understand it is
>
>   1. Look for the first marker in the string using splitbefore
>   2. Use the result from (1) to remove the prefix from the original string
>   3. Look for the 2nd marker in the string from (2) using splitbefore. The 
> result is one of the strings you want. Output the string.
>   4. Use the result from (3) to remove any prefix from the original 
> string. That string then becomes the new "original" string, and is fed back 
> to (1) recursively.
>
> All of this could be done much more easily with PR 2963.
>
>
> On Saturday, July 25, 2020 at 6:34:11 PM UTC-7, TW Tones wrote:
>>
>> Folks,
>>
>> The following objective I believe exposes a limitation in tiddlywiki I 
>> would like to resolve; however I wish to find at least a work around for 
>> now.
>>
>> I am just writing a macro to process lines in a tiddler
>> <$tiddler tiddler=<> >
>> <$list filter="[all[current]get[text]splitregexp[\n]]" variable=line>
>>
>> 
>>  
>>
>> However inside the list, I want to process each line, 
>>
>>- However I wish to detect a start and end condition and display only 
>>the lines including and between the start and end condition.
>>- This start and end condition may occur more than once in the same 
>>tiddler.
>>- A real world example may be extracting the content between an open 
>>and close html div or section tag.
>>
>> To do this my first idea so far is 
>>
>>- setting a flag at the start of when the condition is met, 
>>- displaying each line when this flag is on
>>- and turning the flag off when the end condition is met.
>>
>> However this flag would be a variable in the traditional (non tiddlywiki 
>> sense) and I do not believe we have one in, tiddlywiki that does not 
>> require a trigger to set a text reference to that value. This is a gap I 
>> have recognised for some time but had trouble communicating.
>>
>> A second idea is to "call a sub-routine", while the condition is met, 
>>
>>- but to do this we need to have the ability to request the next line 
>>from the source tiddler
>>- We can not do this to my knowledge because the flow must return to 
>>the next item in the list that calls the subroutine.
>>
>>
>> Can anyone share a solution to this issues please?
>>
>> thanks in advance for considering this
>> TW Tones
>>
>>
>>

-- 
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/ff9f8197-d23f-4c2a-88b1-caf6edfb5ac2o%40googlegroups.com.


[tw5] Re: Code Pattern needed - internal flag within list

2020-07-25 Thread 'Mark S.' via TiddlyWiki

Hi Tony,

I think Mohammad's *refnotes* project may do something like this.

The algorithm, as I understand it is

  1. Look for the first marker in the string using splitbefore
  2. Use the result from (1) to remove the prefix from the original string
  3. Look for the 2nd marker in the string from (2) using splitbefore. The 
result is one of the strings you want. Output the string.
  4. Use the result from (3) to remove any prefix from the original string. 
That string then becomes the new "original" string, and is fed back to (1) 
recursively.

All of this could be done much more easily with PR 2963.


On Saturday, July 25, 2020 at 6:34:11 PM UTC-7, TW Tones wrote:
>
> Folks,
>
> The following objective I believe exposes a limitation in tiddlywiki I 
> would like to resolve; however I wish to find at least a work around for 
> now.
>
> I am just writing a macro to process lines in a tiddler
> <$tiddler tiddler=<> >
> <$list filter="[all[current]get[text]splitregexp[\n]]" variable=line>
>
> 
>  
>
> However inside the list, I want to process each line, 
>
>- However I wish to detect a start and end condition and display only 
>the lines including and between the start and end condition.
>- This start and end condition may occur more than once in the same 
>tiddler.
>- A real world example may be extracting the content between an open 
>and close html div or section tag.
>
> To do this my first idea so far is 
>
>- setting a flag at the start of when the condition is met, 
>- displaying each line when this flag is on
>- and turning the flag off when the end condition is met.
>
> However this flag would be a variable in the traditional (non tiddlywiki 
> sense) and I do not believe we have one in, tiddlywiki that does not 
> require a trigger to set a text reference to that value. This is a gap I 
> have recognised for some time but had trouble communicating.
>
> A second idea is to "call a sub-routine", while the condition is met, 
>
>- but to do this we need to have the ability to request the next line 
>from the source tiddler
>- We can not do this to my knowledge because the flow must return to 
>the next item in the list that calls the subroutine.
>
>
> Can anyone share a solution to this issues please?
>
> thanks in advance for considering this
> TW Tones
>
>
>

-- 
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/ab3878a8-5425-418a-aec7-f677c03abed7o%40googlegroups.com.


[tw5] Re: Time Tracking in TiddlyWiki?

2020-07-25 Thread Eric Shulman
On Saturday, July 25, 2020 at 1:50:52 PM UTC-7, Mat wrote:
>
> I made a quick attempt to make a countdown timer (for an InstantBoss 
>  as mentioned previously in 
> this thread) but it didn't really work out well. Basically I took a time, 
> e.g 10 minutes and, in a filter, subtracted the timer value. How would you 
> propose to use your timer for this?
>

I've just posted an update with a new tiddler:
   http://tiddlytools.com/timer.html#TiddlyTools%2FTimer%2FCountDown

To use it:

   - To display the countdown timer in another tiddler, use 
   {{||TiddlyTools/Timer/CountDown}}
   - Enter the desired hours, minutes, and seconds in the input fields.
   - The start button begins the countdown. The input fields automatically 
   update to show the time remaining.
   - The stop button pauses the countdown. You can adjust the time 
   remaining. Press start to resume the countdown.

Coming soon: display a message when the countdown reaches 0

Let me know if you have any additional features you want it to do.

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/02cd4f71-c53f-4e01-a9ec-fcd7ecac8e1co%40googlegroups.com.


[tw5] Re: Node.js and iOS

2020-07-25 Thread TW Tones
Tim,

You may know Termux and a handful of other Android apps provide the ability 
to access a linux shell and run node/tiddlywiki. 

Searching google for "IOS alternative to termux" etc... may give results

Regards
Tony

On Thursday, July 23, 2020 at 4:41:13 AM UTC+10, Tim Lockridge wrote:
>
> I'm searching for a way to use my Node.js TiddlyWiki installation on iOS. 
> I'd like to sync it through Github, and I'm comfortable using the Working 
> Copy app to commit and push changes. But I don't know how to launch a local 
> server on iOS to view the wiki in Safari. Does anyone have an app and 
> process for launching Node (and the tiddlywiki --listen command) on iOS?
>

-- 
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/05bee2ca-7b5e-4afb-b9b1-fca6e4a01439o%40googlegroups.com.


[tw5] Code Pattern needed - internal flag within list

2020-07-25 Thread TW Tones
Folks,

The following objective I believe exposes a limitation in tiddlywiki I 
would like to resolve; however I wish to find at least a work around for 
now.

I am just writing a macro to process lines in a tiddler
<$tiddler tiddler=<> >
<$list filter="[all[current]get[text]splitregexp[\n]]" variable=line>


 

However inside the list, I want to process each line, 

   - However I wish to detect a start and end condition and display only 
   the lines including and between the start and end condition.
   - This start and end condition may occur more than once in the same 
   tiddler.
   - A real world example may be extracting the content between an open and 
   close html div or section tag.

To do this my first idea so far is 

   - setting a flag at the start of when the condition is met, 
   - displaying each line when this flag is on
   - and turning the flag off when the end condition is met.

However this flag would be a variable in the traditional (non tiddlywiki 
sense) and I do not believe we have one in, tiddlywiki that does not 
require a trigger to set a text reference to that value. This is a gap I 
have recognised for some time but had trouble communicating.

A second idea is to "call a sub-routine", while the condition is met, 

   - but to do this we need to have the ability to request the next line 
   from the source tiddler
   - We can not do this to my knowledge because the flow must return to the 
   next item in the list that calls the subroutine.


Can anyone share a solution to this issues please?

thanks in advance for considering this
TW Tones


-- 
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/ecffd90e-d25b-44cf-abbe-9b25624c2e62o%40googlegroups.com.


[tw5] Re: Static html book created with TiddlyWiki

2020-07-25 Thread TW Tones
David,

Thanks for sharing a real life example. 

A Quick shareback is if you use the horizontal rule "---" or in HTML `` 
which you do a lot, you may want to use a variation of it


Which can improve readability, or delineate differently a change in section 
with a change in subsection

Regards
Tony


On Friday, July 24, 2020 at 3:15:52 AM UTC+10, David Gifford wrote:
>
> Hi all
>
> I used TiddlyWiki to create this 196 page book in Spanish as a static 
> html. https://giffmex.org/html/nt1.html. It is the course packet for one 
> of my classes.
>
> 1. The table of contents links 
> 1.1. Title... 
> lead to anchors  
>  
> which I entered manually.
>
> 2. Each section is a transcluded tiddler with the title entered manually 
> above it.
>
> 3. The titles are preceded by a page break for printing  style="page-break-after: always;">  and the anchor, and followed 
> by a link back to the table of contents  class="tiny">{{$:/core/images/home-button}}
>
> Looks cluttered on editing, but navigating back and forth from toc to 
> section and back to toc is smooth. Very light at 616kb. And each section 
> can be printed separately from the browser.
>
> Page #s are for mainly for me, since I will print it for students who 
> would prefer a printed version. Page #s correspond to printing on Firefox 
> at 90%.
>
> Not automated, and not an e-book, but I share it just to show it can be 
> done. Blessings.
>
>
>

-- 
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/fe775c43-b970-4865-ba71-2863e06212f7o%40googlegroups.com.


[tw5] Re: The-Book Chapter 10

2020-07-25 Thread Diego Mesa
Hello!

I just want to checkup on this wonderful project! Has it been completed?

On Wednesday, January 15, 2020 at 2:37:37 AM UTC-6, Luis Gonzalez wrote:
>
> After the Christmas stop I continue writing The-Book. I think is 
> important to include a little chapter with some architectural aspects of 
> Tiddlywiki.
> The attached pages contains the beginning.I saw the Tiddlywiki Hangout 10 
> to fill the pages.
>
>
> * PLEASE:*
>
> * All experts in Tiddlywiki, check the table. If there is missing or bad 
> information, please tell me.
> * What more information do you think should be included in this chapter?
>
>
>
>
> Thanks for your help.
> The-Book keep moving forward.
>

-- 
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/115e3371-9630-410c-bb5b-8ab7931b39d8o%40googlegroups.com.


[tw5] Re: Node.js and iOS

2020-07-25 Thread Diego Mesa
Bump this thread! 

On Wednesday, July 22, 2020 at 1:41:13 PM UTC-5, Tim Lockridge wrote:
>
> I'm searching for a way to use my Node.js TiddlyWiki installation on iOS. 
> I'd like to sync it through Github, and I'm comfortable using the Working 
> Copy app to commit and push changes. But I don't know how to launch a local 
> server on iOS to view the wiki in Safari. Does anyone have an app and 
> process for launching Node (and the tiddlywiki --listen command) on iOS?
>

-- 
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/4a80fc24-2346-4ba4-bf21-eb97502a9ad8o%40googlegroups.com.


Re: [tw5] Re: How can I change the default search to exact search?

2020-07-25 Thread Mostafa Hussein Omar
Thank you very much Eric. This worked like a charm and many thanks for
the Notes section. Now, I have a better understanding of how search
works on TiddlyWiki.

Best,

M.

On Sat, Jul 25, 2020 at 10:39 PM Eric Shulman  wrote:
>
> On Saturday, July 25, 2020 at 11:52:05 AM UTC-7, Mostafa Hussein Omar wrote:
>>
>> I searched this group and I found an answer to how to search for an
>> exact sentence in a tiddlywiki:
>>[!is[system]regexp:text[Hello World]]
>> Now I would like either to have this as the default behaviour of the
>> search box or to create a tiddler that has a search field that will do
>> the exact search without asking the user to enter the above syntax
>
>
> First, I suggest you check my PowerSeach "filter generator" tool, here:
>
> http://tiddlytools.com/filtergenerators.html
>
> It gives you controls to select many different filter options and construct
> the corresponding filter syntax "on the fly".
>
> This can help you experiment with filtering in general, and can often
> help you figure out your desired search syntax without a lot of typing.
>
> For your requested use-case, I suggest using:
>
> [!is[system]search:text:literal[test]sort[title]]
>
> Note the use of "search:text:literal[...]" rather than "regexp:text[...]".
> This is because the regexp[...] filter doesn't do an *exact* text search.
> Rather, it does search for a text *pattern*, using "regular expression" syntax
> (see 
> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)
>
> In any case, here's a little bit of wikitext "code" that gives you
> a custom interface using the above filter syntax:
>
> Search tiddler text for:
> <$edit-text tiddler="$:/temp/mysearch" tag="input" size="30" default="" 
> placeholder="enter search text" />
>
> <$reveal state="$:/temp/mysearch" type="nomatch" text="">
> <$count 
> filter="[!is[system]search:text:literal{$:/temp/mysearch}sort[title]]" /> 
> matches:
> <$list filter="[!is[system]search:text:literal{$:/temp/mysearch}sort[title]]">
><$link />
> 
> 
>
> Just copy/paste the above into a tiddler and you'll be all set.
>
> Notes:
> 1) $edit-text gets your input and saves it in a "temp" tiddler 
> ($:/temp/mysearch)
> 2) $reveal prevents any display when the input is blank (otherwise, you would 
> see ALL tiddlers by default!)
> 3) $count shows the number of matches found
> 4) $list actually does the search, looping over each matching result
> 5) $link shows a link to each tiddler that was found
>
> ...and, if you want to put this interface into the sidebar tabs:
> * add a tag "$:/tags/SideBar"
> * add a caption field, e.g., "My Search"
>
> Let me know how it goes...
>
> 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/5d3d37d1-c04c-4e21-a9c0-d315795d95dbo%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/CAF-efqzwrggeSu%2Bt%2BUg3PYzSu8imsPaBCOWAdMQ1emDZRu6Xyw%40mail.gmail.com.


[tw5] Re: Automatic creation of Tiddler on Save?

2020-07-25 Thread Mat
Ah, 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8061e307-2607-47d1-b081-7b15a93844f9o%40googlegroups.com.


[tw5] Re: Automatic creation of Tiddler on Save?

2020-07-25 Thread 'Mark S.' via TiddlyWiki
It's useful in the context of Stroll -- the new tiddler will automatically 
show backlinks to the "parent" tiddler.

On Saturday, July 25, 2020 at 8:34:18 AM UTC-7, Mat wrote:
>
> @AJ Ferrari wrote:
>>
>> When I save the tiddler, a new empty tiddler is created called 
>> "Restaurants"
>>
>
> I'm just curious - when is this useful, considering that the new tiddler/s 
> are just empty?
>
> IMO it would be more useful if one could add some data already at 
> definition, like e.g
>
> [[title:tags:text]] or [[title][tags][text]] or some such.
>
> In addition to creating these one would probably also want them to be 
> converted into a normal link, i.e so 
>
> [[title][tags][text]] becomes just the normal [[title]]
>
> <:-)
>

-- 
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/f73fbcb6-fdf8-49b1-be1a-f1f2440a6395o%40googlegroups.com.


[tw5] Re: Time Tracking in TiddlyWiki?

2020-07-25 Thread Mat
Eric, as noted previously, very nice stuff.

I made a quick attempt to make a countdown timer (for an InstantBoss 
 as mentioned previously in 
this thread) but it didn't really work out well. Basically I took a time, 
e.g 10 minutes and, in a filter, subtracted the timer value. How would you 
propose to use your timer for this?

Thanks.

<:-)

-- 
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/95345659-9cd7-4c3f-9db9-4f7fc59f87c9o%40googlegroups.com.


[tw5] Re: How can I change the default search to exact search?

2020-07-25 Thread Eric Shulman
On Saturday, July 25, 2020 at 11:52:05 AM UTC-7, Mostafa Hussein Omar wrote:
>
> I searched this group and I found an answer to how to search for an 
> exact sentence in a tiddlywiki: 
>[!is[system]regexp:text[Hello World]] 
> Now I would like either to have this as the default behaviour of the 
> search box or to create a tiddler that has a search field that will do 
> the exact search without asking the user to enter the above syntax
>

First, I suggest you check my PowerSeach "filter generator" tool, here:

http://tiddlytools.com/filtergenerators.html

It gives you controls to select many different filter options and construct
the corresponding filter syntax "on the fly".  

This can help you experiment with filtering in general, and can often
help you figure out your desired search syntax without a lot of typing.

For your requested use-case, I suggest using:

[!is[system]search:text:literal[test]sort[title]]

Note the use of "*search:text:literal[...]*" rather than "*regexp:text[...]*
".
This is because the regexp[...] filter doesn't do an *exact* text search.
Rather, it does search for a text *pattern*, using "regular expression" 
syntax
(see 
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
)

In any case, here's a little bit of wikitext "code" that gives you
a custom interface using the above filter syntax:

Search tiddler text for:
<$edit-text tiddler="$:/temp/mysearch" tag="input" size="30" default="" 
placeholder="enter search text" />

<$reveal state="$:/temp/mysearch" type="nomatch" text="">
<$count filter=
"[!is[system]search:text:literal{$:/temp/mysearch}sort[title]]" /> matches:<
br>
<$list filter=
"[!is[system]search:text:literal{$:/temp/mysearch}sort[title]]">
   <$link />



Just copy/paste the above into a tiddler and you'll be all set.

Notes:
1) $edit-text gets your input and saves it in a "temp" tiddler 
($:/temp/mysearch)
2) $reveal prevents any display when the input is blank (otherwise, you 
would see ALL tiddlers by default!)
3) $count shows the number of matches found
4) $list actually does the search, looping over each matching result
5) $link shows a link to each tiddler that was found

...and, if you want to put this interface into the sidebar tabs:
* add a tag "$:/tags/SideBar"
* add a caption field, e.g., "My Search"

Let me know how it goes...

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/5d3d37d1-c04c-4e21-a9c0-d315795d95dbo%40googlegroups.com.


[tw5] How can I change the default search to exact search?

2020-07-25 Thread Mostafa Hussein Omar
I searched this group and I found an answer to how to search for an
exact sentence in a tiddlywiki:

[!is[system]regexp:text[Hello World]]

Now I would like either to have this as the default behaviour of the
search box or to create a tiddler that has a search field that will do
the exact search without asking the user to enter the above syntax
(which is a little unintuitive.

Thanks in advance.

Mostafa

-- 
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/CAF-efqxzwe7RACY_aCsjhH-uv3dDm5QhXaq6tcR8xvabd4gg%2BQ%40mail.gmail.com.


[tw5] Re: [preview] UI tweaks and doodads

2020-07-25 Thread Mat
Saq Imtiaz wrote:
>
> Right click the tiddler links:
> https://saqimtiaz.github.io/sq-tw/floats.html#HelloThere 
> 
>

Very intersting and should be useful - but I don't like that the usual 
right-click browser menu (windows) is then not accessible... is it somehow 
possible to *integrate *tiddlycommands into that browser menu? Or make it 
so that this custom menu shows from e.g Ctrl+rightclick or some such?

<:-)


-- 
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/a6fcbbfa-ee1f-4c3a-b4c6-26f3a093caa4o%40googlegroups.com.


[tw5] Re: Tiddler width / Sidebar width (Theme Tweaks)

2020-07-25 Thread Mat
Did you try ctrlpanel > appearance > theme tweaks --- Fluid story/Fixed 
sidebar ?

<:-)

-- 
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/0198afbe-35a6-4f76-bfaf-39f88556c349o%40googlegroups.com.


[tw5] Re: Automatic creation of Tiddler on Save?

2020-07-25 Thread Mat
@AJ Ferrari wrote:
>
> When I save the tiddler, a new empty tiddler is created called 
> "Restaurants"
>

I'm just curious - when is this useful, considering that the new tiddler/s 
are just empty?

IMO it would be more useful if one could add some data already at 
definition, like e.g

[[title:tags:text]] or [[title][tags][text]] or some such.

In addition to creating these one would probably also want them to be 
converted into a normal link, i.e so 

[[title][tags][text]] becomes just the normal [[title]]

<:-)

-- 
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/1a0ca2a5-bbf2-4fe3-9f24-0cc943aa4fafo%40googlegroups.com.


[tw5] Re: Automatic creation of Tiddler on Save?

2020-07-25 Thread Eric Shulman
On Saturday, July 25, 2020 at 7:53:28 AM UTC-7, Ste wrote:
>
> Creating an empty tiddler if [[thing inside]] doesn't exist when you click 
> on the link is the default behaviour in tiddlywiki.


While this is true, it's not what the OP was asking.  Specifically,  he 
wrote:

"When I *save* the tiddler, a new empty tiddler is created.."

In other words, a new tiddler is created as soon as you save
the tiddler in which the missing link occurs, not when you
subsequently click on the link to the missing tiddler.

In Stroll, its done via $:/.giffmex/ui/EditTemplate, which redefines the 
save-tiddler-actions() macro like this:

\define save-tiddler-actions()
<$action-sendmessage $message="tm-add-tag" $param={{{ [
get[text]] }}}/>
<$action-deletetiddler $tiddler=<>/>
<$action-sendmessage $message="tm-add-field" $name={{{ 
[get[text]] }}} $value={{{ 
[get[text]] }}}/>
<$action-deletetiddler $tiddler=<>/>
<$action-deletetiddler $tiddler=<>/>
<$action-sendmessage $message="tm-save-tiddler"/>
<$list filter="[all[current]links[]is[missing]]"><$action-createtiddler 
$basetitle=<>/>
\end

Note the last line of the macro:
<$list filter="[all[current]links[]is[missing]]"><$action-createtiddler 
$basetitle=<>/>

When this is invoked, it uses a $list widget to scan the tiddler's links 
for any that are missing,
and then triggers $action-createtiddler for each missing tiddler title.

To add this handling to your own tiddler, copy these two tiddler 
from https://giffmex.org/stroll/stroll.html:

$:/.giffmex/ui/EditTemplate
$:/config/ui/EditTemplate


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/93db153e-2856-4565-838c-dd072f7a3903o%40googlegroups.com.


[tw5] Re: Automatic creation of Tiddler on Save?

2020-07-25 Thread AJ Ferrari
Yes - so I want to override that default behaviour and automatically create 
[[thing inside]] when I hit save.
I've seen this done in "Stroll" but would like to know how it is done.


On Saturday, July 25, 2020 at 7:53:28 AM UTC-7 Ste wrote:

> Creating an empty tiddler if [[thing inside]] doesn't exist when you click 
> on the link is the default behaviour in 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fa493a17-7034-42d2-9e8e-e647e79f44bfn%40googlegroups.com.


[tw5] Automatic creation of Tiddler on Save?

2020-07-25 Thread Ste
Creating an empty tiddler if [[thing inside]] doesn't exist when you click on 
the link is the default behaviour in 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2d4ecbf0-8620-4c3c-9709-526bca0275a7o%40googlegroups.com.


[tw5] Re: How to generate list of missing tiddlers, sorted by most references

2020-07-25 Thread Felicia Crow
Hi Eric,

I am fascinated by what is possible with tiddlywiki alone. Thanks for 
sharing your solution and letting me learn more about it.

Regards,
Felicia

On Friday, 24 July 2020 at 18:45:16 UTC+2 Eric Shulman wrote:

> On Friday, July 24, 2020 at 3:34:52 AM UTC-7, Felicia Crow wrote:
>>
>> so after playing around with filter operators and trying to find a way 
>> over a data tiddler I wrote a javascript macro I attatched below.
>> The only caveat with this is that you have to close and reopen the 
>> tiddler calling the macro due to how javascript macros are called. Maybe 
>> someone has an idea for how to reload a single tiddler.
>>
>
> Here's a version that does the same results using just wikitext instead of 
> javascript:
> \define getData()
> <$list filter="[all[missing]!has[draft.of]sort[title]]">
><$text text="[["/>{{{ 
> [backlinks[]count[]divide[1000]removeprefix[0.]] 
> }}};<><$text text="]]"/>
> 
> \end
>
> \define renderTable()
> 
> MissingTimes Referenced
> <$list filter="[enlist!sort[]]">
>
>{{{ [split[;]rest[]join[;]] }}}
><$text text={{{ 
> [split[;]first[]divide[1]] }}}/>
>
> 
> 
> \end
>
> \define renderList()
> 
> <$list filter="[enlist!sort[]]">
> {{{ [split[;]rest[]join[;]] }}} (<$text text={{{ 
> [split[;]first[]divide[1]] }}}/>)
> 
> 
> \end
>
> <$list filter="[all[missing]limit[1]]" variable="has_missing_tiddlers"
>emptyMessage="No Missing Tiddlers">
><$wikify name="missing" text=<>>
><>
>
> 
>
> I patterned the code structure similar to your javascript code.
>
> * the outermost $list checks that there are missing tiddlesr and displays 
> either "No Missing Tiddlers", or proceed to get the list of missing 
> tiddlers and show the output
> * getData() generates a list all missing tiddlers
> * each item in the list is a combination of the backlinks[]count[] 
> (zero-padded) and the missing tiddler title, separated by a semi-colon and 
> enclosed in doubled square brackets (to handle spaces in titles)
> * the results of getData() are passed through $wikify to convert the macro 
> output into an actual list of items
> * renderList() and renderTable() enlist[] all items, sorted in descending 
> order using the zero-padded count, and then splits each item back into its 
> title and count and then shows the title followed by the count
>
> 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/b9d5f7aa-bbad-4491-9fdd-f410519ff848n%40googlegroups.com.


[tw5] Automatic creation of Tiddler on Save?

2020-07-25 Thread AJ Ferrari
Sorry for the newbie question.
Is there a way to automatically create a tiddler, based on a link in an 
existing tiddler.

For example

If I have a tiddler which includes

[[Restaurants]]

When I save the tiddler, a new empty tiddler is created called "Restaurants"

I saw this done in Stroll, but wanted to know how I might do this in my 
basic Tiddler.

Perhaps there is a standalone plugin which does this?

Thanks for any help!

-- 
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/051c044e-8dfd-428d-82da-dd3da3a93e34n%40googlegroups.com.


[tw5] Re: Static html book created with TiddlyWiki

2020-07-25 Thread David Gifford
Hi digit

1) no, the export to html results in a stripped down file, so I didn't have 
to do anything special.
2) To hide the sidebar I just used the icon in the top right corner
3) The export to html also gets rid of the editing icons.

On Friday, July 24, 2020 at 11:44:33 PM UTC-5 digit...@gmail.com wrote:

> I am interested in the size as well.  An empty Stroll is like 2.6mb so I 
> am guessing you stripped out most of the system tiddlers?
>
>
> On Thursday, July 23, 2020 at 1:15:52 PM UTC-4, David Gifford wrote:
>
>> Hi all
>>
>> I used TiddlyWiki to create this 196 page book in Spanish as a static 
>> html. https://giffmex.org/html/nt1.html. It is the course packet for one 
>> of my classes.
>>
>> 1. The table of contents links 
>> 1.1. Title... 
>> lead to anchors  
>>  
>> which I entered manually.
>>
>> 2. Each section is a transcluded tiddler with the title entered manually 
>> above it.
>>
>> 3. The titles are preceded by a page break for printing > style="page-break-after: always;">  and the anchor, and followed 
>> by a link back to the table of contents > class="tiny">{{$:/core/images/home-button}}
>>
>> Looks cluttered on editing, but navigating back and forth from toc to 
>> section and back to toc is smooth. Very light at 616kb. And each section 
>> can be printed separately from the browser.
>>
>> Page #s are for mainly for me, since I will print it for students who 
>> would prefer a printed version. Page #s correspond to printing on Firefox 
>> at 90%.
>>
>> Not automated, and not an e-book, but I share it just to show it can be 
>> done. Blessings.
>>
>>
>>

-- 
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/d7d4b653-e407-42e5-aaa6-eae1d83fe988n%40googlegroups.com.


[tw5] Re: Draggable List Problems

2020-07-25 Thread PMario
Hi, 

I did test it at tiddlywiki.com ... and it works as expected. with FF 
latest.

Can you confirm, that your code doesn't work at tiddlywiki.com? If it works 
there, you must have changed something in your wiki.

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/9b67b842-dae1-4fac-bc2b-d90d514b0685o%40googlegroups.com.


[tw5] Re: Tiddler width / Sidebar width (Theme Tweaks)

2020-07-25 Thread Adrian Holbrook
I tried to tweak the width of the Story river and ended up not being able 
to click on the controls to the right hand side. Is there a simple 
explanation anywhere of how to make the Story River wider aso that I can 
make more use of the screen?

Regards

Adrian

On Sunday, April 21, 2019 at 6:54:14 AM UTC+1, S. S. wrote:
>
>
> The below relates to settings in the: Control Panel >> Appearance >> Theme 
> Tweaks
>
> It is interesting that an *empty.html* has a "*Fixed story, fluid sidebar*" 
> while tiddlywiki.com uses a "*Fluid story, fixed sidebar*"
> Though this post is not about that anomaly 
> , I hope someone will take it 
> up at some point.
>
>
> I remember that this was very confusing for me as a beginner. I tried in 
> vain to change the *Story right*, *Story width*, *Tiddler width*, & *Sidebar 
> breakpoint*, in vain, wondering why I was stupid. It never occurred to me 
> I had to change the *Sidebar layout* from "Fixed story, fluid sidebar" to 
> "Fluid story, fixed sidebar" !!
>
> It took me over 6 months before I figured out how to mimic the behaviour 
> of the TiddlyWiki on tiddlywiki.com - which I believe is a much more 
> standard layout - a small area for navigating and a big area for 
> viewing/editing.
>
> Because of the confusion I faced as a beginner, as part of the TiddlyWiki 
> for Beginners 
>  
> series I am working on trying to make the below tiddler on tiddlywiki.com 
> a little clearer.
>
> How to widen tiddlers (aka storyriver) 
> 
>
> The last line of the tiddler says:
>
> *You will also probably want to change the sidebar breakpoint to something 
>> larger than the story river, unless you don't mind the sidebar floating to 
>> the top of the page.*
>>
>
> If I am not mistaken, the actual behaviour is:
>
> *You will want to ensure the sidebar breakpoint is smaller than the screen 
> width ( {{$:/info/browser/screen/width}} px ), unless you don't mind the 
> sidebar floating to the top of the page.*
>
> Here are some of my other observations:
>
> With a: *Fixed Story, fluid sidebar*
>
> The *Story right* should be larger than the *Story width* or else you 
> will not be able to click on any sidebar areas on its left side that 
> overlap the area given to the *Story width*.
>
> The *Tiddler width* should be less than the *Story Right* or else 
> Tiddlers will overlap and cover the sidebar.
>
> Does anyone have any other tips for beginners for Tiddler Width / Sidebar 
> Width setup?
>
> Thanks!
>

-- 
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/f58a3770-7b19-4ad7-b86d-e9cd7e8c64b7o%40googlegroups.com.