[tw5] Re: add hour to field

2021-07-04 Thread Eric Shulman
<<.group-heading "String Operators">>
<<.operator-rows "[tag[Filter Operators]!tag[Order 
Operators]!tag[Mathematics Operators]tag[String Operators]!tag[Tag 
Operators]!tag[Special Operators]sort[]]">>
<<.group-heading "Mathematics Operators">>
<<.operator-rows "[tag[Filter Operators]!tag[Order 
Operators]tag[Mathematics Operators]!tag[String Operators]!tag[Tag 
Operators]!tag[Special Operators]sort[]]">>

On Sunday, July 4, 2021 at 4:22:07 PM UTC-7 Brian Radspinner wrote:

> The compare operator should be added to the Mathematics section of the Filter 
> Operators  table, I had no 
> idea it existed until I saw Eric's answer above.
>

https://tiddlywiki.com/#compare%20Operator works for both numeric and 
string comparisons, and is thus tagged as both "Mathematics Operator" and 
"String Operator".  However, in https://tiddlywiki.com/#Filter%20Operators, 
each of those tag categories excludes the all other categories, so 
"compare" does not appear in either table

-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/4e2b603b-cd67-44ba-90e9-eb6ed7172409n%40googlegroups.com.


[tw5] Re: add hour to field

2021-07-04 Thread Brian Radspinner
The compare operator should be added to the Mathematics section of the Filter 
Operators  table, I had no idea 
it existed until I saw Eric's answer above.

On Sunday, July 4, 2021 at 2:57:05 PM UTC-7 Eric Shulman wrote:

> On Sunday, July 4, 2021 at 1:09:10 PM UTC-7 mohamed...@hotmail.com wrote:
>
>> I have a filed that in a tiddler that has a date value, i would like to 
>> have button to add one hour to the date value , is this possible ?
>>
>
> By "date value", do you actually mean a full "datetime" value, which in TW 
> is stored as a 17-digit number (MMDDhhmmssXXX)?  Assuming that is the 
> case, it can be done, but it's not as simple as it may seem.
>
> For instance, if the stored datetime is 2021070413300 (i.e., 1:30pm on 
> July 4, 2021), then it is relatively easy (though not trivial) to add an 
> hour, like this:
> <$button> add an hour
> <$vars
>before={{{ [{!!stored_datetime}split[]first[8]join[]] }}}
>hour={{{ [{!!stored_datetime}split[]rest[8]first[2]join[]] }}}
>after={{{ [{!!stored_datetime}split[]rest[10]join[]] }}}>
> <$vars newhour={{{ [add[1]pad[2]] }}}>
> <$action-setfield stored_datetime={{{ 
> [addsuffixaddsuffix] }}} />
> 
> 
> 
>
> * First, break the datetime value into parts to isolate the hour number:
> ** Use split[] to break the datetime value into individual digits, and 
> join the first[8] digits to get the date portion.
> ** Use rest[8] to get the remaining digits and join the first[2] of those 
> digits to get the hour number.
> ** Use rest[10] to get the digits following the hour number, and join 
> those to get the minutes, seconds and millisecond portion.
> * Next, add 1 to the hour number and apply pad[2] to the result to ensure 
> it is 2 digits with a leading 0 if needed.
> * Then, reassemble the parts to give the new datetime value and update the 
> field value.
>
> However... *this is not sufficient to handle all possible stored_datetime 
> values*.
>
> For example, suppose that the stored datetime is 2021070423300 (i.e., 
> 11:30pm on July 4, 2021). Simply adding an hour as shown above would give 
> 2021070424300. But that is not a valid datetime value, as the hours 
> portion must be between 00 and 23.  The correct result would actually be 
> 2021070500300 (i.e., 12:30am on July 5, 2021).  Thus, we need to handle 
> "hour overflow" to set the hour number to 00 and add 1 to the day number.
>
> But... even that is not enough.  Suppose the stored datetime is 
> 2021073123300 (i.e., 11:30pm on July 31, 2021). Then adding 1 hour 
> should result in 2021080100300 (i.e., 12:30am on August 1, 2021). Thus, 
> we not only need to handle "hour overflow" as above, but also "date 
> overflow" to add 1 to the month number.
>
> Complicating this is that the number of days per month varies, so the 
> "date overflow" handling needs to take into account the specified month to 
> know how many days it has.  Further complicating this is leap years, in 
> which the number of days in February is 29 rather than 28, but only for 
> years that are divisible by 4 but not divisible by 100, unless also 
> divisible by 400.
>
> Lastly, we need also to handle "year overflow". If the stored datetime is 
> 2021123123300 (i.e., 11:30pm on December 31, 2021).  Then adding 1 hour 
> should result in 2022010100300 (i.e., 12:30am on January 1, 2022).
>
> Obviously, handling all of these issues requires some complex conditional 
> calculations.  Fortunately, *I've already tackled this problem 
> in http://tiddlytools.com/timer.html#TiddlyTools%2FTime%2FClocks 
> *.  The 
> clock_adjustForTimezone() macro takes the current datetime and adds or 
> subtracts a "timezone offset" value to give a new datetime value.  For your 
> purposes, rather than using the current datetime, you want to get the 
> stored_datetime value, and instead of using a "timezone offset", you want 
> to use a specified offset of 1 hour (i.e., "+01:00")
>
> Here's a modified version of clock_adjustForTimezone() that does what you 
> need:
> \define adjust_time()
> \whitespace trim
> 
> <$vars   ={{{ [split[]first[4]join[]] }}}>
> <$vars mm={{{ [split[]first[6]last[2]join[]]  }}}>
> <$vars dd={{{ [split[]first[8]last[2]join[]]  }}}>
> <$vars hh={{{ [split[]first[10]last[2]join[]] }}}>
> <$varsmin={{{ [split[]first[12]last[2]join[]] }}}>
> <$vars  ssxxx={{{ [split[]last[5]join[]]  }}}>
> 
> <$vars   sign={{{ [split[]first[]]  }}}>
> <$vars  offhh={{{ [split[]first[3]join[]]   }}}>
> <$vars offmin={{{ [split[]last[2]join[]addprefix] }}}>
> <$vars hh={{{ [add]   }}}>
> <$varsmin={{{ [add] }}}>
> 
> <$set name="leap" value={{{ [remainder[4]match[0]then[yes]] }}}>
> <$set name="dpm"  value="31 28 31 30 31 30 31 31 30 31 30 31"> 
> <$set name="dpm"  filter="[!match[]]" value="31 29 31 30 31 30 31 31 
> 30 31 30 

[tw5] Re: Problem with TiddlyWiki 5 after importing EverNote.

2021-07-04 Thread 'Mark S.' via TiddlyWiki
Are there images in the images directory?


On Sunday, July 4, 2021 at 2:44:43 PM UTC-7 miket...@gmail.com wrote:

> Yes it works!
> But now I understand these words :(
> "when I imported Evernote, I didn't get any images!"
>
> When exporting, Evernote removes all normal links to images. And instead 
> of them goes this:
>  hash="0b63a644a5981ba32ed511b6172605a1" height="343"
>
> And
> 
> shutterstock_56797648.jpg
> 
> en-cache://tokenKey0b63a644a5981ba32ed511b6172605a1
> 
> 
>
> In theory, the import plugin should restore this. For example, in Joplin 
> there is no such problem as it were.
>
> воскресенье, 4 июля 2021 г. в 21:20:48 UTC+3, Mark S.: 
>
>> I'm not sure why it's throwing an error. But instead of running it from 
>> the command line, you can use the kit already built into node.
>>
>> Assuming you are in the same directory as your TW file, you can create a 
>> temporary *empty* node instance which will install the *externalimages* 
>> build command for you:
>>
>> *tiddlywiki test4 --init empty*
>>
>> Then run something like:
>>
>> *tiddlywiki test4 --load tw-with-images.html --output test4 --build 
>> externalimages*
>>
>> Where *tw-with-images.html* is your source file with images. Now your 
>> new TW file will appear  in "test4" directory like:
>>
>> *test4/externalimages.html*
>> *test4/images/*
>>
>> Hopefully this will get you past the errors that occur at the command 
>> line.
>>
>> On Sunday, July 4, 2021 at 8:00:18 AM UTC-7 miket...@gmail.com wrote:
>>
>>> This is the only way it works, but I want to delete on the right one 
>>> without garbage! )))
>>> https://i.imgur.com/SCtyQFC.jpg
>>> воскресенье, 4 июля 2021 г. в 17:50:17 UTC+3, Mike Andyl: 
>>>
 https://i.imgur.com/CnyMBI4.jpg
 quotes not help me

 суббота, 3 июля 2021 г. в 19:27:31 UTC+3, Mark S.: 

> Keep in mind that those instructions assume that you have tiddlywiki 
> on node.js installed globally. 
>
> Here's a script/command line example:
>
> tiddlywiki --load tw-with-images.html  \
>--output test4 \
>--savetiddlers [is[image]] images \
>--setfield [is[image]] "_canonical_uri" \
> "$:/core/templates/canonical-uri-external-image" \
> "text/plain" \
>--setfield "[is[image]]" "text" "" "text/plain" \
>--rendertiddler "$:/core/save/all" "tw-external.html" "text/plain"
>
> where tw-with-images.html is your source file, "images" is the name of 
> the image directory, test4 is a directory where the output (images and 
> html) will go, and tw-external.html is the new TW file where images have 
> been replaced with external image links.
>
> The caveat is that I think you can only run this once against your 
> source file. I'm not sure what will happen with to images that have 
> already 
> been replaced with external uris. Likewise, double check any of your 
> source 
> image tiddlers that you have already replaced by hand with _canonical_uri 
> paths. I'm sure someone smarter than me could improve the filtering in 
> the 
> above so that it skips images that use the _canonical_uri field.
>
> Be sure to make backups before trying this!
>
> Good luck!
>
>
> On Saturday, July 3, 2021 at 3:00:43 AM UTC-7 miket...@gmail.com 
> wrote:
>
>> Can't do it, the instruction doesn't work
>> https://groups.google.com/g/tiddlywiki/c/PueCb0KGmvM
>>
>> суббота, 3 июля 2021 г. в 04:05:56 UTC+3, Mark S.: 
>>
>>> If you scroll down on that tiddler the section *Creating external 
>>> images under Node.js *explains how you can export all your images 
>>> into a separate folder using node.js. But, of course, first you have to 
>>> set 
>>> up and run TiddlyWiki on node.js. After the image files are exported 
>>> then 
>>> you can convert your node TW instance back to a single file instance.
>>>
>>> Using the new (prerelease 24?)  and the zip plugin it might be able 
>>> to come up with a solution that doesn't need node.js, but that would be 
>>> all 
>>> new territory.
>>>
>>> On Friday, July 2, 2021 at 5:11:23 PM UTC-7 miket...@gmail.com 
>>> wrote:
>>>
 436 images. But I think the problem is with several very large BMP 
 files. They even take a few minutes to load like raw text. And now I 
 want 
 to delete, and make the pictures external. 
 https://tiddlywiki.com/static/ExternalImages.html


 пятница, 2 июля 2021 г. в 23:46:44 UTC+3, Mark S.: 

> Congratulations -- when I imported Evernote, I didn't get any 
> images!
>
> I think what's happening is that your TW is jam-packed with 
> images. To verify this theory, go to the "Filter" tab of the advanced 
> search and try this filter:
>
> 

[tw5] Re: add hour to field

2021-07-04 Thread Eric Shulman
On Sunday, July 4, 2021 at 1:09:10 PM UTC-7 mohamed...@hotmail.com wrote:

> I have a filed that in a tiddler that has a date value, i would like to 
> have button to add one hour to the date value , is this possible ?
>

By "date value", do you actually mean a full "datetime" value, which in TW 
is stored as a 17-digit number (MMDDhhmmssXXX)?  Assuming that is the 
case, it can be done, but it's not as simple as it may seem.

For instance, if the stored datetime is 2021070413300 (i.e., 1:30pm on 
July 4, 2021), then it is relatively easy (though not trivial) to add an 
hour, like this:
<$button> add an hour
<$vars
   before={{{ [{!!stored_datetime}split[]first[8]join[]] }}}
   hour={{{ [{!!stored_datetime}split[]rest[8]first[2]join[]] }}}
   after={{{ [{!!stored_datetime}split[]rest[10]join[]] }}}>
<$vars newhour={{{ [add[1]pad[2]] }}}>
<$action-setfield stored_datetime={{{ 
[addsuffixaddsuffix] }}} />




* First, break the datetime value into parts to isolate the hour number:
** Use split[] to break the datetime value into individual digits, and join 
the first[8] digits to get the date portion.
** Use rest[8] to get the remaining digits and join the first[2] of those 
digits to get the hour number.
** Use rest[10] to get the digits following the hour number, and join those 
to get the minutes, seconds and millisecond portion.
* Next, add 1 to the hour number and apply pad[2] to the result to ensure 
it is 2 digits with a leading 0 if needed.
* Then, reassemble the parts to give the new datetime value and update the 
field value.

However... *this is not sufficient to handle all possible stored_datetime 
values*.

For example, suppose that the stored datetime is 2021070423300 (i.e., 
11:30pm on July 4, 2021). Simply adding an hour as shown above would give 
2021070424300. But that is not a valid datetime value, as the hours 
portion must be between 00 and 23.  The correct result would actually be 
2021070500300 (i.e., 12:30am on July 5, 2021).  Thus, we need to handle 
"hour overflow" to set the hour number to 00 and add 1 to the day number.

But... even that is not enough.  Suppose the stored datetime is 
2021073123300 (i.e., 11:30pm on July 31, 2021). Then adding 1 hour 
should result in 2021080100300 (i.e., 12:30am on August 1, 2021). Thus, 
we not only need to handle "hour overflow" as above, but also "date 
overflow" to add 1 to the month number.

Complicating this is that the number of days per month varies, so the "date 
overflow" handling needs to take into account the specified month to know 
how many days it has.  Further complicating this is leap years, in which 
the number of days in February is 29 rather than 28, but only for years 
that are divisible by 4 but not divisible by 100, unless also divisible by 
400.

Lastly, we need also to handle "year overflow". If the stored datetime is 
2021123123300 (i.e., 11:30pm on December 31, 2021).  Then adding 1 hour 
should result in 2022010100300 (i.e., 12:30am on January 1, 2022).

Obviously, handling all of these issues requires some complex conditional 
calculations.  Fortunately, *I've already tackled this problem 
in http://tiddlytools.com/timer.html#TiddlyTools%2FTime%2FClocks*.  The 
clock_adjustForTimezone() macro takes the current datetime and adds or 
subtracts a "timezone offset" value to give a new datetime value.  For your 
purposes, rather than using the current datetime, you want to get the 
stored_datetime value, and instead of using a "timezone offset", you want 
to use a specified offset of 1 hour (i.e., "+01:00")

Here's a modified version of clock_adjustForTimezone() that does what you 
need:
\define adjust_time()
\whitespace trim

<$vars   ={{{ [split[]first[4]join[]] }}}>
<$vars mm={{{ [split[]first[6]last[2]join[]]  }}}>
<$vars dd={{{ [split[]first[8]last[2]join[]]  }}}>
<$vars hh={{{ [split[]first[10]last[2]join[]] }}}>
<$varsmin={{{ [split[]first[12]last[2]join[]] }}}>
<$vars  ssxxx={{{ [split[]last[5]join[]]  }}}>

<$vars   sign={{{ [split[]first[]]  }}}>
<$vars  offhh={{{ [split[]first[3]join[]]   }}}>
<$vars offmin={{{ [split[]last[2]join[]addprefix] }}}>
<$vars hh={{{ [add]   }}}>
<$varsmin={{{ [add] }}}>

<$set name="leap" value={{{ [remainder[4]match[0]then[yes]] }}}>
<$set name="dpm"  value="31 28 31 30 31 30 31 31 30 31 30 31"> 
<$set name="dpm"  filter="[!match[]]" value="31 29 31 30 31 30 31 31 
30 31 30 31" emptyValue=<>>

<$set name="hh"   filter="[compare:integer:lt[0]]"value={{{ 
[subtract[1]]  }}} emptyValue=<>>
<$set name="hh"   filter="[compare:integer:gteq[60]]" value={{{ 
[add[1]]   }}} emptyValue=<>>
<$set name="min"  filter="[compare:integer:lt[0]]"value={{{ 
[add[60]] }}} emptyValue=<>>
<$set name="min"  filter="[compare:integer:gteq[60]]" value={{{ 
[subtract[60]]}}} emptyValue=<>>

<$set name="dd"   filter="[compare:integer:lt[0]]" value={{{ 

[tw5] Re: Problem with TiddlyWiki 5 after importing EverNote.

2021-07-04 Thread Mike Andyl
Yes it works!
But now I understand these words :(
"when I imported Evernote, I didn't get any images!"

When exporting, Evernote removes all normal links to images. And instead of 
them goes this:

shutterstock_56797648.jpg

en-cache://tokenKey0b63a644a5981ba32ed511b6172605a1



In theory, the import plugin should restore this. For example, in Joplin 
there is no such problem as it were.

воскресенье, 4 июля 2021 г. в 21:20:48 UTC+3, Mark S.: 

> I'm not sure why it's throwing an error. But instead of running it from 
> the command line, you can use the kit already built into node.
>
> Assuming you are in the same directory as your TW file, you can create a 
> temporary *empty* node instance which will install the *externalimages* 
> build command for you:
>
> *tiddlywiki test4 --init empty*
>
> Then run something like:
>
> *tiddlywiki test4 --load tw-with-images.html --output test4 --build 
> externalimages*
>
> Where *tw-with-images.html* is your source file with images. Now your new 
> TW file will appear  in "test4" directory like:
>
> *test4/externalimages.html*
> *test4/images/*
>
> Hopefully this will get you past the errors that occur at the command line.
>
> On Sunday, July 4, 2021 at 8:00:18 AM UTC-7 miket...@gmail.com wrote:
>
>> This is the only way it works, but I want to delete on the right one 
>> without garbage! )))
>> https://i.imgur.com/SCtyQFC.jpg
>> воскресенье, 4 июля 2021 г. в 17:50:17 UTC+3, Mike Andyl: 
>>
>>> https://i.imgur.com/CnyMBI4.jpg
>>> quotes not help me
>>>
>>> суббота, 3 июля 2021 г. в 19:27:31 UTC+3, Mark S.: 
>>>
 Keep in mind that those instructions assume that you have tiddlywiki on 
 node.js installed globally. 

 Here's a script/command line example:

 tiddlywiki --load tw-with-images.html  \
--output test4 \
--savetiddlers [is[image]] images \
--setfield [is[image]] "_canonical_uri" \
 "$:/core/templates/canonical-uri-external-image" \
 "text/plain" \
--setfield "[is[image]]" "text" "" "text/plain" \
--rendertiddler "$:/core/save/all" "tw-external.html" "text/plain"

 where tw-with-images.html is your source file, "images" is the name of 
 the image directory, test4 is a directory where the output (images and 
 html) will go, and tw-external.html is the new TW file where images have 
 been replaced with external image links.

 The caveat is that I think you can only run this once against your 
 source file. I'm not sure what will happen with to images that have 
 already 
 been replaced with external uris. Likewise, double check any of your 
 source 
 image tiddlers that you have already replaced by hand with _canonical_uri 
 paths. I'm sure someone smarter than me could improve the filtering in the 
 above so that it skips images that use the _canonical_uri field.

 Be sure to make backups before trying this!

 Good luck!


 On Saturday, July 3, 2021 at 3:00:43 AM UTC-7 miket...@gmail.com wrote:

> Can't do it, the instruction doesn't work
> https://groups.google.com/g/tiddlywiki/c/PueCb0KGmvM
>
> суббота, 3 июля 2021 г. в 04:05:56 UTC+3, Mark S.: 
>
>> If you scroll down on that tiddler the section *Creating external 
>> images under Node.js *explains how you can export all your images 
>> into a separate folder using node.js. But, of course, first you have to 
>> set 
>> up and run TiddlyWiki on node.js. After the image files are exported 
>> then 
>> you can convert your node TW instance back to a single file instance.
>>
>> Using the new (prerelease 24?)  and the zip plugin it might be able 
>> to come up with a solution that doesn't need node.js, but that would be 
>> all 
>> new territory.
>>
>> On Friday, July 2, 2021 at 5:11:23 PM UTC-7 miket...@gmail.com wrote:
>>
>>> 436 images. But I think the problem is with several very large BMP 
>>> files. They even take a few minutes to load like raw text. And now I 
>>> want 
>>> to delete, and make the pictures external. 
>>> https://tiddlywiki.com/static/ExternalImages.html
>>>
>>>
>>> пятница, 2 июля 2021 г. в 23:46:44 UTC+3, Mark S.: 
>>>
 Congratulations -- when I imported Evernote, I didn't get any 
 images!

 I think what's happening is that your TW is jam-packed with images. 
 To verify this theory, go to the "Filter" tab of the advanced search 
 and 
 try this filter:

 [all[tiddlers]get[type]prefix[image]count[]]

 What is the number you see?

 In the meanwhile, when using the "More" tab, avoid using the 
 "Recent" sub tab which requires a lot of rendering.





-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To 

[tw5] Re: What is this weird error in "define"?

2021-07-04 Thread Mike Andyl
And this shouldn't be restored if I canceled the changes and removed all 
the extra symbols before?

воскресенье, 4 июля 2021 г. в 16:38:25 UTC+3, Soren Bjornstad: 

> That's just how macros work in TiddlyWiki. Any pragmas (things beginning 
> with a \), including \define, have to come before all non-pragma content in 
> a tiddler.
>
> On Sunday, July 4, 2021 at 7:41:42 AM UTC-5 miket...@gmail.com wrote:
>
>> I want to make a list of pictures with an address.
>> https://i.imgur.com/zRhtrSo.jpg
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *\define 
>> image-picker2(actions,filter:"[all[tiddlers+shadows]tag[$:/tags/Image]]",subfilter:"")>  
>> class="tc-image-chooser"><$vars state-system=<> "$:/state/image-picker/system">>><$reveal type="match" text="hide" 
>> default="hide" tag="div"><$macrocall $name="image-picker-list" 
>> filter="""$filter$""" actions="""$actions$"""/><$reveal 
>> state=<> type="nomatch" text="hide" default="hide" 
>> tag="div"><$macrocall $name="image-picker-list" filter="""$filter$""" 
>> actions="""$actions$"""/>\end<$button 
>> message="tm-open-external-window" param={{!!url}}>Источник* 
>> {{!!url}}* https://tiddlywiki.com/#image-picker%20Macro 
>> <$edit-text 
>> tiddler='$:/_MyImage' tag='input' placeholder='(unset)' 
>> default=''/><$transclude tiddler={{$:/_MyImage}}/>---<$macrocall 
>> $name='image-picker2' actions="<$action-setfield $tiddler='$:/_MyImage' 
>> $value=<>/>"/>*
>>
>> But if you add something to the beginning, then everything breaks down!
>> https://i.imgur.com/6zb4df6.jpg
>>
>> And even the old code doesn't work anymore. Why? What am I doing wrong?
>
>

-- 
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/aab80a8e-b562-43dc-b7bf-b41ab9ff62d2n%40googlegroups.com.


[tw5] Re: [TW5] Open all the tiddlers with a particular tag

2021-07-04 Thread Mike Andyl
Uh, I'm completely confused about these variable symbols.
<<>>[[]]{}!!$()$
Now the button works, but its name is not set, it remains the same. How to 
deal with this?
https://i.imgur.com/qLFu2cl.jpg
воскресенье, 4 июля 2021 г. в 16:34:28 UTC+3, Soren Bjornstad: 

> This isn't the correct filter syntax for transcluding a field into the 
> filter:
>
> *<>*
>
> You probably want:
>
> *<>*
>
>
> On Sunday, July 4, 2021 at 8:24:55 AM UTC-5 miket...@gmail.com wrote:
>
>> Please tell me pls why these buttons do not work?
>>
>>
>>
>> *\define openByFilter(filter)<$button>open filtered tiddlers $filter$*
>>
>>
>>
>>
>>
>>
>>
>>
>> *<$list filter=$filter$><$action-navigate 
>> $to={{!!title}}/><$action-sendmessage 
>> $message="tm-unfold-all-tiddlers"/>\end*
>>
>>
>> *\define closeByFilter(filter)<$button>close filtered tiddlers $filter$*
>>
>>
>>
>>
>>
>>
>>
>> *<$list filter=$filter$><$action-sendmessage 
>> $message="tm-close-tiddler"/>\end*
>>
>>
>> *<$select field="target" default='(none)'>> value="null">(none)*
>> *<$list filter="[tags[]!is[system]sort[title]]">*
>>
>>
>>
>>
>>
>> *>><$view 
>> field="title"/>*
>>
>>
>> *<><> "[tag[{{!!target}}]]">>*
>>
>> пятница, 28 июля 2017 г. в 16:41:14 UTC+3, Andrew: 
>>
>>> Check out my button 
>>> http://t5a.tiddlyspot.com/#%24%3A%2Fplugins%2Fajh%2Fopenall plugin that 
>>> can be installed from my library 
>>> http://t5a.tiddlyspot.com/#Plugin%20Library
>>
>>

-- 
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/8aab0841-14be-434b-a471-4a2b8876c77en%40googlegroups.com.


[tw5] add hour to field

2021-07-04 Thread paulgilbert2000
Hi ,

I have a filed that in a tiddler that has a date value, i would like to 
have button to add one hour to the date value , is this possible ?

-- 
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/6efa682f-66c9-4c9f-933c-2872b2019a8fn%40googlegroups.com.


Re: [tw5] Re: Shiraz list-content (experimental)

2021-07-04 Thread Mark
Thank you Mohammad for all the rich possibilities in Shiraz and for 
pointing me to these list-search options!

I used this list-search macro:

<>

with this template: template/list-search/card-list

<"
text:"<$transclude field=v tag='cw'/>: //<$transclude field=vt tag='cw'/>// 
(pp. <$transclude field=pp tag='cw'/>)<$transclude field=ebsco 
tag='cw'/>"
width:"80%"
class:"shadow border-dark text-dark"
>>

It worked well to create a quick way to search for an essay or chapter 
title from all 280 essays and chapters that make up C. G. Jung's *Collected 
Works*.

[image: ListContentCW.png]

The performance so far is very good for these 280 entries.

Best wishes,

Mark

On Saturday, July 3, 2021 at 12:46:54 AM UTC-7 Mohammad wrote:

> Hi Mark,
>  It is here
>
> https://kookma.github.io/TW-Shiraz/#Tutorial%20List%20and%20Search
>
> It is stable and you can use it in your project! I recommend using Shiraz 
> instead of extracting part of it!
>
>
> Best wishes
> Mohammad
>
>
> On Sat, Jul 3, 2021 at 12:00 AM Mark  wrote:
>
>> Hi Mohammad,
>>
>> I could put this list-content macro to use in a project I'm working on. 
>> Is it available to experiment with? I could not find it at 
>> https://kookma.github.io/TW-Shiraz/
>>
>> Thanks!
>>
>> mck
>>
>> On Friday, June 4, 2021 at 9:14:28 AM UTC-7 Mohammad wrote:
>>
>>> Shiraz has a list-search which is very handy and list filtered tiddlers 
>>> with a search box lets you search in results!
>>> Shiraz has a lot of features that lets you create new tools with more 
>>> ease!
>>>
>>> I have implemented another list macro called list-content! BUT I'm not 
>>> sure if it has already been published (introduced) by another 
>>> user/developer!
>>>
>>> The list-content is actually a search box, but instead of displaying 
>>> titles, it displays the tiddler with its content!
>>>
>>> As soon as it find any results it shows
>>>
>>> 1. each result as a Card
>>> 2. The resulting tiddler is displayed with title, subtitle, tags and text
>>> 3. It is possible to have multi column result or truncate the text and 
>>> show part of text
>>>
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>> -- 
>>
> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddlywiki+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/82b849c9-0c68-4230-9e08-bec2afd3cc91n%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/c0f259ab-ad05-484c-8826-b7c7376c76f1n%40googlegroups.com.


[tw5] Re: Problem with TiddlyWiki 5 after importing EverNote.

2021-07-04 Thread 'Mark S.' via TiddlyWiki
I'm not sure why it's throwing an error. But instead of running it from the 
command line, you can use the kit already built into node.

Assuming you are in the same directory as your TW file, you can create a 
temporary *empty* node instance which will install the *externalimages* 
build command for you:

*tiddlywiki test4 --init empty*

Then run something like:

*tiddlywiki test4 --load tw-with-images.html --output test4 --build 
externalimages*

Where *tw-with-images.html* is your source file with images. Now your new 
TW file will appear  in "test4" directory like:

*test4/externalimages.html*
*test4/images/*

Hopefully this will get you past the errors that occur at the command line.

On Sunday, July 4, 2021 at 8:00:18 AM UTC-7 miket...@gmail.com wrote:

> This is the only way it works, but I want to delete on the right one 
> without garbage! )))
> https://i.imgur.com/SCtyQFC.jpg
> воскресенье, 4 июля 2021 г. в 17:50:17 UTC+3, Mike Andyl: 
>
>> https://i.imgur.com/CnyMBI4.jpg
>> quotes not help me
>>
>> суббота, 3 июля 2021 г. в 19:27:31 UTC+3, Mark S.: 
>>
>>> Keep in mind that those instructions assume that you have tiddlywiki on 
>>> node.js installed globally. 
>>>
>>> Here's a script/command line example:
>>>
>>> tiddlywiki --load tw-with-images.html  \
>>>--output test4 \
>>>--savetiddlers [is[image]] images \
>>>--setfield [is[image]] "_canonical_uri" \
>>> "$:/core/templates/canonical-uri-external-image" \
>>> "text/plain" \
>>>--setfield "[is[image]]" "text" "" "text/plain" \
>>>--rendertiddler "$:/core/save/all" "tw-external.html" "text/plain"
>>>
>>> where tw-with-images.html is your source file, "images" is the name of 
>>> the image directory, test4 is a directory where the output (images and 
>>> html) will go, and tw-external.html is the new TW file where images have 
>>> been replaced with external image links.
>>>
>>> The caveat is that I think you can only run this once against your 
>>> source file. I'm not sure what will happen with to images that have already 
>>> been replaced with external uris. Likewise, double check any of your source 
>>> image tiddlers that you have already replaced by hand with _canonical_uri 
>>> paths. I'm sure someone smarter than me could improve the filtering in the 
>>> above so that it skips images that use the _canonical_uri field.
>>>
>>> Be sure to make backups before trying this!
>>>
>>> Good luck!
>>>
>>>
>>> On Saturday, July 3, 2021 at 3:00:43 AM UTC-7 miket...@gmail.com wrote:
>>>
 Can't do it, the instruction doesn't work
 https://groups.google.com/g/tiddlywiki/c/PueCb0KGmvM

 суббота, 3 июля 2021 г. в 04:05:56 UTC+3, Mark S.: 

> If you scroll down on that tiddler the section *Creating external 
> images under Node.js *explains how you can export all your images 
> into a separate folder using node.js. But, of course, first you have to 
> set 
> up and run TiddlyWiki on node.js. After the image files are exported then 
> you can convert your node TW instance back to a single file instance.
>
> Using the new (prerelease 24?)  and the zip plugin it might be able to 
> come up with a solution that doesn't need node.js, but that would be all 
> new territory.
>
> On Friday, July 2, 2021 at 5:11:23 PM UTC-7 miket...@gmail.com wrote:
>
>> 436 images. But I think the problem is with several very large BMP 
>> files. They even take a few minutes to load like raw text. And now I 
>> want 
>> to delete, and make the pictures external. 
>> https://tiddlywiki.com/static/ExternalImages.html
>>
>>
>> пятница, 2 июля 2021 г. в 23:46:44 UTC+3, Mark S.: 
>>
>>> Congratulations -- when I imported Evernote, I didn't get any images!
>>>
>>> I think what's happening is that your TW is jam-packed with images. 
>>> To verify this theory, go to the "Filter" tab of the advanced search 
>>> and 
>>> try this filter:
>>>
>>> [all[tiddlers]get[type]prefix[image]count[]]
>>>
>>> What is the number you see?
>>>
>>> In the meanwhile, when using the "More" tab, avoid using the 
>>> "Recent" sub tab which requires a lot of rendering.
>>>
>>>
>>>
>>>

-- 
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/e87a36c2-da91-4b1c-a8e9-f317d8e46489n%40googlegroups.com.


Re: [tw5] Re: A weird request

2021-07-04 Thread David Gifford
On Sun, Jul 4, 2021, 9:36 AM ludwa6  wrote:

> Understood, Dave, about Streams integration being out-of-scope.  Am just
> hoping that Streams and Topic maps (is that what you call it? [1]) can play
> nicely side-by-side.


That would be great!

>
> To that end: have edited $:/.giffmex/ViewTemplate/Backlinks per your
> instruction, and that works nicely -thanks!
>

Phew! Glad it works!

>
> NOTE [1]:  Besides wanting a canonical name for this thing, i have to ask
> (total n00b question, but one that has haunted me for some time): what do
> we call a thing like this that installs via tag pill, but is not a plugin?
>

No official name, just an easy way to transfer multiple tiddlers

>
> I noticed on importing those two tag pills that there were more than two
> tiddlers that got installed/ updated, but since it does not appear in list
> of plugins, i have no way to turn the feature on/off, or even traceback to
> the tiddlers that make it work.
>

Yes, I should package Stroll and this hideme thing as plugins as I did for
customizer.

Tracing back to the tiddlers is easy since they all have the same tag.

If i run advanced search on string "giffmex", i get a list of some 20
> System tiddlers, and another list considerably longer of Shadow tiddlers
> (having installed so many giffmex doo-dads, including Stroll, Toggle!,
> Customizer, Sidebar plugin, BookTools, etc... Think there might be some
> house-cleaning in order here?  <8-)
>

If I had charged for these, you would have made me rich! :-)

Think of my things as individual tools, and mix and match accordingly.

Hmmm later today l will need to add relink plugin as a dependency since the
hideme v.t. uses that...

The good news is that I should be done tweaking for a while! So no more
giffmex doodads for the moment. I have a six month project and these fixes
to hideme were the last remaining hurdles. Now I will be reading and
writing and doing all I can to avoid tweaking TW.

>
>
>
> On Sunday, July 4, 2021 at 2:47:27 PM UTC+1 David Gifford wrote:
>
>> Hi Walt
>>
>> I don't intend to support integration to Streams. And you don't need to
>> use the hidebebacklinks tiddlers. But if you find it helpful but also want
>> to hide it, edit  $:/.giffmex/ViewTemplate/Backlinks and wrap it with a
>> details element:
>>
>> References
>>
>> <> "[!is[system]all[current]relink:backreferences[]!title[$:/StoryList]sort[title]]
>> -[is[current]] -[[$:/DefaultTiddlers]] -[tag[meta]]"
>> "search:title"
>> "$:/temp/list-search-example"
>> "$:/core/ui/ListItemTemplate"
>> placeholder:"" >>
>>
>> 
>>
>> David Gifford
>> Mexico team leader, Mexico City
>>
>> *Resonate Global Mission*
>> *Engaging People. Embracing Christ.*
>> A Ministry of the Christian Reformed Church
>> resonateglobalmission.org
>> ...
>>
> --
> 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/LPOIaGiXiPY/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/88634a85-26c4-4879-bc0e-6d9b6ba0985an%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/CANE%3DBFKoXPvhxhnfePtokSfdhUfxE6gGMwKOJTXBHTXfAWStTw%40mail.gmail.com.


[tw5] Re: TiddlyWiki5, Raspberry Pi and Vim: A guide for the command line aficionado

2021-07-04 Thread Saq Imtiaz
That is a very interesting setup, thank you for taking the time to share it.

My use case for notes also involves interacting with them via text editors 
and other tools as well as  having them in TiddlyWiki. What I set up a few 
years back was a combo of fswatch + cURL + the tiddlywiki server API. 
Watching for file system changes wasn't as reliable at the time so the 
setup was a bit finicky and tricky to get it right. So I've never fiddled 
with the config or even upgraded the wiki once I had it working.

The next version of TW includes a server sent events feature with which 
tiddlers propagate from the server to client almost instantly, so that will 
be my queue to upgrade that wiki. I will need to consider if moving to 
nodemon might make sense as well, I use it for TW dev at the moment and it 
does seem to work well enough.

Cheers,
Saq 

On Sunday, July 4, 2021 at 3:27:35 PM UTC+2 he...@preciouschicken.com wrote:

> I hesitate slightly in posting to this group as my use case covers such a 
> niche audience, I'm not sure how much utility there is in sharing it.  
> However in short I wanted to host a TiddlyWiki on a Raspberry Pi, create 
> tiddlers from the command line and edit them with vim.  Once I figured out 
> how to do that I thought I'd blog about it (mostly so I can retrace my 
> steps later on):
>
> https://www.preciouschicken.com/blog/posts/tiddlywiki5-raspberry-pi-guide/
>
> I'm not sure the nodemon hack will be required in future, I think I read 
> another thread suggesting that this form of updating functionality might be 
> built in (though I could have got that wrong)?
>
> Many thanks to the creator and the maintainers of TiddlyWiki.  Really 
> enjoy using and playing around with it.
>

-- 
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/c8b8fbff-198c-49b9-b82f-2714b01ab274n%40googlegroups.com.


[tw5] Re: How can you display a list at the click of a button?

2021-07-04 Thread Charlie Veniot
Oops, in the "Modal Viewer" tiddler, I forgot to add a closing bracket to 
one of the HTML elements.  The tiddler should look like this:

!!! Tagged with __''<$text text=<>/>''__

<$list filter="[tag]">
<$link/>
{{||$:/core/templates/static-tiddler}}
*


On Sunday, July 4, 2021 at 1:00:35 PM UTC-3 Charlie Veniot wrote:

> G'day Mike,
>
> I kind of like what you're trying to do.  Because I'm a big fan of modals 
> and I was in a coding mood ...
>
> If you are into the just-for-the-giggles fun of it, give the attached a 
> spin by dragging it into tiddlywiki.com
>
> Instead of a modal, all of this could make for a neat sidebar tiddler 
> (with a search field), for searching and previewing tiddlers.
>
> That was fun.  Haven't even had my first coffee of the day yet ...
>
> On Sunday, July 4, 2021 at 9:47:10 AM UTC-3 miket...@gmail.com wrote:
>
>> For the button I want to make an Action. I took the example from the help 
>> as a basis, but of course it does not work :)
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *\define my-actions()<$list filter="[tag[About]]"><$link/>   
>>  {{||$:/core/templates/static-tiddler}}\end<$button 
>> actions=<>>Click me!*
>
>

-- 
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/3e66ed8a-8641-4539-ad8d-1be1bdd81fe6n%40googlegroups.com.


[tw5] Re: How can you display a list at the click of a button?

2021-07-04 Thread Charlie Veniot
G'day Mike,

I kind of like what you're trying to do.  Because I'm a big fan of modals 
and I was in a coding mood ...

If you are into the just-for-the-giggles fun of it, give the attached a 
spin by dragging it into tiddlywiki.com

Instead of a modal, all of this could make for a neat sidebar tiddler (with 
a search field), for searching and previewing tiddlers.

That was fun.  Haven't even had my first coffee of the day yet ...

On Sunday, July 4, 2021 at 9:47:10 AM UTC-3 miket...@gmail.com wrote:

> For the button I want to make an Action. I took the example from the help 
> as a basis, but of course it does not work :)
>
>
>
>
>
>
>
>
>
>
> *\define my-actions()<$list filter="[tag[About]]"><$link/>   
>  {{||$:/core/templates/static-tiddler}}\end<$button 
> actions=<>>Click me!*

-- 
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/e4700063-c464-474b-b570-a1cd64fe4272n%40googlegroups.com.


AlternativeIdeaForMike.json
Description: application/json


[tw5] Re: How do I clear a text field?

2021-07-04 Thread Mike Andyl
https://i.imgur.com/SCtyQFC.jpg
$:/core/templates/version
Even so I can!
воскресенье, 4 июля 2021 г. в 17:49:44 UTC+3, Mike Andyl: 

> Yes, all other commands are working. I can even fill the TEXT field with a 
> template, but I cannot delete it!
> https://i.imgur.com/CnyMBI4.jpg
> quotes not help me
>
> $:/core/templates/canonical-uri-external-image
> all ok
> https://i.imgur.com/u1sJXS3.jpg
> But how delete?
>
> суббота, 3 июля 2021 г. в 18:52:49 UTC+3, Soren Bjornstad: 
>
>> I wonder if your shell is trying to interpret the [is[image]] as a glob 
>> and passing a bad filter to TiddlyWiki – have you tried putting that 
>> parameter in quotes? (It appears to work right in Bash, but not sure what 
>> shell you're using.)
>>
>> Also, can you run other commands against *mynewwiki* successfully?
>>
>> I use this command line myself in a build script that runs every day and 
>> it works fine for me, so I don't think the instructions are wrong in the 
>> general case.
>>
>> On Friday, July 2, 2021 at 6:30:39 PM UTC-5 miket...@gmail.com wrote:
>>
>>> In the ExternalImages documentation, I need to enter a command to clear 
>>> old information.
>>> *--setfield [is[image]] text "" text/plain* 
>>> https://tiddlywiki.com/static/ExternalImages.html
>>>
>>> But this command doesn't work! And it throws an error 
>>> *ERR_INVALID_ARG_TYPE*
>>> https://i.imgur.com/UThaiys.jpg
>>>
>>> This is written about the setfield command.
>>> *templatetitle* - the tiddler to wikify into the specified field. If 
>>> blank or missing then the specified *field is deleted *
>>> https://tiddlywiki.com/static/SetFieldCommand.html
>>>
>>> What should be the command to remove old information in this case?
>>>
>>

-- 
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/12f59d87-1b4d-49cf-8b73-306cbe404932n%40googlegroups.com.


[tw5] Re: Problem with TiddlyWiki 5 after importing EverNote.

2021-07-04 Thread Mike Andyl
This is the only way it works, but I want to delete on the right one 
without garbage! )))
https://i.imgur.com/SCtyQFC.jpg
воскресенье, 4 июля 2021 г. в 17:50:17 UTC+3, Mike Andyl: 

> https://i.imgur.com/CnyMBI4.jpg
> quotes not help me
>
> суббота, 3 июля 2021 г. в 19:27:31 UTC+3, Mark S.: 
>
>> Keep in mind that those instructions assume that you have tiddlywiki on 
>> node.js installed globally. 
>>
>> Here's a script/command line example:
>>
>> tiddlywiki --load tw-with-images.html  \
>>--output test4 \
>>--savetiddlers [is[image]] images \
>>--setfield [is[image]] "_canonical_uri" \
>> "$:/core/templates/canonical-uri-external-image" \
>> "text/plain" \
>>--setfield "[is[image]]" "text" "" "text/plain" \
>>--rendertiddler "$:/core/save/all" "tw-external.html" "text/plain"
>>
>> where tw-with-images.html is your source file, "images" is the name of 
>> the image directory, test4 is a directory where the output (images and 
>> html) will go, and tw-external.html is the new TW file where images have 
>> been replaced with external image links.
>>
>> The caveat is that I think you can only run this once against your source 
>> file. I'm not sure what will happen with to images that have already been 
>> replaced with external uris. Likewise, double check any of your source 
>> image tiddlers that you have already replaced by hand with _canonical_uri 
>> paths. I'm sure someone smarter than me could improve the filtering in the 
>> above so that it skips images that use the _canonical_uri field.
>>
>> Be sure to make backups before trying this!
>>
>> Good luck!
>>
>>
>> On Saturday, July 3, 2021 at 3:00:43 AM UTC-7 miket...@gmail.com wrote:
>>
>>> Can't do it, the instruction doesn't work
>>> https://groups.google.com/g/tiddlywiki/c/PueCb0KGmvM
>>>
>>> суббота, 3 июля 2021 г. в 04:05:56 UTC+3, Mark S.: 
>>>
 If you scroll down on that tiddler the section *Creating external 
 images under Node.js *explains how you can export all your images into 
 a separate folder using node.js. But, of course, first you have to set up 
 and run TiddlyWiki on node.js. After the image files are exported then you 
 can convert your node TW instance back to a single file instance.

 Using the new (prerelease 24?)  and the zip plugin it might be able to 
 come up with a solution that doesn't need node.js, but that would be all 
 new territory.

 On Friday, July 2, 2021 at 5:11:23 PM UTC-7 miket...@gmail.com wrote:

> 436 images. But I think the problem is with several very large BMP 
> files. They even take a few minutes to load like raw text. And now I want 
> to delete, and make the pictures external. 
> https://tiddlywiki.com/static/ExternalImages.html
>
>
> пятница, 2 июля 2021 г. в 23:46:44 UTC+3, Mark S.: 
>
>> Congratulations -- when I imported Evernote, I didn't get any images!
>>
>> I think what's happening is that your TW is jam-packed with images. 
>> To verify this theory, go to the "Filter" tab of the advanced search and 
>> try this filter:
>>
>> [all[tiddlers]get[type]prefix[image]count[]]
>>
>> What is the number you see?
>>
>> In the meanwhile, when using the "More" tab, avoid using the "Recent" 
>> sub tab which requires a lot of rendering.
>>
>>
>>
>>

-- 
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/f2823d96-749e-4324-bcc3-31c555e53186n%40googlegroups.com.


[tw5] Re: How do I clear a text field?

2021-07-04 Thread Mike Andyl
Yes, all other commands are working. I can even fill the TEXT field with a 
template, but I cannot delete it!
https://i.imgur.com/CnyMBI4.jpg
quotes not help me

$:/core/templates/canonical-uri-external-image
all ok
https://i.imgur.com/u1sJXS3.jpg
But how delete?

суббота, 3 июля 2021 г. в 18:52:49 UTC+3, Soren Bjornstad: 

> I wonder if your shell is trying to interpret the [is[image]] as a glob 
> and passing a bad filter to TiddlyWiki – have you tried putting that 
> parameter in quotes? (It appears to work right in Bash, but not sure what 
> shell you're using.)
>
> Also, can you run other commands against *mynewwiki* successfully?
>
> I use this command line myself in a build script that runs every day and 
> it works fine for me, so I don't think the instructions are wrong in the 
> general case.
>
> On Friday, July 2, 2021 at 6:30:39 PM UTC-5 miket...@gmail.com wrote:
>
>> In the ExternalImages documentation, I need to enter a command to clear 
>> old information.
>> *--setfield [is[image]] text "" text/plain* 
>> https://tiddlywiki.com/static/ExternalImages.html
>>
>> But this command doesn't work! And it throws an error 
>> *ERR_INVALID_ARG_TYPE*
>> https://i.imgur.com/UThaiys.jpg
>>
>> This is written about the setfield command.
>> *templatetitle* - the tiddler to wikify into the specified field. If 
>> blank or missing then the specified *field is deleted *
>> https://tiddlywiki.com/static/SetFieldCommand.html
>>
>> What should be the command to remove old information in this case?
>>
>

-- 
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/5a9cf4d0-12ea-4d76-b25c-9172b1e3b773n%40googlegroups.com.


[tw5] Re: Problem with TiddlyWiki 5 after importing EverNote.

2021-07-04 Thread Mike Andyl
https://i.imgur.com/CnyMBI4.jpg
quotes not help me

суббота, 3 июля 2021 г. в 19:27:31 UTC+3, Mark S.: 

> Keep in mind that those instructions assume that you have tiddlywiki on 
> node.js installed globally. 
>
> Here's a script/command line example:
>
> tiddlywiki --load tw-with-images.html  \
>--output test4 \
>--savetiddlers [is[image]] images \
>--setfield [is[image]] "_canonical_uri" \
> "$:/core/templates/canonical-uri-external-image" \
> "text/plain" \
>--setfield "[is[image]]" "text" "" "text/plain" \
>--rendertiddler "$:/core/save/all" "tw-external.html" "text/plain"
>
> where tw-with-images.html is your source file, "images" is the name of the 
> image directory, test4 is a directory where the output (images and html) 
> will go, and tw-external.html is the new TW file where images have been 
> replaced with external image links.
>
> The caveat is that I think you can only run this once against your source 
> file. I'm not sure what will happen with to images that have already been 
> replaced with external uris. Likewise, double check any of your source 
> image tiddlers that you have already replaced by hand with _canonical_uri 
> paths. I'm sure someone smarter than me could improve the filtering in the 
> above so that it skips images that use the _canonical_uri field.
>
> Be sure to make backups before trying this!
>
> Good luck!
>
>
> On Saturday, July 3, 2021 at 3:00:43 AM UTC-7 miket...@gmail.com wrote:
>
>> Can't do it, the instruction doesn't work
>> https://groups.google.com/g/tiddlywiki/c/PueCb0KGmvM
>>
>> суббота, 3 июля 2021 г. в 04:05:56 UTC+3, Mark S.: 
>>
>>> If you scroll down on that tiddler the section *Creating external 
>>> images under Node.js *explains how you can export all your images into 
>>> a separate folder using node.js. But, of course, first you have to set up 
>>> and run TiddlyWiki on node.js. After the image files are exported then you 
>>> can convert your node TW instance back to a single file instance.
>>>
>>> Using the new (prerelease 24?)  and the zip plugin it might be able to 
>>> come up with a solution that doesn't need node.js, but that would be all 
>>> new territory.
>>>
>>> On Friday, July 2, 2021 at 5:11:23 PM UTC-7 miket...@gmail.com wrote:
>>>
 436 images. But I think the problem is with several very large BMP 
 files. They even take a few minutes to load like raw text. And now I want 
 to delete, and make the pictures external. 
 https://tiddlywiki.com/static/ExternalImages.html


 пятница, 2 июля 2021 г. в 23:46:44 UTC+3, Mark S.: 

> Congratulations -- when I imported Evernote, I didn't get any images!
>
> I think what's happening is that your TW is jam-packed with images. To 
> verify this theory, go to the "Filter" tab of the advanced search and try 
> this filter:
>
> [all[tiddlers]get[type]prefix[image]count[]]
>
> What is the number you see?
>
> In the meanwhile, when using the "More" tab, avoid using the "Recent" 
> sub tab which requires a lot of rendering.
>
>
>
>

-- 
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/606829f6-bd0a-41d9-bb5c-43a994aada60n%40googlegroups.com.


Re: [tw5] Re: A weird request

2021-07-04 Thread ludwa6
Understood, Dave, about Streams integration being out-of-scope.  Am just 
hoping that Streams and Topic maps (is that what you call it? [1]) can play 
nicely side-by-side. 

To that end: have edited $:/.giffmex/ViewTemplate/Backlinks per your 
instruction, and that works nicely -thanks!

NOTE [1]:  Besides wanting a canonical name for this thing, i have to ask 
(total n00b question, but one that has haunted me for some time): what do 
we call a thing like this that installs via tag pill, but is not a plugin?  
I noticed on importing those two tag pills that there were more than two 
tiddlers that got installed/ updated, but since it does not appear in list 
of plugins, i have no way to turn the feature on/off, or even traceback to 
the tiddlers that make it work.  
If i run advanced search on string "giffmex", i get a list of some 20 
System tiddlers, and another list considerably longer of Shadow tiddlers 
(having installed so many giffmex doo-dads, including Stroll, Toggle!, 
Customizer, Sidebar plugin, BookTools, etc... Think there might be some 
house-cleaning in order here?  <8-)



On Sunday, July 4, 2021 at 2:47:27 PM UTC+1 David Gifford wrote:

> Hi Walt
>
> I don't intend to support integration to Streams. And you don't need to 
> use the hidebebacklinks tiddlers. But if you find it helpful but also want 
> to hide it, edit  $:/.giffmex/ViewTemplate/Backlinks and wrap it with a 
> details element:
>
> References
>
> < "[!is[system]all[current]relink:backreferences[]!title[$:/StoryList]sort[title]]
>  
> -[is[current]] -[[$:/DefaultTiddlers]] -[tag[meta]]"
> "search:title"
> "$:/temp/list-search-example"
> "$:/core/ui/ListItemTemplate"
> placeholder:"" >>
>
> 
>
> David Gifford
> Mexico team leader, Mexico City
>
> *Resonate Global Mission*
> *Engaging People. Embracing Christ.*
> A Ministry of the Christian Reformed Church
> resonateglobalmission.org
> ...
>

-- 
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/88634a85-26c4-4879-bc0e-6d9b6ba0985an%40googlegroups.com.


Re: [tw5] Re: A weird request

2021-07-04 Thread David Gifford
Hi Walt

I don't intend to support integration to Streams. And you don't need to use
the hidebebacklinks tiddlers. But if you find it helpful but also want to
hide it, edit  $:/.giffmex/ViewTemplate/Backlinks and wrap it with a
details element:

References

<>



David Gifford
Mexico team leader, Mexico City

*Resonate Global Mission*
*Engaging People. Embracing Christ.*
A Ministry of the Christian Reformed Church
resonateglobalmission.org



On Sun, Jul 4, 2021 at 7:31 AM ludwa6  wrote:

> OOPS: i have just noticed that the filter feature (that came with
> "hidemebacklinks" pill, i guess?), when used on tiddlers that have Streams
> attached, presents a list (sometimes quite long!) of all the node-tiddlers
> attached.  This is the case even on tiddlers where i have not invoke the
> macro.
> Is there any way to hide this filter feature?
>
> On Sunday, July 4, 2021 at 1:07:23 PM UTC+1 ludwa6 wrote:
>
>> Pretty nifty, @Dave; have installed, so i can discover how best to use
>> this thing (1st test: a page of notes on "Dave's HideMe thingy" :-)
>>
>> In fact: as i am considering this an experimental feature -tho it does
>> look like a nice way to implement footnotes, source references & comments,
>> etc., i'll only know for sure with more experience- i would appreciate if
>> all tiddlers created via this feature could be tagged automatically (as
>> hidden, HideMe, HM, something like that), to enable post-processing of the
>> lot in some way after the fact.  Does that make sense to you, anyone?
>>
>> /walt
>>
>> On Saturday, July 3, 2021 at 7:21:18 PM UTC+1 David Gifford wrote:
>>
>>> Okay, here you go, an empty template with basic instructions and
>>> examples and a way to download. Mileage may vary on the CSS.
>>> https://giffmex.org/experiments/topicmaps.template.html. Try it and
>>> tell me what you think.
>>>
>>> On Saturday, July 3, 2021 at 12:10:05 PM UTC-5 David Gifford wrote:
>>>
 No whittling needed. My actual view template is a list-search, so I can
 search and filter results. I will put up a sample file in a moment.




 On Sat, Jul 3, 2021 at 11:11 AM Charlie Veniot 
 wrote:

> With some fancy footwork, maybe a little extra filtering can whittle
> down the results to the sweet spot, so that all are not included.
> Something to figure out on a case-by-case basis?
>
>
> On Saturday, July 3, 2021 at 11:36:45 AM UTC-3 Flibbles wrote:
>
>> I was just about to remark to the same effect. Backreferences only
>> includes links with string values, nothing else. But Relink has 
>> something a
>> little more powerful.
>>
>> You have a tiddler "$:/.giffmex/ViewTemplate/Backlinks", If you
>> change its contents to:
>>
>> <> filter:"[!is[system]all[current]relink:backreferences[]!title[$:/StoryList]sort[title]]">>
>>
>> Then it will include all the references to a given tiddler at the
>> bottom of that tiddler. Downside: It will include them ALL. So tags, 
>> lists,
>> macros, references, transclusions. All will get listed there.
>>
>> On Saturday, July 3, 2021 at 10:33:29 AM UTC-4 cj.v...@gmail.com
>> wrote:
>>
>>> On Saturday, July 3, 2021 at 11:24:56 AM UTC-3 David Gifford wrote:
>>>
>>>
 Here is an example: Open  Acts exegesis
 .
 If you click the link in that tiddler to go to
 Acts
 17 general
 
  ,
 you will see there is no link back to Acts exegesis at the bottom of 
 the
 tiddler.


>>> Looking at Acts 17 general, click on info, and click on Relink
>>> references tab.  Relink gives a backlink to Acts exegesis.  Just a 
>>> matter
>>> of including Relink references to the standard TiddlyWiki backlinks.
>>>
>> --
>
 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/LPOIaGiXiPY/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/a7813b9c-3904-48c1-a27a-8c4a635047b9n%40googlegroups.com
> 
> .
>
 --
> 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/LPOIaGiXiPY/unsubscribe.
> To unsubscribe from this group 

[tw5] Re: What is this weird error in "define"?

2021-07-04 Thread Soren Bjornstad
That's just how macros work in TiddlyWiki. Any pragmas (things beginning 
with a \), including \define, have to come before all non-pragma content in 
a tiddler.

On Sunday, July 4, 2021 at 7:41:42 AM UTC-5 miket...@gmail.com wrote:

> I want to make a list of pictures with an address.
> https://i.imgur.com/zRhtrSo.jpg
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *\define 
> image-picker2(actions,filter:"[all[tiddlers+shadows]tag[$:/tags/Image]]",subfilter:"")  
> class="tc-image-chooser"><$vars state-system=< "$:/state/image-picker/system">>><$reveal type="match" text="hide" 
> default="hide" tag="div"><$macrocall $name="image-picker-list" 
> filter="""$filter$""" actions="""$actions$"""/><$reveal 
> state=<> type="nomatch" text="hide" default="hide" 
> tag="div"><$macrocall $name="image-picker-list" filter="""$filter$""" 
> actions="""$actions$"""/>\end<$button 
> message="tm-open-external-window" param={{!!url}}>Источник* 
> {{!!url}}* https://tiddlywiki.com/#image-picker%20Macro 
> <$edit-text 
> tiddler='$:/_MyImage' tag='input' placeholder='(unset)' 
> default=''/><$transclude tiddler={{$:/_MyImage}}/>---<$macrocall 
> $name='image-picker2' actions="<$action-setfield $tiddler='$:/_MyImage' 
> $value=<>/>"/>*
>
> But if you add something to the beginning, then everything breaks down!
> https://i.imgur.com/6zb4df6.jpg
>
> And even the old code doesn't work anymore. Why? What am I doing wrong?

-- 
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/a1940dc8-9daf-4720-b00f-417c816a0582n%40googlegroups.com.


[tw5] Re: Menubar Customization / Sticky Titles

2021-07-04 Thread Soren Bjornstad
I don't use the menubar plugin, but I did add a custom top bar of my own 
and got this working, so I'm guessing the same thing would work here. Edit 
the shadow tiddler $:/themes/tiddlywiki/vanilla/sticky. In the rule 
.tc-tiddler-title, change the *top* property to however tall the menu bar 
is.
 
On Saturday, July 3, 2021 at 5:20:32 PM UTC-5 miket...@gmail.com wrote:

> How did you solve this problem? I also ran into it and I haven’t gotten 
> anything good yet.
> The panel overlaps the buttons I want.
> https://i.imgur.com/86gVY7s.jpg
> понедельник, 1 июня 2020 г. в 13:54:53 UTC+3, Stobot: 
>
>> Birthe - thanks, the padding setting you suggested worked great. 
>>
>

-- 
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/6095d190-0f94-42b3-b17c-f06e8ecb07bcn%40googlegroups.com.


[tw5] Re: [TW5] Open all the tiddlers with a particular tag

2021-07-04 Thread Soren Bjornstad
This isn't the correct filter syntax for transcluding a field into the 
filter:

*<>*

You probably want:

*<>*


On Sunday, July 4, 2021 at 8:24:55 AM UTC-5 miket...@gmail.com wrote:

> Please tell me pls why these buttons do not work?
>
>
>
> *\define openByFilter(filter)<$button>open filtered tiddlers $filter$*
>
>
>
>
>
>
>
>
> *<$list filter=$filter$><$action-navigate 
> $to={{!!title}}/><$action-sendmessage 
> $message="tm-unfold-all-tiddlers"/>\end*
>
>
> *\define closeByFilter(filter)<$button>close filtered tiddlers $filter$*
>
>
>
>
>
>
>
> *<$list filter=$filter$><$action-sendmessage 
> $message="tm-close-tiddler"/>\end*
>
>
> *<$select field="target" default='(none)'> value="null">(none)*
> *<$list filter="[tags[]!is[system]sort[title]]">*
>
>
>
>
>
> *>><$view 
> field="title"/>*
>
>
> *<>< "[tag[{{!!target}}]]">>*
>
> пятница, 28 июля 2017 г. в 16:41:14 UTC+3, Andrew: 
>
>> Check out my button 
>> http://t5a.tiddlyspot.com/#%24%3A%2Fplugins%2Fajh%2Fopenall plugin that 
>> can be installed from my library 
>> http://t5a.tiddlyspot.com/#Plugin%20Library
>
>

-- 
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/640972d0-0d68-4842-a910-cffde504f67cn%40googlegroups.com.


[tw5] Re: [TW5] Open all the tiddlers with a particular tag

2021-07-04 Thread Mike Andyl
Please tell me pls why these buttons do not work?





























*\define openByFilter(filter)<$button>open filtered tiddlers $filter$<$list 
filter=$filter$><$action-navigate $to={{!!title}}/><$action-sendmessage 
$message="tm-unfold-all-tiddlers"/>\end\define 
closeByFilter(filter)<$button>close filtered tiddlers $filter$<$list 
filter=$filter$><$action-sendmessage 
$message="tm-close-tiddler"/>\end<$select field="target" 
default='(none)'>(none)<$list 
filter="[tags[]!is[system]sort[title]]">>><$view 
field="title"/><><>*

пятница, 28 июля 2017 г. в 16:41:14 UTC+3, Andrew: 

> Check out my button 
> http://t5a.tiddlyspot.com/#%24%3A%2Fplugins%2Fajh%2Fopenall plugin that 
> can be installed from my library 
> http://t5a.tiddlyspot.com/#Plugin%20Library

-- 
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/fb2ded06-5ca8-48de-a9ea-ecf988fa0e1cn%40googlegroups.com.


[tw5] Re: How can you display a list at the click of a button?

2021-07-04 Thread Soren Bjornstad
Mike,

An action cannot directly contain wikitext that should appear -- it can 
generally only contain action widgets (there are a few exceptions, like you 
can use a list widget to create a bunch of actions matching some pattern). 
The general pattern for creating a button that hides/shows content is to 
create a field that contains information about whether or not to show the 
content, then use a $reveal or $list widget to control whether it appears. 
For instance, to use a field called "show-content" on the current tiddler 
to control the display:

\define show-actions() <$action-setfield show-content="yes"/>
\define hide-actions() <$action-setfield show-content="no"/>

<$reveal state="show-content" type="match" text="yes">
  <$list filter="[tag[About]]">
<$link/>
{{||$:/core/templates/static-tiddler}}
  
  <$button actions=<>>Hide me again

<$reveal state="!!show-content" type="nomatch" text="yes">
  <$button actions=<>>
Click me!
  


(Note that unlike in your example, I've included an action and button to 
hide the content again. You can of course take that out if you don't want 
it...but the only way to get the content to go away again will be to go in 
and manually change the field on the current tiddler.)

You might also like to use a temporary tiddler, rather than a field on the 
current tiddler, to store whether the content should be open. If so, you 
would do something like:

\define show-actions() <$action-setfield $tiddler=<> show-content="yes"/>

<$reveal state=<> type="match" 
text="yes">

<> may not be necessary depending on your use case -- it prevents 
name collisions if you use this as a template on multiple tiddlers 
(otherwise, clicking the "show" button on one tiddler that uses the 
template will result in the content showing on all of them).

More information: Hiding and Showing Things 
 (Grok 
TiddlyWiki), action widgets  (TW 
docs), $reveal widget  (TW docs), qualify 
macro  (Grok TiddlyWiki).
On Sunday, July 4, 2021 at 7:47:10 AM UTC-5 miket...@gmail.com wrote:

> For the button I want to make an Action. I took the example from the help 
> as a basis, but of course it does not work :)
>
>
>
>
>
>
>
>
>
>
> *\define my-actions()<$list filter="[tag[About]]"><$link/>   
>  {{||$:/core/templates/static-tiddler}}\end<$button 
> actions=<>>Click me!*

-- 
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/5f8b9f90-8c60-4225-9873-a59dcfdd2ce5n%40googlegroups.com.


[tw5] TiddlyWiki5, Raspberry Pi and Vim: A guide for the command line aficionado

2021-07-04 Thread Precious Chicken
I hesitate slightly in posting to this group as my use case covers such a 
niche audience, I'm not sure how much utility there is in sharing it.  
However in short I wanted to host a TiddlyWiki on a Raspberry Pi, create 
tiddlers from the command line and edit them with vim.  Once I figured out 
how to do that I thought I'd blog about it (mostly so I can retrace my 
steps later on):

https://www.preciouschicken.com/blog/posts/tiddlywiki5-raspberry-pi-guide/

I'm not sure the nodemon hack will be required in future, I think I read 
another thread suggesting that this form of updating functionality might be 
built in (though I could have got that wrong)?

Many thanks to the creator and the maintainers of TiddlyWiki.  Really enjoy 
using and playing around with it.

-- 
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/3a387c99-0fc0-4576-8d15-30a2a8fe8e32n%40googlegroups.com.


[tw5] Re: Streams : "strange behaviour" when transcluding a root tiddler

2021-07-04 Thread ludwa6
Nice; works like a charm. Thanks, @Saq!   /walt

On Sunday, July 4, 2021 at 1:43:47 PM UTC+1 saq.i...@gmail.com wrote:

> Or alternatively this is probably faster:
>
> {{{ [has[stream-list]!has[parent]] }}}
>
>
> On Sunday, July 4, 2021 at 2:38:22 PM UTC+2 Saq Imtiaz wrote:
>
>> @Walt
>>  
>>
>>> Puts me to wonder (not exactly on-topic, but related): is there some 
>>> such simple script i could plug into a tiddler to display a list of all the 
>>> other tiddlers that have any n>0 number of nodes (i.e. Streams) attached?
>>>
>>

-- 
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/60275acc-527f-48e1-a910-a00842ad51c6n%40googlegroups.com.


[tw5] Re: Streams : "strange behaviour" when transcluding a root tiddler

2021-07-04 Thread ludwa6
That is some advanced Streams voodoo, @Tones -stuff i am tempted to try, 
but will instead bookmark for later, once i have a bit more fluency w/ the 
basics.  
Something to look forward to; thanks for sharing, mate!

/walt

On Sunday, July 4, 2021 at 12:48:54 PM UTC+1 TW Tones wrote:

> Post script;
>
> The above seems to work even if you set the  
> $:/config/sq/streams/new-node-title to $:/s/< 0hh:0mm:0ss XXX">>
> As I have done, so the nodes do not appear in the  Recent tab, and are 
> somewhat divorced from there parent tiddler (except in the streams fields)
>
> When I want a stream node to become more prominent, regular tiddler, for 
> search and reuse,  I use streams to rename the node to a regular tiddler 
> name, and the relink plugin does the work.
>
> Next, I would like to be able to assign a tag to stream nodes so I can 
> turn them into tasks and references, glossary items etc...
>
> Regards
> Tones
>
> On Sunday, 4 July 2021 at 21:18:48 UTC+10 TW Tones wrote:
>
>> ludwa6,
>>
>> This lists all my streams in my wiki, to do as you ask
>>
>> <$list 
>> filter="[all[]has[stream-type]splitbefore[/]removesuffix[/]has[title]sort[]]">
>>
>> 
>>
>> Basically if there is a streams node for a tiddler it will have the 
>> stream-type field, Then assuming your parent tiddler (dose not have "/" in 
>> its title) all before the / is the title, but you need to remove the "/.
>>
>> Tonesa
>>
>>
>> On Saturday, 3 July 2021 at 19:47:46 UTC+10 ludwa6 wrote:
>>
>>> That's an interesting UseCase, @FrD -and a powerful affordance, @Saq.  
>>> Love it!
>>> Puts me to wonder (not exactly on-topic, but related): is there some 
>>> such simple script i could plug into a tiddler to display a list of all the 
>>> other tiddlers that have any n>0 number of nodes (i.e. Streams) attached?
>>>
>>> /walt
>>>
>> ... 

-- 
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/75aef67e-e827-42c4-ab98-cebdd8a0f1bcn%40googlegroups.com.


[tw5] What is this weird error in "define"?

2021-07-04 Thread Mike Andyl
I want to make a list of pictures with an address.
https://i.imgur.com/zRhtrSo.jpg



























*\define 
image-picker2(actions,filter:"[all[tiddlers+shadows]tag[$:/tags/Image]]",subfilter:"")<$vars state-system=<>><$reveal type="match" text="hide" 
default="hide" tag="div"><$macrocall $name="image-picker-list" 
filter="""$filter$""" actions="""$actions$"""/><$reveal 
state=<> type="nomatch" text="hide" default="hide" 
tag="div"><$macrocall $name="image-picker-list" filter="""$filter$""" 
actions="""$actions$"""/>\end<$button 
message="tm-open-external-window" param={{!!url}}>Источник* 
{{!!url}}* https://tiddlywiki.com/#image-picker%20Macro<$edit-text 
tiddler='$:/_MyImage' tag='input' placeholder='(unset)' 
default=''/><$transclude tiddler={{$:/_MyImage}}/>---<$macrocall 
$name='image-picker2' actions="<$action-setfield $tiddler='$:/_MyImage' 
$value=<>/>"/>*

But if you add something to the beginning, then everything breaks down!
https://i.imgur.com/6zb4df6.jpg

And even the old code doesn't work anymore. Why? What am I doing wrong?

-- 
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/5c88d302-6ecb-4b26-87dd-2340ef2484aan%40googlegroups.com.


[tw5] How can you display a list at the click of a button?

2021-07-04 Thread Mike Andyl
For the button I want to make an Action. I took the example from the help 
as a basis, but of course it does not work :)










*\define my-actions()<$list filter="[tag[About]]"><$link/>   
 {{||$:/core/templates/static-tiddler}}\end<$button 
actions=<>>Click me!*

-- 
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/625856df-b477-4033-a1a1-7fb4782c5a35n%40googlegroups.com.


[tw5] Re: Streams : "strange behaviour" when transcluding a root tiddler

2021-07-04 Thread Saq Imtiaz
Or alternatively this is probably faster:

{{{ [has[stream-list]!has[parent]] }}}

On Sunday, July 4, 2021 at 2:38:22 PM UTC+2 Saq Imtiaz wrote:

> @Walt
>  
>
>> Puts me to wonder (not exactly on-topic, but related): is there some such 
>> simple script i could plug into a tiddler to display a list of all the 
>> other tiddlers that have any n>0 number of nodes (i.e. Streams) attached?
>>
>>
> {{{ [has[stream-list]get-stream-root[]] }}}
>
>

-- 
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/64c59be2-0e0d-417f-9b81-522b0ee77e51n%40googlegroups.com.


[tw5] Re: Streams : "strange behaviour" when transcluding a root tiddler

2021-07-04 Thread Saq Imtiaz
@Walt
 

> Puts me to wonder (not exactly on-topic, but related): is there some such 
> simple script i could plug into a tiddler to display a list of all the 
> other tiddlers that have any n>0 number of nodes (i.e. Streams) attached?
>
>
{{{ [has[stream-list]get-stream-root[]] }}}

-- 
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/141771cb-81cd-4fa0-a7f7-01bc3e39dc0fn%40googlegroups.com.


Re: [tw5] Re: A weird request

2021-07-04 Thread ludwa6
OOPS: i have just noticed that the filter feature (that came with 
"hidemebacklinks" pill, i guess?), when used on tiddlers that have Streams 
attached, presents a list (sometimes quite long!) of all the node-tiddlers 
attached.  This is the case even on tiddlers where i have not invoke the 
macro.
Is there any way to hide this filter feature? 

On Sunday, July 4, 2021 at 1:07:23 PM UTC+1 ludwa6 wrote:

> Pretty nifty, @Dave; have installed, so i can discover how best to use 
> this thing (1st test: a page of notes on "Dave's HideMe thingy" :-) 
>
> In fact: as i am considering this an experimental feature -tho it does 
> look like a nice way to implement footnotes, source references & comments, 
> etc., i'll only know for sure with more experience- i would appreciate if 
> all tiddlers created via this feature could be tagged automatically (as 
> hidden, HideMe, HM, something like that), to enable post-processing of the 
> lot in some way after the fact.  Does that make sense to you, anyone?
>
> /walt
>
> On Saturday, July 3, 2021 at 7:21:18 PM UTC+1 David Gifford wrote:
>
>> Okay, here you go, an empty template with basic instructions and examples 
>> and a way to download. Mileage may vary on the CSS. 
>> https://giffmex.org/experiments/topicmaps.template.html. Try it and tell 
>> me what you think.
>>
>> On Saturday, July 3, 2021 at 12:10:05 PM UTC-5 David Gifford wrote:
>>
>>> No whittling needed. My actual view template is a list-search, so I can 
>>> search and filter results. I will put up a sample file in a moment.
>>>
>>>
>>>
>>>
>>> On Sat, Jul 3, 2021 at 11:11 AM Charlie Veniot  
>>> wrote:
>>>
 With some fancy footwork, maybe a little extra filtering can whittle 
 down the results to the sweet spot, so that all are not included.  
 Something to figure out on a case-by-case basis?
   

 On Saturday, July 3, 2021 at 11:36:45 AM UTC-3 Flibbles wrote:

> I was just about to remark to the same effect. Backreferences only 
> includes links with string values, nothing else. But Relink has something 
> a 
> little more powerful.
>
> You have a tiddler "$:/.giffmex/ViewTemplate/Backlinks", If you change 
> its contents to:
>
> < filter:"[!is[system]all[current]relink:backreferences[]!title[$:/StoryList]sort[title]]">>
>
> Then it will include all the references to a given tiddler at the 
> bottom of that tiddler. Downside: It will include them ALL. So tags, 
> lists, 
> macros, references, transclusions. All will get listed there.
>
> On Saturday, July 3, 2021 at 10:33:29 AM UTC-4 cj.v...@gmail.com 
> wrote:
>
>> On Saturday, July 3, 2021 at 11:24:56 AM UTC-3 David Gifford wrote:
>>  
>>
>>> Here is an example: Open  Acts exegesis 
>>> . 
>>> If you click the link in that tiddler to go to 
>>> Acts
>>>  
>>> 17 general 
>>> 
>>>  , 
>>> you will see there is no link back to Acts exegesis at the bottom of 
>>> the 
>>> tiddler.
>>>
>>>
>> Looking at Acts 17 general, click on info, and click on Relink 
>> references tab.  Relink gives a backlink to Acts exegesis.  Just a 
>> matter 
>> of including Relink references to the standard TiddlyWiki backlinks.
>>
> -- 

>>> 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/LPOIaGiXiPY/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/a7813b9c-3904-48c1-a27a-8c4a635047b9n%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/b80d3625-db11-47d2-b1ec-66d722a4c0a9n%40googlegroups.com.


Re: [tw5] Re: A weird request

2021-07-04 Thread David Gifford
I have updated this:

1) I reinstated the double quotes in the macro, because single quotes are
often used such as apostrophe-s in tiddler titles, and this will break the
macro
2) I reinserted the 'edit' button to modals, so users can open the tiddler
from the modal. And also because links in tiddlers aren't openable when
seen in a modal.

Walt, and anyone else who tried it: just go back to
https://giffmex.org/experiments/topicmaps.template.htm
l , refresh your
browser, and drag the hideme tag into your file again.

Also Walt: the macro does not in itself create tiddlers, so there is
nothing special about the tiddlers accessed from it. You can do a simple
search for hideme and that will call up any tiddlers in which you have used
the macro.

Blessings!




On Sun, Jul 4, 2021 at 7:07 AM ludwa6  wrote:

> Pretty nifty, @Dave; have installed, so i can discover how best to use
> this thing (1st test: a page of notes on "Dave's HideMe thingy" :-)
>
> In fact: as i am considering this an experimental feature -tho it does
> look like a nice way to implement footnotes, source references & comments,
> etc., i'll only know for sure with more experience- i would appreciate if
> all tiddlers created via this feature could be tagged automatically (as
> hidden, HideMe, HM, something like that), to enable post-processing of the
> lot in some way after the fact.  Does that make sense to you, anyone?
>
> /walt
>
> On Saturday, July 3, 2021 at 7:21:18 PM UTC+1 David Gifford wrote:
>
>> Okay, here you go, an empty template with basic instructions and examples
>> and a way to download. Mileage may vary on the CSS.
>> https://giffmex.org/experiments/topicmaps.template.html. Try it and tell
>> me what you think.
>>
>> On Saturday, July 3, 2021 at 12:10:05 PM UTC-5 David Gifford wrote:
>>
>>> No whittling needed. My actual view template is a list-search, so I can
>>> search and filter results. I will put up a sample file in a moment.
>>>
>>>
>>>
>>>
>>> On Sat, Jul 3, 2021 at 11:11 AM Charlie Veniot 
>>> wrote:
>>>
 With some fancy footwork, maybe a little extra filtering can whittle
 down the results to the sweet spot, so that all are not included.
 Something to figure out on a case-by-case basis?


 On Saturday, July 3, 2021 at 11:36:45 AM UTC-3 Flibbles wrote:

> I was just about to remark to the same effect. Backreferences only
> includes links with string values, nothing else. But Relink has something 
> a
> little more powerful.
>
> You have a tiddler "$:/.giffmex/ViewTemplate/Backlinks", If you change
> its contents to:
>
> < filter:"[!is[system]all[current]relink:backreferences[]!title[$:/StoryList]sort[title]]">>
>
> Then it will include all the references to a given tiddler at the
> bottom of that tiddler. Downside: It will include them ALL. So tags, 
> lists,
> macros, references, transclusions. All will get listed there.
>
> On Saturday, July 3, 2021 at 10:33:29 AM UTC-4 cj.v...@gmail.com
> wrote:
>
>> On Saturday, July 3, 2021 at 11:24:56 AM UTC-3 David Gifford wrote:
>>
>>
>>> Here is an example: Open  Acts exegesis
>>> .
>>> If you click the link in that tiddler to go to
>>> Acts
>>> 17 general
>>> 
>>>  ,
>>> you will see there is no link back to Acts exegesis at the bottom of the
>>> tiddler.
>>>
>>>
>> Looking at Acts 17 general, click on info, and click on Relink
>> references tab.  Relink gives a backlink to Acts exegesis.  Just a matter
>> of including Relink references to the standard TiddlyWiki backlinks.
>>
> --

>>> 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/LPOIaGiXiPY/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/a7813b9c-3904-48c1-a27a-8c4a635047b9n%40googlegroups.com
 
 .

>>> --
> 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/LPOIaGiXiPY/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
> 

Re: [tw5] Re: A weird request

2021-07-04 Thread ludwa6
Pretty nifty, @Dave; have installed, so i can discover how best to use this 
thing (1st test: a page of notes on "Dave's HideMe thingy" :-) 

In fact: as i am considering this an experimental feature -tho it does look 
like a nice way to implement footnotes, source references & comments, etc., 
i'll only know for sure with more experience- i would appreciate if all 
tiddlers created via this feature could be tagged automatically (as hidden, 
HideMe, HM, something like that), to enable post-processing of the lot in 
some way after the fact.  Does that make sense to you, anyone?

/walt

On Saturday, July 3, 2021 at 7:21:18 PM UTC+1 David Gifford wrote:

> Okay, here you go, an empty template with basic instructions and examples 
> and a way to download. Mileage may vary on the CSS. 
> https://giffmex.org/experiments/topicmaps.template.html. Try it and tell 
> me what you think.
>
> On Saturday, July 3, 2021 at 12:10:05 PM UTC-5 David Gifford wrote:
>
>> No whittling needed. My actual view template is a list-search, so I can 
>> search and filter results. I will put up a sample file in a moment.
>>
>>
>>
>>
>> On Sat, Jul 3, 2021 at 11:11 AM Charlie Veniot  wrote:
>>
>>> With some fancy footwork, maybe a little extra filtering can whittle 
>>> down the results to the sweet spot, so that all are not included.  
>>> Something to figure out on a case-by-case basis?
>>>   
>>>
>>> On Saturday, July 3, 2021 at 11:36:45 AM UTC-3 Flibbles wrote:
>>>
 I was just about to remark to the same effect. Backreferences only 
 includes links with string values, nothing else. But Relink has something 
 a 
 little more powerful.

 You have a tiddler "$:/.giffmex/ViewTemplate/Backlinks", If you change 
 its contents to:

 <>>> filter:"[!is[system]all[current]relink:backreferences[]!title[$:/StoryList]sort[title]]">>

 Then it will include all the references to a given tiddler at the 
 bottom of that tiddler. Downside: It will include them ALL. So tags, 
 lists, 
 macros, references, transclusions. All will get listed there.

 On Saturday, July 3, 2021 at 10:33:29 AM UTC-4 cj.v...@gmail.com wrote:

> On Saturday, July 3, 2021 at 11:24:56 AM UTC-3 David Gifford wrote:
>  
>
>> Here is an example: Open  Acts exegesis 
>> . 
>> If you click the link in that tiddler to go to 
>> Acts
>>  
>> 17 general 
>>  
>> , 
>> you will see there is no link back to Acts exegesis at the bottom of the 
>> tiddler.
>>
>>
> Looking at Acts 17 general, click on info, and click on Relink 
> references tab.  Relink gives a backlink to Acts exegesis.  Just a matter 
> of including Relink references to the standard TiddlyWiki backlinks.
>
 -- 
>>>
>> 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/LPOIaGiXiPY/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/a7813b9c-3904-48c1-a27a-8c4a635047b9n%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/ed13e1e2-84fe-4fb0-898d-dbf7b8009a49n%40googlegroups.com.


[tw5] Re: How do I send a newline character from a button?

2021-07-04 Thread TW Tones
The pre-release boasts a new operator that may help here

https://tiddlywiki.com/prerelease/#charcode%20Operator

Tones


On Sunday, 4 July 2021 at 00:37:31 UTC+10 Eric Shulman wrote:

> On Saturday, July 3, 2021 at 6:08:35 AM UTC-7 miket...@gmail.com wrote:
>
>> Let's say I have a code for a button:
>> <$button>
>> <$action-sendmessage $message="tm-new-tiddler"
>> text='Line 1 Line 2'
>> />
>> New
>> 
>> How can I split the lines so that in the editor they would be in a couple 
>> of lines, and not one?
>
>
> Symbolic newlines such as "\r\n" are not supported within parameter 
> values, but you *can* embed *actual* newlines in the parameter value, 
> like this:
> <$action-sendmessage $message="tm-new-tiddler"
> text='Line 1
> Line 2'/>
>
> 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/873c0a3e-e468-4848-974d-4f93c093c902n%40googlegroups.com.


[tw5] Re: Streams : "strange behaviour" when transcluding a root tiddler

2021-07-04 Thread TW Tones
Post script;

The above seems to work even if you set the  
$:/config/sq/streams/new-node-title to $:/s/<>
As I have done, so the nodes do not appear in the  Recent tab, and are 
somewhat divorced from there parent tiddler (except in the streams fields)

When I want a stream node to become more prominent, regular tiddler, for 
search and reuse,  I use streams to rename the node to a regular tiddler 
name, and the relink plugin does the work.

Next, I would like to be able to assign a tag to stream nodes so I can turn 
them into tasks and references, glossary items etc...

Regards
Tones

On Sunday, 4 July 2021 at 21:18:48 UTC+10 TW Tones wrote:

> ludwa6,
>
> This lists all my streams in my wiki, to do as you ask
>
> <$list 
> filter="[all[]has[stream-type]splitbefore[/]removesuffix[/]has[title]sort[]]">
>
> 
>
> Basically if there is a streams node for a tiddler it will have the 
> stream-type field, Then assuming your parent tiddler (dose not have "/" in 
> its title) all before the / is the title, but you need to remove the "/.
>
> Tonesa
>
>
> On Saturday, 3 July 2021 at 19:47:46 UTC+10 ludwa6 wrote:
>
>> That's an interesting UseCase, @FrD -and a powerful affordance, @Saq.  
>> Love it!
>> Puts me to wonder (not exactly on-topic, but related): is there some such 
>> simple script i could plug into a tiddler to display a list of all the 
>> other tiddlers that have any n>0 number of nodes (i.e. Streams) attached?
>>
>> /walt
>>
>> On Friday, July 2, 2021 at 9:55:17 PM UTC+1 FrD wrote:
>>
>>> Thanks !
>>>
>>> It works perfectly.
>>>
>>> Best regards
>>> FrD
>>>
>>> Le vendredi 2 juillet 2021 à 22:25:02 UTC+2, saq.i...@gmail.com a 
>>> écrit :
>>>
 Since the nodes are separate tiddlers, they don't show up with a normal 
 transclusion.
 You need to transclude through a template: 

 {{TiddlerTitleHere||$:/plugins/sq/streams/nodes-list-template}}

 On Friday, July 2, 2021 at 9:27:45 PM UTC+2 FrD wrote:

> Hi (specially Saq) !
>
> Thank you Saq for your fine piece of sofware. Its works flawlessly for 
> my occasionnal note taking (or organizing).
> Recently I've being trying to organize notes from watching a video.
> I wanted to transclude in a tiddler, below the video, the root tiddler 
> of my notes : {{Personal Notes for Class 01}}. And nothing shows.
> Maybe I missed something from the documentation ...
> I've tried on your demo site to transclude the tiddler "Streams 0.2 
> improvements" inside a new tiddler and same problem. The only tiddlers 
> that 
> are showing as transclusions are the "leaf" tiddlers.
>
> Is there a way to make a root tiddler appear when transcluded ?
>
> Thanks in advance
>
> Best regards
> FrD
>


-- 
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/ef834142-4a9b-43c6-ad3f-0087b6d995fdn%40googlegroups.com.


[tw5] Re: What's the issue with IDs again?

2021-07-04 Thread TW Tones
MArt,

With my recently developed use of arbitrary html tags for more sliders I 
needed to make use of an ID, Which I pass to A macro to toggle the state 
(via CSS). I have some possible approach's

   - Let the author take control of the uniqueness, easy as below methods
   - Use a functional prefix like m1 or more1
  - Create a custom list in reverse order so it is easy to see the next 
  available, do this by searching for and possibly detecting reuse.
   - Since the current tiddler is a unique key use it or a uniquid issued 
   on demand to prefix the id name with the current tiddler.
  - Then with the  the suffix you use you need only ensure uniqueness 
  within the tiddler and  for the ID, and this is a logical necessity.
   - Build a editor too bar to add content that requires a unique ID and 
   determine the next unique number as you do so.
   - Also you can use a class on one or more tiddlers, and manipulating 
   their css will affect all tiddler with the same class, but that may not be 
   an issue.

By the way this only arises because html is designed effectively for a page 
at a time, even a "whole document" at a time, yet tiddlywiki is a single 
html "document" but our documents are tiddlers and we can have an unlimited 
number of them at a time, on the screen at the same time.

I have not tested it but what happens when you use duplicate ID's?, nothing 
if the tiddler is not open?

Your idea was deleted?

Tones

On Saturday, 3 July 2021 at 09:55:09 UTC+10 Mat wrote:

> Much appreciated Mario. What a great reply! (did you even create that 
> example? Just for me???)
>
> So does the "ID issue" for "elements" only concern HTML elements then? I 
> just posted an idea on gh:
> https://github.com/Jermolene/TiddlyWiki5/discussions/5844
>
> <:-)
>
>
> On Saturday, July 3, 2021 at 1:04:37 AM UTC+2 PMario wrote:
>
>> On Friday, July 2, 2021 at 6:56:58 PM UTC+2 Mat wrote:
>>
>>> In HTML one can apply an ID attribute to objects. I know this is not 
>>> possible in TW... but I don't get why. Can someone explain why this is not 
>>> possible or not appropriate, please.
>>
>>
>> Hi Mat, 
>>
>> It is possible to use IDs with TW. ... BUT it won't be reliable. ... 
>>
>> HTML element IDs are per definition unique. But with TW can't guarantee 
>> this uniqueness  since we have transclusions. So in the TW story-river it 
>> can happen that an ID is visible 2 or more times. 
>>
>> The CSS definitions will most likely work. BUT depending on the browser 
>> implementation we can not guarantee a consistent behaviour for all 
>> elements. 
>>
>> Have a look at this jsFiddle: https://jsfiddle.net/fLcdq7ut/17/  
>>
>> The HTML code is like this:
>>
>> 
>> 
>>   getElementById example
>> 
>> 
>>   Some ID text here
>>   Some classed text here
>>
>>   blue
>>   red
>>   
>>   Some ID text here
>>   Some classed text here
>> 
>>
>> The JS code is like this: 
>>
>> function changeColor(newColor) {
>>   var elem = document.getElementById('para');
>>   elem.style.color = newColor;
>>   
>>   var elements = document.getElementsByClassName('para');
>>   for (var i=0; i>   elements[i].style.color = newColor;
>>   }
>> }
>>
>> If you click the buttons you see, that the ID elements are not updated 
>> both. It's only the first one, since the function 
>> document.getElementById() assumes there is only 1 of them. ... By 
>> definition it will return the first element it finds in the DOM tree. 
>>
>> document.getElementsByClassName() knows there can be many elements with 
>> the same class name and it will return an array, so we can use a loop to 
>> define the new color. 
>>
>> This is only a fast example, to show the differences in a way that should 
>> be understandable. .. It would be possible to add a class to the IDs too, 
>> to get them with the class name. ... BUT this would only solve this 
>> particular usecase. 
>>
>> The browser assumes there is only 1 ID active at a time. So we just don't 
>> know, what happens internally. We can't reliably guarantee that everything 
>> works as expected. 
>>
>> hope that helps
>> 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/994fd3fe-3a15-46b0-99c6-c679523b485bn%40googlegroups.com.


[tw5] Re: Spell checker that works with CodeMirror?

2021-07-04 Thread 'Carsten' via TiddlyWiki
Need to correct my answer from before. The Solution provided by mehequeda 
(https://groups.google.com/g/tiddlywiki/c/PwoBZHggN2s/m/ojOUnblkAQAJ) works 
fine with LanguageTool. After you open the spell check preview, click into 
the field and the spellcheck will work. 

TW Tones schrieb am Sonntag, 4. Juli 2021 um 13:26:21 UTC+2:

> Mario
>
> I assume then if you do not want to use an internet dictionary as you 
> source of word checks then perhaps you need the aforementioned 700k of data 
> that is a dictionary. Of course the browser allows us to download a 
> dictionary to use the spall check, but grammar is another thing. Arguably 
> it lends itself to a consolidated online database. So with privacy comes 
> reduced functionality "as a rule" when that functionality comes from an on 
> demand database that someone else curates.
>
> In am keen to know what you think about this apparent issue?
>
> Tones
>
> On Friday, 2 July 2021 at 16:25:39 UTC+10 PMario wrote:
>
>> On Friday, July 2, 2021 at 1:29:07 AM UTC+2 Scott Kingery wrote:
>>
>>> Thanks for posting this. Works great with the standard editor and 
>>> Grammarly browser extension.  
>>
>>
>> There are 2 problems I see with tools like this. 
>>
>> a) you need to be always online
>> b) You need to create an account and every word you type will be sent to 
>> their server. 
>>
>> I personally have a privacy issue here. TiddlyWiki is a tool that lets 
>> you own your data. I wouldn't want to connect it to a tool that spies on my 
>> data. 
>>
>> Just my opinion
>> -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/fa4f4aba-e7c2-43c4-a114-db63507b0823n%40googlegroups.com.


[tw5] Re: Spell checker that works with CodeMirror?

2021-07-04 Thread 'Carsten' via TiddlyWiki
I am using LanguageTool Premium. Unfortunately it does not recognize any 
editor I tried yet. As I am not that big of a programmer, would there be a 
chance to add something to the text field that the Add-on recognizes it?

TW Tones schrieb am Sonntag, 4. Juli 2021 um 13:26:21 UTC+2:

> Mario
>
> I assume then if you do not want to use an internet dictionary as you 
> source of word checks then perhaps you need the aforementioned 700k of data 
> that is a dictionary. Of course the browser allows us to download a 
> dictionary to use the spall check, but grammar is another thing. Arguably 
> it lends itself to a consolidated online database. So with privacy comes 
> reduced functionality "as a rule" when that functionality comes from an on 
> demand database that someone else curates.
>
> In am keen to know what you think about this apparent issue?
>
> Tones
>
> On Friday, 2 July 2021 at 16:25:39 UTC+10 PMario wrote:
>
>> On Friday, July 2, 2021 at 1:29:07 AM UTC+2 Scott Kingery wrote:
>>
>>> Thanks for posting this. Works great with the standard editor and 
>>> Grammarly browser extension.  
>>
>>
>> There are 2 problems I see with tools like this. 
>>
>> a) you need to be always online
>> b) You need to create an account and every word you type will be sent to 
>> their server. 
>>
>> I personally have a privacy issue here. TiddlyWiki is a tool that lets 
>> you own your data. I wouldn't want to connect it to a tool that spies on my 
>> data. 
>>
>> Just my opinion
>> -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/b0f7b6af-3886-46f2-adcf-b2c1d8c81851n%40googlegroups.com.


[tw5] Re: Spell checker that works with CodeMirror?

2021-07-04 Thread TW Tones
Mario

I assume then if you do not want to use an internet dictionary as you 
source of word checks then perhaps you need the aforementioned 700k of data 
that is a dictionary. Of course the browser allows us to download a 
dictionary to use the spall check, but grammar is another thing. Arguably 
it lends itself to a consolidated online database. So with privacy comes 
reduced functionality "as a rule" when that functionality comes from an on 
demand database that someone else curates.

In am keen to know what you think about this apparent issue?

Tones

On Friday, 2 July 2021 at 16:25:39 UTC+10 PMario wrote:

> On Friday, July 2, 2021 at 1:29:07 AM UTC+2 Scott Kingery wrote:
>
>> Thanks for posting this. Works great with the standard editor and 
>> Grammarly browser extension.  
>
>
> There are 2 problems I see with tools like this. 
>
> a) you need to be always online
> b) You need to create an account and every word you type will be sent to 
> their server. 
>
> I personally have a privacy issue here. TiddlyWiki is a tool that lets you 
> own your data. I wouldn't want to connect it to a tool that spies on my 
> data. 
>
> Just my opinion
> -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/531c5933-862d-4ca1-b179-ae0aab56035cn%40googlegroups.com.


[tw5] Re: Streams : "strange behaviour" when transcluding a root tiddler

2021-07-04 Thread TW Tones
ludwa6,

This lists all my streams in my wiki, to do as you ask

<$list 
filter="[all[]has[stream-type]splitbefore[/]removesuffix[/]has[title]sort[]]">



Basically if there is a streams node for a tiddler it will have the 
stream-type field, Then assuming your parent tiddler (dose not have "/" in 
its title) all before the / is the title, but you need to remove the "/.

Tonesa


On Saturday, 3 July 2021 at 19:47:46 UTC+10 ludwa6 wrote:

> That's an interesting UseCase, @FrD -and a powerful affordance, @Saq.  
> Love it!
> Puts me to wonder (not exactly on-topic, but related): is there some such 
> simple script i could plug into a tiddler to display a list of all the 
> other tiddlers that have any n>0 number of nodes (i.e. Streams) attached?
>
> /walt
>
> On Friday, July 2, 2021 at 9:55:17 PM UTC+1 FrD wrote:
>
>> Thanks !
>>
>> It works perfectly.
>>
>> Best regards
>> FrD
>>
>> Le vendredi 2 juillet 2021 à 22:25:02 UTC+2, saq.i...@gmail.com a écrit :
>>
>>> Since the nodes are separate tiddlers, they don't show up with a normal 
>>> transclusion.
>>> You need to transclude through a template: 
>>>
>>> {{TiddlerTitleHere||$:/plugins/sq/streams/nodes-list-template}}
>>>
>>> On Friday, July 2, 2021 at 9:27:45 PM UTC+2 FrD wrote:
>>>
 Hi (specially Saq) !

 Thank you Saq for your fine piece of sofware. Its works flawlessly for 
 my occasionnal note taking (or organizing).
 Recently I've being trying to organize notes from watching a video.
 I wanted to transclude in a tiddler, below the video, the root tiddler 
 of my notes : {{Personal Notes for Class 01}}. And nothing shows.
 Maybe I missed something from the documentation ...
 I've tried on your demo site to transclude the tiddler "Streams 0.2 
 improvements" inside a new tiddler and same problem. The only tiddlers 
 that 
 are showing as transclusions are the "leaf" tiddlers.

 Is there a way to make a root tiddler appear when transcluded ?

 Thanks in advance

 Best regards
 FrD

>>>

-- 
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/dfe26aa6-c0cc-476e-96b4-dec55dca3453n%40googlegroups.com.


Re: [tw5] Re: Best ways to use TiddlyWiki on a Chromebook?

2021-07-04 Thread TiddlyTweeter
Ciao Cj.v

cj.v...@gmail.com wrote:

> I've got TiddlyDesktop for Linux installed on my Chromebook, but I much 
> prefer keeping my TiddlyWiki's on Google Drive, accessed with TiddlyDrive.
> ... 
>
Just my own preference after playing around with it all.
>

Ha! Interesting. Google Drive I use too. Being cloud based, accessed 
through the browser, it is neat in that you can have it going on different 
machines.
It is, in some ways, quite easy to set-up saving to from TW. That is a big 
*portable *near *universal* plus. 

My 2 cents
TT

-- 
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/dfda4213-afc2-46be-8254-d5daa25275e1n%40googlegroups.com.


[tw5] Re: How do I pass data to a list?

2021-07-04 Thread Mike Andyl
many thanks! Everything is working.

For fun.
[tag<*variablename*>] 
Tell me pls, how to set the variable correctly in this case?

воскресенье, 4 июля 2021 г. в 04:08:08 UTC+3, Eric Shulman: 

> On Saturday, July 3, 2021 at 5:27:37 PM UTC-7 miket...@gmail.com wrote:
>
>> <$list filter="[tag[{{!!*target*}}]]">
>
>
> In filter syntax, *square brackets* surrounding the operand indicate that 
> the operand is a *literal text value*.
> When using a* field reference*, omit the square brackets and use *single 
> curly braces* instead.
> When using a *variable reference*, omit the square brackets and use *single 
> angle brackets* instead.
>
> Thus:
> [tag[literaltext]]
> [tag{!!fieldname}]
> [tag]
>
> So, for the example code you provided, you would write:
> <$list filter="[tag{!!target}]">
>
> 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/c4310593-4ed4-4acb-a64d-bfda7ee2ff4en%40googlegroups.com.