Re: [tw5] Re: Curious behavior

2021-05-10 Thread Damon Pritchett
No harm, no foul. I appreciate the tips as always.

Any thoughts on the code?


On Mon, May 10, 2021 at 8:48 PM TW Tones  wrote:

> Concatenate (at the end) is "adding a suffix almost by definition". I call
> it a suffix in this case because it clearly only comes at the end. and
> using the suffix operators is a way to concatenate.
>
> Please not I did not review the code you presented, just thought these
> tips may help.
>
> Regards
> Tones
>
>
> On Tuesday, 11 May 2021 at 13:31:22 UTC+10 History Buff wrote:
>
>> Thanks Tones,
>>
>> I’ve used limit in the past so am familiar with it. However, I’m not
>> understanding how it applies here. I’m not adding the filename as a suffix
>> in a filter (unless I’m really missing something which may be the case).
>> I’m using a small macro to concatenate the path with the filename.
>>
>>
>> On Mon, May 10, 2021 at 8:19 PM TW Tones  wrote:
>>
>>> That result is common when your list is generating more instances that
>>> you expected.
>>>
>>> It suggest an error in your code. A Quick fix may be to introduce
>>> +[limit[1]] in the filter generating it.
>>> In this case we can see the problem is before adding the suffix image.jpg
>>>
>>> Tones
>>>
>>> On Tuesday, 11 May 2021 at 11:21:08 UTC+10 History Buff wrote:
>>>
 Sorry, I attempted to describe it in words which wasn't sufficient.

 What I want to result is the following (assume the filename is
 image.jpg):

 ./Archival_image/image.jpg

 What I actually get is this:


 ./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/image.jpg

 The number of times ./Archival_image/ is repeated seems random and, as
 I said, can be as many as two or three all the way up to eighteen.


 On Monday, May 10, 2021 at 5:51:00 PM UTC-7 TW Tones wrote:

> Do share an example of the "corrupt values", if could point to the
> problem without jumping into the code, or will this code work on
> tiddlywiki.com, if not can you make it?
>
> Tones
>
> On Tuesday, 11 May 2021 at 06:58:28 UTC+10 History Buff wrote:
>
>> All,
>>
>> I have a macro that has several edit text widgets and a button to
>> save these inputs to the fields of a newly created tiddler (see code
>> below). I'm having some issues with one particular field, namely the
>> archive field. The input is the filename of the image and what should be
>> placed in the archive field of the new tiddler is:
>> ./Archival_images/filename. However, what ends up being placed in there 
>> is
>> the ./Archival_images/ string repeated a seemingly random number of 
>> times.
>> I've seen it repeated anywhere from three times to eighteen times. I've
>> tried slashes with both directions with no difference. I've also tried 
>> the
>> wikify widget without the output and mode options with no difference in
>> behavior. Any ideas on why that might be happening?
>>
>> Thanks in advance.
>>
>>
>> \define newtext(image)
>>> src="./Images/$image$.webp">
>> \end
>>
>> \define newarchive(archive)
>>   ./Archival_images/$archive$
>> \end
>>
>> \define newImageEntry()
>>   <$vars
>> temp="$:/temp/NewImageEntry">
>> Image Filename:
>>   <$edit-text
>> tiddler=<>
>> field=filename
>> tag=input
>> class=fieldinput
>> size=64
>>   />
>> 
>> Archival Image Filename:
>>   <$edit-text
>> tiddler=<>
>> field=archive
>> tag=input
>> class=fieldinput
>> size=64
>>   />
>> 
>> Image Category:
>>   <$edit-text
>> tiddler=<>
>> field=category
>> tag=input
>> class=fieldinput
>> size=64
>> placeholder="Enter all categories separated by a comma."
>>   />
>> 
>> Image Label:
>>   <$edit-text
>> tiddler=<>
>> field=label
>> class=fieldinput
>> tag=input
>> placeholder="Enter a brief label for the image."
>> size=64
>>   />
>> 
>> Image Details:
>>   <$edit-text
>> tiddler=<>
>> field=details
>> class=fieldarea
>> tag=textarea
>> placeholder="Enter any detailed information about the image."
>>   />
>> 
>> Surnames:
>>   <$edit-text
>> tiddler=<>
>> field=surnames
>> tag=input
>> class=fieldinput
>> size=64
>> placeholder="Enter all surnames separated by a comma."
>>   />
>> 
>> <$button tooltip="save input">
>> 

[tw5] Re: Some coding fun: dump a tiddler line-by-line into a data tiddler

2021-05-10 Thread TW Tones
Cj

Remember its possible to do this [[some tiddler]get[text]splitregexp[\n]] 
to separate the lines.

Rather than split

Tones

On Tuesday, 11 May 2021 at 13:31:59 UTC+10 cj.v...@gmail.com wrote:

> Just scratching a coding itch.
>
> Modify the code in the button, changing the "Some Tiddler" instances to an 
> existing tiddler in your TiddlyWiki.  (I've been playing with 
> TiddlyWiki.com for the giggles.)
>
> Put this code in some tiddler and save the tiddler.  Then, press the 
> button, and take a look at the new tiddler named the same as this one, but 
> with the added suffix " Data".
>
> <$button>
> <$vars newLine="
> " >
> <$vars nCount={{{ [[Some Tiddler]get[text]splitcount[]] }}}
> thisTiddler=<>>
> <$list variable="line-num" filter="[range]">
> <$action-setfield $tiddler={{{ [addsuffix[ Data]] }}} 
> $index={{{ [addprefix[line]] }}}, $value={{{ [[Some 
> Tiddler]get[text]splitnth] }}}/>
> 
> 
> 
> Click me!
> 
>
> Why code that?  I'm just got this festering thought: how would I go about 
> creating an alternative tiddler editor with "code folding", using only 
> TiddlyWiki?
>
> Well, I think it starts with first finding a way to split a tiddler into 
> its individual lines.
>
> Just an exercise for the $hit$ and the giggle$, possibly coming to a fiery 
> end  when I hit the wall ...
>

-- 
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/a933981a-d71f-438b-92cf-b903ae10322an%40googlegroups.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread Mohammad Rahmani
On Tue, May 11, 2021 at 1:00 AM TiddlyTweeter 
wrote:

>  Mohammad wrote:
>
>> Hi TT,
>>
>
>
>> In my own testing so far this more minimal regex seems to work ... !!
>>>
>>>-  pattern="^\ *(https?|ftp|file|news|data|mailto):.+$
>>>
>>> Lovely! one minor comment:
>>
>> 1. I like to check the validity of links! So if one drops something
>> like this (http.yahoo.com) or this (yahoo.come.) it wont detect this and
>> will add the wrong link!
>> So, I prefer a URL validator for pattern. What I sent catches all
>> these and only passed the validated URL.
>>
>
> RIGHT!
>
> I differ in ASSUMING the link IN is VALID. I don't want to deal with
> naughty boys.
>
> That is part of the value of showing the TITLE & LINK for edit though, so
> you can DISCARD errant boys.
>

Yes, this is very handy!



>
> Personally I am NOT inclined to parse links for  perfection.
> What if they are in Chinese?
>

Yep, that is a problem! The solution does work most of the time as you use
English URL much more!



> The issue with your extra parsing is it I do not think it is entirely
> fair?
>
> Just a question!!!
>
> TT, x
>
> --
> 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/3c9e0f84-f512-41ee-b109-2863e67a0dban%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/CAAV1gMCt%2B7FJJZHQPMguo8Dsojyz7jA%2BW_BQkDhfmdcGtK7vgQ%40mail.gmail.com.


Re: [tw5] Re: A basket on the sidebar

2021-05-10 Thread Mohammad Rahmani
On Tue, May 11, 2021 at 4:18 AM TW Tones  wrote:

> Mohammad,


Hi Tony,

>
> I would like to know more about this subcategory issue for plugins.
>
> However id this in the direction of which you speak?,  my own solution is
> to give a plugin a new plugin-type field value, such as data (not plugin).
> Then Its simple to duplicate one of the existing plugin tabs to list only
> plugins of the plugin-type data, and otherwise they behave the same as
> standard plugins including shadows etc...
>

Read the discussion here:
https://github.com/Jermolene/TiddlyWiki5/discussions/5462




>
> I have discovered what all the technical methods are to achieve the
> outcome I need, its time that is my challenge.
>
> Regards
> Tones
>
> On Monday, 10 May 2021 at 20:38:36 UTC+10 Mohammad wrote:
>
>> On Mon, May 10, 2021 at 10:12 AM TW Tones  wrote:
>>
>>> Further feature extensions;
>>>
>>>- The ability to build cumulative json tiddlers or plugins.
>>>- A Cumulative plugin would allow you to drop titles on a basket,
>>>click to create a plugin. then add additional tiddlers and update it, and
>>>update the plugin with all edited tiddlers.
>>>   - This would allow the building of transferable data tiddlers
>>>   - Quick updates to a plugin
>>>   - Incorporate changes to a plugin according to the edited shadow
>>>   tiddlers.
>>>  - Perhaps one could even play with core updates this way
>>>
>>> This has certainly sparks my creative inspiration, I could have code the
>>> basket, but never did, now it exists - wow.
>>>
>>
>> I have developed an easy plugin maker! which is quite similar to what you
>> said there is two issues to be addressed
>>
>> 1. Right now it seems TW does not support subcategory to distribute
>> contents as plugin and we had discussion with Jeremy if the title plugin is
>> suitable for such distribution (see the ebook edition of Tiddlywiki). There
>> were suggestions by Mario and Jeremy to use subcategories to distribute
>> other contents (like presentations, brochures, booklets, articles, novels,
>> ... )
>> 2. A standard plugin in my opinion shall meet some minimum requirements
>>
>> ّ
>>
>>
>>
>>
>>>
>>> Tones
>>>
>>> On Monday, 10 May 2021 at 12:05:40 UTC+10 TW Tones wrote:
>>>
 Gentlemen,

 Simply leveraging the idea of the basket, I am exploring a set of
 related methods to extend its functionality.

 Behind this is a desire to make lists of tiddlers a first class citizen
 in tiddlywiki.

 My time is limited but I hope to see or design myself if no one else
 does.

- Have a single click to make more baskets (or managed lists)
- drag/Save basket to JSON tiddler
- drag/Save  basket to JSON tiddler and change to a plugin
- Allow a filter to be used to add tiddlers to any basket.
- Handling the list of titles in a basket, rather than the tiddler
content.
   - I would like a button on tiddlers containing a list, to be
   draggable to the basket
   - I would like to be able to drag the list of tiddlers in the
   basket to the above list icon to update its list field,
  - drop to add basket titles to existing list field
  - ctrl-drop replace existing list field with basket titles
   - I would love to be able to generate a tiddler with a list of
   titles and start referring it to a list tiddler. we can add and 
 remove
   titles from, reorder and drag and drop as above.
  - The basket idea can support this nicely.

 If someone like the wonderful Mohammad can run with these ideas, or I
 can collaborate to see them to fruition it would be great, but a lot to
 ask, alternatively I will build them in time.

 later I would like

- Save the current story as a list
- Restore any list and open tiddlers in the story.
- Save the history list to a basket/list
- Have seperate named stories/history lists that can be "activated"
- Have any generated filter driven lists that can be manipulated
like a basket, eg recent, haschanged, story, my 
 username/created/modified.

 The worlds is our oster, Our oster is tiddlywiki.

 Regards
 Tones

 On Monday, 10 May 2021 at 05:39:27 UTC+10 David Gifford wrote:

> Thanks Mohammad, works great! I even figured out how to turn the text
> field into a large edit-text area, and I moved the clear box button next 
> to
> the tiddler title link, to clear up some vertical space. See attached
> image.
>
> On Sunday, May 9, 2021 at 12:22:00 AM UTC-5 Mohammad wrote:
>
>> David,
>>  In another thread there is discussion on drag and drop features! I
>> bring one example here!
>>
>> The attached tiddler shows a drop zone and if you drag a tiddler to
>> on the drop zone
>> it will grab the title of dragged 

Re: [tw5] Re: Curious behavior

2021-05-10 Thread TW Tones
Concatenate (at the end) is "adding a suffix almost by definition". I call 
it a suffix in this case because it clearly only comes at the end. and 
using the suffix operators is a way to concatenate.

Please not I did not review the code you presented, just thought these tips 
may help.

Regards
Tones


On Tuesday, 11 May 2021 at 13:31:22 UTC+10 History Buff wrote:

> Thanks Tones,
>
> I’ve used limit in the past so am familiar with it. However, I’m not 
> understanding how it applies here. I’m not adding the filename as a suffix 
> in a filter (unless I’m really missing something which may be the case). 
> I’m using a small macro to concatenate the path with the filename. 
>
>
> On Mon, May 10, 2021 at 8:19 PM TW Tones  wrote:
>
>> That result is common when your list is generating more instances that 
>> you expected.
>>
>> It suggest an error in your code. A Quick fix may be to introduce 
>> +[limit[1]] in the filter generating it.
>> In this case we can see the problem is before adding the suffix image.jpg
>>
>> Tones
>>
>> On Tuesday, 11 May 2021 at 11:21:08 UTC+10 History Buff wrote:
>>
>>> Sorry, I attempted to describe it in words which wasn't sufficient.
>>>
>>> What I want to result is the following (assume the filename is 
>>> image.jpg):
>>>
>>> ./Archival_image/image.jpg
>>>
>>> What I actually get is this:
>>>
>>>
>>> ./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/image.jpg
>>>
>>> The number of times ./Archival_image/ is repeated seems random and, as I 
>>> said, can be as many as two or three all the way up to eighteen.
>>>
>>>
>>> On Monday, May 10, 2021 at 5:51:00 PM UTC-7 TW Tones wrote:
>>>
 Do share an example of the "corrupt values", if could point to the 
 problem without jumping into the code, or will this code work on 
 tiddlywiki.com, if not can you make it?

 Tones

 On Tuesday, 11 May 2021 at 06:58:28 UTC+10 History Buff wrote:

> All,
>
> I have a macro that has several edit text widgets and a button to save 
> these inputs to the fields of a newly created tiddler (see code below). 
> I'm 
> having some issues with one particular field, namely the archive field. 
> The 
> input is the filename of the image and what should be placed in the 
> archive 
> field of the new tiddler is: ./Archival_images/filename. However, what 
> ends 
> up being placed in there is the ./Archival_images/ string repeated a 
> seemingly random number of times. I've seen it repeated anywhere from 
> three 
> times to eighteen times. I've tried slashes with both directions with no 
> difference. I've also tried the wikify widget without the output and mode 
> options with no difference in behavior. Any ideas on why that might be 
> happening?
>
> Thanks in advance.
>
>
> \define newtext(image)
> src="./Images/$image$.webp">
> \end
>
> \define newarchive(archive)
>   ./Archival_images/$archive$
> \end
>
> \define newImageEntry()
>   <$vars
> temp="$:/temp/NewImageEntry">
> Image Filename:
>   <$edit-text
> tiddler=<>
> field=filename
> tag=input
> class=fieldinput
> size=64
>   />
> 
> Archival Image Filename:
>   <$edit-text
> tiddler=<>
> field=archive
> tag=input
> class=fieldinput
> size=64
>   />
> 
> Image Category:
>   <$edit-text
> tiddler=<>
> field=category
> tag=input
> class=fieldinput
> size=64
> placeholder="Enter all categories separated by a comma."
>   />
> 
> Image Label:
>   <$edit-text
> tiddler=<>
> field=label
> class=fieldinput
> tag=input
> placeholder="Enter a brief label for the image."
> size=64
>   />
> 
> Image Details:
>   <$edit-text
> tiddler=<>
> field=details
> class=fieldarea
> tag=textarea
> placeholder="Enter any detailed information about the image."
>   />
> 
> Surnames:
>   <$edit-text
> tiddler=<>
> field=surnames
> tag=input
> class=fieldinput
> size=64
> placeholder="Enter all surnames separated by a comma."
>   />
> 
> <$button tooltip="save input"> 
> {{$:/images/google-material-design/image/two-tone/24px/add-a-photo}} Add 
> New Image
>   <$vars
> filename={{{ [titleget[filename]] }}}
> archive={{{ [titleget[archive]] }}}
> category={{{ [titleget[category]] }}}
> label={{{ 

Re: [tw5] A tour through my Zettelkasten

2021-05-10 Thread Mohammad Rahmani
Hi Soren,

On Tue, May 11, 2021 at 2:45 AM Soren Bjornstad 
wrote:

> On Monday, May 10, 2021 at 2:43:34 PM UTC-5 Mohammad wrote:
>
>> One question: How do you select the categories in the Write tab? I mean
>> for Ztellkasten point of view?
>> I watch the viedo but not quite understand your philosophy here!
>>
>
> I'm not sure I understand the question – are you asking how, technically,
> the contents of each tab are aggregated, or why I chose that list of
> "looking for attention" conditions?
>

No, I do not mean technical implementation! but I ask about names of those
categories like "open questions", "stubs"? Are those some recommended
categories or names?



>
>
>> Also the Explorer while we have the More Tab!
>>
>
> The Explorer is intended to be a simplified version of the More tab for
> use in the public wiki. I just haven't bothered to hide it in the private
> one because it hasn't gotten in my way, but it would likely make sense to
> do so now that I've stopped making changes to it frequently.
>

That makes sense: a simple more tab for the public, for those who visit the
page but do not know Tiddlywiki. Instead of hiding parts of More tab,
create a separate tab!
Good idea!



>
>
>> I like to adopt the tiddler reference explorer in minimal yet flexible
>> form and sidebar extra tabs in a plugin (using a different taste).
>> I cannot see any license in your wiki, so I want to get permission if I
>> am allowed to use both these ideas in a new plugin!
>>
>
> MIT license:
> https://zettelkasten.sorenbjornstad.com/#PublicHomepage/Copyright
>

Ah, yes! I did not see that! System tiddlers under MIT license!
Zettelkasten and effective note taking is your area of expertise, so please
go ahead!
Looking forward to seeing more from you!

> --
> 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/19af44e2-d653-4fb4-9c94-2d7e1f0b0267n%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/CAAV1gMDGJYJ3owviU3upJ%3D5sbN19DQy5Z8oRFoDYPRa6N18eWA%40mail.gmail.com.


[tw5] Some coding fun: dump a tiddler line-by-line into a data tiddler

2021-05-10 Thread Charlie Veniot
Just scratching a coding itch.

Modify the code in the button, changing the "Some Tiddler" instances to an 
existing tiddler in your TiddlyWiki.  (I've been playing with 
TiddlyWiki.com for the giggles.)

Put this code in some tiddler and save the tiddler.  Then, press the 
button, and take a look at the new tiddler named the same as this one, but 
with the added suffix " Data".

<$button>
<$vars newLine="
" >
<$vars nCount={{{ [[Some Tiddler]get[text]splitcount[]] }}}
thisTiddler=<>>
<$list variable="line-num" filter="[range]">
<$action-setfield $tiddler={{{ [addsuffix[ Data]] }}} 
$index={{{ [addprefix[line]] }}}, $value={{{ [[Some 
Tiddler]get[text]splitnth] }}}/>



Click me!


Why code that?  I'm just got this festering thought: how would I go about 
creating an alternative tiddler editor with "code folding", using only 
TiddlyWiki?

Well, I think it starts with first finding a way to split a tiddler into 
its individual lines.

Just an exercise for the $hit$ and the giggle$, possibly coming to a fiery 
end  when I hit the wall ...

-- 
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/93679e6d-af56-4084-8151-9a16f23d7b2cn%40googlegroups.com.


Re: [tw5] Re: Curious behavior

2021-05-10 Thread Damon Pritchett
Thanks Tones,

I’ve used limit in the past so am familiar with it. However, I’m not
understanding how it applies here. I’m not adding the filename as a suffix
in a filter (unless I’m really missing something which may be the case).
I’m using a small macro to concatenate the path with the filename.


On Mon, May 10, 2021 at 8:19 PM TW Tones  wrote:

> That result is common when your list is generating more instances that you
> expected.
>
> It suggest an error in your code. A Quick fix may be to introduce
> +[limit[1]] in the filter generating it.
> In this case we can see the problem is before adding the suffix image.jpg
>
> Tones
>
> On Tuesday, 11 May 2021 at 11:21:08 UTC+10 History Buff wrote:
>
>> Sorry, I attempted to describe it in words which wasn't sufficient.
>>
>> What I want to result is the following (assume the filename is image.jpg):
>>
>> ./Archival_image/image.jpg
>>
>> What I actually get is this:
>>
>>
>> ./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/image.jpg
>>
>> The number of times ./Archival_image/ is repeated seems random and, as I
>> said, can be as many as two or three all the way up to eighteen.
>>
>>
>> On Monday, May 10, 2021 at 5:51:00 PM UTC-7 TW Tones wrote:
>>
>>> Do share an example of the "corrupt values", if could point to the
>>> problem without jumping into the code, or will this code work on
>>> tiddlywiki.com, if not can you make it?
>>>
>>> Tones
>>>
>>> On Tuesday, 11 May 2021 at 06:58:28 UTC+10 History Buff wrote:
>>>
 All,

 I have a macro that has several edit text widgets and a button to save
 these inputs to the fields of a newly created tiddler (see code below). I'm
 having some issues with one particular field, namely the archive field. The
 input is the filename of the image and what should be placed in the archive
 field of the new tiddler is: ./Archival_images/filename. However, what ends
 up being placed in there is the ./Archival_images/ string repeated a
 seemingly random number of times. I've seen it repeated anywhere from three
 times to eighteen times. I've tried slashes with both directions with no
 difference. I've also tried the wikify widget without the output and mode
 options with no difference in behavior. Any ideas on why that might be
 happening?

 Thanks in advance.


 \define newtext(image)
>>> src="./Images/$image$.webp">
 \end

 \define newarchive(archive)
   ./Archival_images/$archive$
 \end

 \define newImageEntry()
   <$vars
 temp="$:/temp/NewImageEntry">
 Image Filename:
   <$edit-text
 tiddler=<>
 field=filename
 tag=input
 class=fieldinput
 size=64
   />
 
 Archival Image Filename:
   <$edit-text
 tiddler=<>
 field=archive
 tag=input
 class=fieldinput
 size=64
   />
 
 Image Category:
   <$edit-text
 tiddler=<>
 field=category
 tag=input
 class=fieldinput
 size=64
 placeholder="Enter all categories separated by a comma."
   />
 
 Image Label:
   <$edit-text
 tiddler=<>
 field=label
 class=fieldinput
 tag=input
 placeholder="Enter a brief label for the image."
 size=64
   />
 
 Image Details:
   <$edit-text
 tiddler=<>
 field=details
 class=fieldarea
 tag=textarea
 placeholder="Enter any detailed information about the image."
   />
 
 Surnames:
   <$edit-text
 tiddler=<>
 field=surnames
 tag=input
 class=fieldinput
 size=64
 placeholder="Enter all surnames separated by a comma."
   />
 
 <$button tooltip="save input">
 {{$:/images/google-material-design/image/two-tone/24px/add-a-photo}} Add
 New Image
   <$vars
 filename={{{ [titleget[filename]] }}}
 archive={{{ [titleget[archive]] }}}
 category={{{ [titleget[category]] }}}
 label={{{ [titleget[label]] }}}
 details={{{ [titleget[details]] }}}
   >
   <$wikify name="text" text="""<$macrocall $name=newtext
 image=<> />""" output=html  mode=inline>
 <$wikify name="archive" text="""<$macrocall $name=newarchive
 archive=<> />""" output=html  mode=inline>
   <$set name="newtags"
 filter="[titleget[surnames]split[,]] [[image]]">
 <$action-createtiddler
   $basetitle=<>
   text=<>
   category=<>
   details=<>
  

[tw5] Re: Curious behavior

2021-05-10 Thread TW Tones
That result is common when your list is generating more instances that you 
expected.

It suggest an error in your code. A Quick fix may be to introduce 
+[limit[1]] in the filter generating it.
In this case we can see the problem is before adding the suffix image.jpg

Tones

On Tuesday, 11 May 2021 at 11:21:08 UTC+10 History Buff wrote:

> Sorry, I attempted to describe it in words which wasn't sufficient.
>
> What I want to result is the following (assume the filename is image.jpg):
>
> ./Archival_image/image.jpg
>
> What I actually get is this:
>
>
> ./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/image.jpg
>
> The number of times ./Archival_image/ is repeated seems random and, as I 
> said, can be as many as two or three all the way up to eighteen.
>
>
> On Monday, May 10, 2021 at 5:51:00 PM UTC-7 TW Tones wrote:
>
>> Do share an example of the "corrupt values", if could point to the 
>> problem without jumping into the code, or will this code work on 
>> tiddlywiki.com, if not can you make it?
>>
>> Tones
>>
>> On Tuesday, 11 May 2021 at 06:58:28 UTC+10 History Buff wrote:
>>
>>> All,
>>>
>>> I have a macro that has several edit text widgets and a button to save 
>>> these inputs to the fields of a newly created tiddler (see code below). I'm 
>>> having some issues with one particular field, namely the archive field. The 
>>> input is the filename of the image and what should be placed in the archive 
>>> field of the new tiddler is: ./Archival_images/filename. However, what ends 
>>> up being placed in there is the ./Archival_images/ string repeated a 
>>> seemingly random number of times. I've seen it repeated anywhere from three 
>>> times to eighteen times. I've tried slashes with both directions with no 
>>> difference. I've also tried the wikify widget without the output and mode 
>>> options with no difference in behavior. Any ideas on why that might be 
>>> happening?
>>>
>>> Thanks in advance.
>>>
>>>
>>> \define newtext(image)
>>>>> src="./Images/$image$.webp">
>>> \end
>>>
>>> \define newarchive(archive)
>>>   ./Archival_images/$archive$
>>> \end
>>>
>>> \define newImageEntry()
>>>   <$vars
>>> temp="$:/temp/NewImageEntry">
>>> Image Filename:
>>>   <$edit-text
>>> tiddler=<>
>>> field=filename
>>> tag=input
>>> class=fieldinput
>>> size=64
>>>   />
>>> 
>>> Archival Image Filename:
>>>   <$edit-text
>>> tiddler=<>
>>> field=archive
>>> tag=input
>>> class=fieldinput
>>> size=64
>>>   />
>>> 
>>> Image Category:
>>>   <$edit-text
>>> tiddler=<>
>>> field=category
>>> tag=input
>>> class=fieldinput
>>> size=64
>>> placeholder="Enter all categories separated by a comma."
>>>   />
>>> 
>>> Image Label:
>>>   <$edit-text
>>> tiddler=<>
>>> field=label
>>> class=fieldinput
>>> tag=input
>>> placeholder="Enter a brief label for the image."
>>> size=64
>>>   />
>>> 
>>> Image Details:
>>>   <$edit-text
>>> tiddler=<>
>>> field=details
>>> class=fieldarea
>>> tag=textarea
>>> placeholder="Enter any detailed information about the image."
>>>   />
>>> 
>>> Surnames:
>>>   <$edit-text
>>> tiddler=<>
>>> field=surnames
>>> tag=input
>>> class=fieldinput
>>> size=64
>>> placeholder="Enter all surnames separated by a comma."
>>>   />
>>> 
>>> <$button tooltip="save input"> 
>>> {{$:/images/google-material-design/image/two-tone/24px/add-a-photo}} Add 
>>> New Image
>>>   <$vars
>>> filename={{{ [titleget[filename]] }}}
>>> archive={{{ [titleget[archive]] }}}
>>> category={{{ [titleget[category]] }}}
>>> label={{{ [titleget[label]] }}}
>>> details={{{ [titleget[details]] }}}
>>>   >
>>>   <$wikify name="text" text="""<$macrocall $name=newtext 
>>> image=<> />""" output=html  mode=inline>
>>> <$wikify name="archive" text="""<$macrocall $name=newarchive 
>>> archive=<> />""" output=html  mode=inline>
>>>   <$set name="newtags" 
>>> filter="[titleget[surnames]split[,]] [[image]]">
>>> <$action-createtiddler
>>>   $basetitle=<>
>>>   text=<>
>>>   category=<>
>>>   details=<>
>>>   label=<>
>>>   tags=<>
>>>   archive=<>
>>>   hide-body="yes"
>>> />
>>>   
>>> 
>>>   
>>> 
>>> <$action-deletetiddler $filter="[]" />
>>> 
>>> <$button tooltip="cancel input"> {{$:/core/images/cancel-button}} 
>>> Clear Entries
>>>   <$action-deletetiddler $filter="[]" />
>>> 
>>>   
>>> \end
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 

[tw5] Re: A Prototype of UID's for stable permalinks

2021-05-10 Thread Charlie Veniot
The beauty of your link is that it is obvious what the link is for.  That 
really is a great thing.  Which I know I would eventually break because I 
am always slightly tweaking everything towards titles/names/descriptions 
that better fit changing scope/circumstances/you-name-it.

With a wee number, I'll never monkey around with it..  Which is the safety 
net I'm looking for: something stable that I know I will never tweak, 
tweaking being my nature when it comes to text.  I'm just as likely to 
change a description (scope of tiddler may have changed), or improved the 
wording or something.

I'm pretty stuck in a method similar to the Oracle Sequence Numbers I'm 
familiar with.  I've always been more comfortable with identifiers never 
based on real-world values.



On Monday, May 10, 2021 at 11:17:22 PM UTC-3 TW Tones wrote:

> Try this; 
>
> https://tiddlywiki.com/#:[description[Browser extension for Firefox]]
>
> If you could rename and save this tiddler, it will still work until you 
> modify the description or clone the tiddler.
>
> Eureka!
>
> I think I have finally come up with a simple, total, robust solution to 
> permalinks, serial number, UID and GUID's not to put it in words and a 
> plugin. 
>
> I can write the specification if anyone wants to help, otherwise it will 
> take a little longer
>
> Regards
> Tones
>
> On Monday, 10 May 2021 at 03:07:28 UTC+10 cj.v...@gmail.com wrote:
>
>> Pff, no worries.  It is very easy to call things by various "names", and 
>> for the "intent" of words to match exactly all of one's thoughts related to 
>> the words, while meaning something entirely different to somebody else.
>>
>> So context gets jumbled easily.
>>
>> Imagine you place in all sorts of places all over the web a URL to a 
>> specific tiddler in one TiddlyWiki instance.
>>
>> So many things can happen to break all of those links.  You might move 
>> the TiddlyWiki to a completely different host.  You might actually rename 
>> the TiddlyWiki itself.
>>
>> So all kinds of worse problems than having the same URL suddenly pop open 
>> a few different unrelated tiddlers along with the intended one.  That is 
>> barely a blip in the scheme of things.
>>
>> Easy enough to have some Tiddler in each TiddlyWiki that let's you know 
>> when you've imported some Tiddler that now has you with duplicate UID's.  
>> At which point, go to the imported tiddler and delete its UID, giving it a 
>> new one only if you really need to.
>>
>> If your workflow has you importing tiddlers incessantly between your 
>> TiddlyWikis, then you need to include in your workflow something that helps 
>> you with weeding your garden.
>>
>> Or prepare to have a more complicated system for uniquely identifying 
>> your tiddlers and having longer and more complicated URL's.
>>
>> I'm pretty sure somebody will come up with something much more perfect 
>> than what I've come up with, but there will be costs / trade-offs.
>>
>> Only you know what kind of trade-offs you can live with.  (You won't know 
>> the trade-offs without trying the various possibilities.)
>>
>> For me, this UID-permalink thing (or whatever I finally call it), is the 
>> good enough lean/mean/simple/robust/no-break-anything-else solution for 
>> me.  To each his/her own.
>>
>> On Sunday, May 9, 2021 at 1:48:33 PM UTC-3 ludwa6 wrote:
>>
>>> Sorry Charlie for my sloppy wording: by "named-alike," what i meant was 
>>> two tiddlers having the same UID-permalink.  As for titles, i am very 
>>> comfortable with the conflict avoidance measures built into the TW5 import 
>>> process.
>>>
>>> In any case, i am reassured by your answer(s- this last and the one 
>>> above) that the risk involved in starting to use this thing -and then only 
>>> for its intended purpose, as you say- is quite small.  The biggest risk i 
>>> see is the sort of confusion that might arise if i send somebody a link to 
>>> something, and what they get instead is a page with an extra tiddler (or 
>>> few -see below) that would tend to throw into question the relevance of 
>>> that link that the web user trusted enough to follow -especially if the 
>>> unintended tiddler(s) appear larger and/or louder, maybe higher on the page 
>>> (? something i'll only learn thru experience; am comfortable w/ that).
>>>
>>> Still: i do suspect that i'm gonna somehow wind up with multiple 
>>> tiddlers having the same number in that UID field, and that before very 
>>> long i will wind up publishing some one(s) of those.  I say this because of 
>>> two fundamental dynamics in my workflow:
>>>
>>>1. I've got a TiddlyDesktop full of different TW instances that are 
>>>cross-pollinating tiddlers with such careless abandon as to cause me 
>>> some 
>>>concern; and
>>>2. I'm a huge believer in DRY (Don't Repeat Yourself), so once i've 
>>>written something somewhere that i want to share, i would much rather 
>>> share 
>>>a link to it than write it again.
>>>
>>> Can't say as (2) is much of a 

[tw5] Re: A Prototype of UID's for stable permalinks

2021-05-10 Thread TW Tones
Try this; 

https://tiddlywiki.com/#:[description[Browser extension for Firefox]]

If you could rename and save this tiddler, it will still work until you 
modify the description or clone the tiddler.

Eureka!

I think I have finally come up with a simple, total, robust solution to 
permalinks, serial number, UID and GUID's not to put it in words and a 
plugin. 

I can write the specification if anyone wants to help, otherwise it will 
take a little longer

Regards
Tones

On Monday, 10 May 2021 at 03:07:28 UTC+10 cj.v...@gmail.com wrote:

> Pff, no worries.  It is very easy to call things by various "names", and 
> for the "intent" of words to match exactly all of one's thoughts related to 
> the words, while meaning something entirely different to somebody else.
>
> So context gets jumbled easily.
>
> Imagine you place in all sorts of places all over the web a URL to a 
> specific tiddler in one TiddlyWiki instance.
>
> So many things can happen to break all of those links.  You might move the 
> TiddlyWiki to a completely different host.  You might actually rename the 
> TiddlyWiki itself.
>
> So all kinds of worse problems than having the same URL suddenly pop open 
> a few different unrelated tiddlers along with the intended one.  That is 
> barely a blip in the scheme of things.
>
> Easy enough to have some Tiddler in each TiddlyWiki that let's you know 
> when you've imported some Tiddler that now has you with duplicate UID's.  
> At which point, go to the imported tiddler and delete its UID, giving it a 
> new one only if you really need to.
>
> If your workflow has you importing tiddlers incessantly between your 
> TiddlyWikis, then you need to include in your workflow something that helps 
> you with weeding your garden.
>
> Or prepare to have a more complicated system for uniquely identifying your 
> tiddlers and having longer and more complicated URL's.
>
> I'm pretty sure somebody will come up with something much more perfect 
> than what I've come up with, but there will be costs / trade-offs.
>
> Only you know what kind of trade-offs you can live with.  (You won't know 
> the trade-offs without trying the various possibilities.)
>
> For me, this UID-permalink thing (or whatever I finally call it), is the 
> good enough lean/mean/simple/robust/no-break-anything-else solution for 
> me.  To each his/her own.
>
> On Sunday, May 9, 2021 at 1:48:33 PM UTC-3 ludwa6 wrote:
>
>> Sorry Charlie for my sloppy wording: by "named-alike," what i meant was 
>> two tiddlers having the same UID-permalink.  As for titles, i am very 
>> comfortable with the conflict avoidance measures built into the TW5 import 
>> process.
>>
>> In any case, i am reassured by your answer(s- this last and the one 
>> above) that the risk involved in starting to use this thing -and then only 
>> for its intended purpose, as you say- is quite small.  The biggest risk i 
>> see is the sort of confusion that might arise if i send somebody a link to 
>> something, and what they get instead is a page with an extra tiddler (or 
>> few -see below) that would tend to throw into question the relevance of 
>> that link that the web user trusted enough to follow -especially if the 
>> unintended tiddler(s) appear larger and/or louder, maybe higher on the page 
>> (? something i'll only learn thru experience; am comfortable w/ that).
>>
>> Still: i do suspect that i'm gonna somehow wind up with multiple tiddlers 
>> having the same number in that UID field, and that before very long i will 
>> wind up publishing some one(s) of those.  I say this because of two 
>> fundamental dynamics in my workflow:
>>
>>1. I've got a TiddlyDesktop full of different TW instances that are 
>>cross-pollinating tiddlers with such careless abandon as to cause me some 
>>concern; and
>>2. I'm a huge believer in DRY (Don't Repeat Yourself), so once i've 
>>written something somewhere that i want to share, i would much rather 
>> share 
>>a link to it than write it again.
>>
>> Can't say as (2) is much of a problem yet, because to this point i've got 
>> just a few small TW instances online -all of them tests, essentially, as i 
>> am still figuring out the best way to do this- but i do expect to be 
>> publishing & sharing real content in the very near future, at an 
>> ever-increasing rate of flow.  For all that, i think it safe to say: we'll 
>> cross that bridge when we come to it.
>> On Sunday, May 9, 2021 at 5:02:33 PM UTC+1 cj.v...@gmail.com wrote:
>>
>>> G'day Walt,
>>>
>>> I did not clue into your statement:  "So, i have to ask: in case of UID 
>>> conflict: is what would happen indeed as innocuous a condition as what you 
>>> describe, i.e.: the two named-alike tiddlers would both display to the WWW 
>>> browser who comes in on that link?  No other problem you can forsee arising 
>>> out of that?"
>>>
>>> "Named-alike" tiddlers.  As in tiddlers with same title.  When dragging 
>>> "Tiddler A" from one TiddlyWiki to another, you 

[tw5] Re: Curious behavior

2021-05-10 Thread History Buff
Sorry, I attempted to describe it in words which wasn't sufficient.

What I want to result is the following (assume the filename is image.jpg):

./Archival_image/image.jpg

What I actually get is this:

./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/./Archival_image/image.jpg

The number of times ./Archival_image/ is repeated seems random and, as I 
said, can be as many as two or three all the way up to eighteen.


On Monday, May 10, 2021 at 5:51:00 PM UTC-7 TW Tones wrote:

> Do share an example of the "corrupt values", if could point to the problem 
> without jumping into the code, or will this code work on tiddlywiki.com, 
> if not can you make it?
>
> Tones
>
> On Tuesday, 11 May 2021 at 06:58:28 UTC+10 History Buff wrote:
>
>> All,
>>
>> I have a macro that has several edit text widgets and a button to save 
>> these inputs to the fields of a newly created tiddler (see code below). I'm 
>> having some issues with one particular field, namely the archive field. The 
>> input is the filename of the image and what should be placed in the archive 
>> field of the new tiddler is: ./Archival_images/filename. However, what ends 
>> up being placed in there is the ./Archival_images/ string repeated a 
>> seemingly random number of times. I've seen it repeated anywhere from three 
>> times to eighteen times. I've tried slashes with both directions with no 
>> difference. I've also tried the wikify widget without the output and mode 
>> options with no difference in behavior. Any ideas on why that might be 
>> happening?
>>
>> Thanks in advance.
>>
>>
>> \define newtext(image)
>>> src="./Images/$image$.webp">
>> \end
>>
>> \define newarchive(archive)
>>   ./Archival_images/$archive$
>> \end
>>
>> \define newImageEntry()
>>   <$vars
>> temp="$:/temp/NewImageEntry">
>> Image Filename:
>>   <$edit-text
>> tiddler=<>
>> field=filename
>> tag=input
>> class=fieldinput
>> size=64
>>   />
>> 
>> Archival Image Filename:
>>   <$edit-text
>> tiddler=<>
>> field=archive
>> tag=input
>> class=fieldinput
>> size=64
>>   />
>> 
>> Image Category:
>>   <$edit-text
>> tiddler=<>
>> field=category
>> tag=input
>> class=fieldinput
>> size=64
>> placeholder="Enter all categories separated by a comma."
>>   />
>> 
>> Image Label:
>>   <$edit-text
>> tiddler=<>
>> field=label
>> class=fieldinput
>> tag=input
>> placeholder="Enter a brief label for the image."
>> size=64
>>   />
>> 
>> Image Details:
>>   <$edit-text
>> tiddler=<>
>> field=details
>> class=fieldarea
>> tag=textarea
>> placeholder="Enter any detailed information about the image."
>>   />
>> 
>> Surnames:
>>   <$edit-text
>> tiddler=<>
>> field=surnames
>> tag=input
>> class=fieldinput
>> size=64
>> placeholder="Enter all surnames separated by a comma."
>>   />
>> 
>> <$button tooltip="save input"> 
>> {{$:/images/google-material-design/image/two-tone/24px/add-a-photo}} Add 
>> New Image
>>   <$vars
>> filename={{{ [titleget[filename]] }}}
>> archive={{{ [titleget[archive]] }}}
>> category={{{ [titleget[category]] }}}
>> label={{{ [titleget[label]] }}}
>> details={{{ [titleget[details]] }}}
>>   >
>>   <$wikify name="text" text="""<$macrocall $name=newtext 
>> image=<> />""" output=html  mode=inline>
>> <$wikify name="archive" text="""<$macrocall $name=newarchive 
>> archive=<> />""" output=html  mode=inline>
>>   <$set name="newtags" filter="[titleget[surnames]split[,]] 
>> [[image]]">
>> <$action-createtiddler
>>   $basetitle=<>
>>   text=<>
>>   category=<>
>>   details=<>
>>   label=<>
>>   tags=<>
>>   archive=<>
>>   hide-body="yes"
>> />
>>   
>> 
>>   
>> 
>> <$action-deletetiddler $filter="[]" />
>> 
>> <$button tooltip="cancel input"> {{$:/core/images/cancel-button}} 
>> Clear Entries
>>   <$action-deletetiddler $filter="[]" />
>> 
>>   
>> \end
>>
>>
>>

-- 
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/f7f665bd-d8d7-492c-8803-d31954db7639n%40googlegroups.com.


Re: [tw5] Re: Missing transcluded tiddlers question

2021-05-10 Thread Charlie Veniot
Good stuff.  I'll keep that in mind should I find I need to make the move.  
Thanks, Tones.

On Monday, May 10, 2021 at 9:55:43 PM UTC-3 TW Tones wrote:

> Charlie,
>
> This was one motivation for me to go to my own hosting decades ago because 
> my sites disappeared because of others bad behaviour a few times. Owning a 
> domain also reduces this likelihood. 
>
> However recently a clients site was blacklisted because of a hack in the 
> microsoft email/outlook solution in 365 and I learned the hard way how to 
> get off black lists. I can help professionally in this area (with a fee) or 
> discuss at a high level if you want to go that way.
>
> Tones
>
> On Monday, 10 May 2021 at 21:49:19 UTC+10 cj.v...@gmail.com wrote:
>
>> That makes sense.  Who knows what kind of nefarious junk can be sitting 
>> in any one subdomain.
>>
>> Yeah, last I checked in with network folk in my old job, so much easier 
>> to blacklist an entire site and put all staff in a position of filing an 
>> exception for each subdomain.
>>
>> Molasses-like process frustrating to folk like me in the application 
>> support trenches, but I understood the pains folk in the network/security 
>> trenches had to deal with.
>>
>> Thanks Tones, much appreciated !
>>
>> On Monday, May 10, 2021 at 2:33:41 AM UTC-3 TW Tones wrote:
>>
>>> FYI neocities is a Hosting site. In the past I have seen it blocked 
>>> because one of those sites is up to nefarious activities.  It should be 
>>> blocking with regards to the subdomains not the top domain but some 
>>> blacklisting does not take account of this.
>>>
>>> Tones
>>>
>>> On Monday, 10 May 2021 at 11:01:47 UTC+10 cj.v...@gmail.com wrote:
>>>
 Yeah, sounds like your network firewall is blocking access to 
 neocities.  I can't do anything about that.

 On Sun, May 9, 2021 at 9:55 PM David Gifford  wrote:

> Same message
>
>
>
>
>
> On Sun, May 9, 2021 at 7:48 PM Charlie Veniot  
> wrote:
>
>> Unless your firewall is suspicious of a redirect
>>
>> Would you mind trying a direct link to the tiddlywiki for me, to see 
>> if I should always be providing direct links going forward:  
>> https://tiddlywiki-programming.neocities.org/CJ_TiddlyWikiProgramming.html
>>
>> Thanks !
>>
>> On Sunday, May 9, 2021 at 9:14:44 PM UTC-3 Charlie Veniot wrote:
>>
>>> Are you using a work computer?  Could be the workplace firewall is 
>>> blocking access.
>>>
>>> On Sunday, May 9, 2021 at 9:11:53 PM UTC-3 Charlie Veniot wrote:
>>>
 Sounds like your computer does not allow access to neocities.  Not 
 sure why it would do that.  I know of nothing nefarious related to 
 neocities.

 On Sunday, May 9, 2021 at 6:11:28 PM UTC-3 David Gifford wrote:

> Chrome: " Your Internet access is blocked
>
> Firewall or antivirus software may have blocked the connection."
>
> On Sunday, May 9, 2021 at 4:09:44 PM UTC-5 David Gifford wrote:
>
>> "Firefox can’t establish a connection to the server at 
>> tiddlywiki-programming.neocities.org."
>>
>> Just now.
>>
>> -- 
>> 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/O_MSnQaesbo/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/752d6713-c4c4-4573-9a6f-9197f655d24an%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/O_MSnQaesbo/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/CANE%3DBF%2B8aPQR2i6A0iTqCWN%2BsV%3Dmgwehk0TJDoURn-FYAphe-A%40mail.gmail.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 

Re: [tw5] Re: Missing transcluded tiddlers question

2021-05-10 Thread TW Tones
Charlie,

This was one motivation for me to go to my own hosting decades ago because 
my sites disappeared because of others bad behaviour a few times. Owning a 
domain also reduces this likelihood. 

However recently a clients site was blacklisted because of a hack in the 
microsoft email/outlook solution in 365 and I learned the hard way how to 
get off black lists. I can help professionally in this area (with a fee) or 
discuss at a high level if you want to go that way.

Tones

On Monday, 10 May 2021 at 21:49:19 UTC+10 cj.v...@gmail.com wrote:

> That makes sense.  Who knows what kind of nefarious junk can be sitting in 
> any one subdomain.
>
> Yeah, last I checked in with network folk in my old job, so much easier to 
> blacklist an entire site and put all staff in a position of filing an 
> exception for each subdomain.
>
> Molasses-like process frustrating to folk like me in the application 
> support trenches, but I understood the pains folk in the network/security 
> trenches had to deal with.
>
> Thanks Tones, much appreciated !
>
> On Monday, May 10, 2021 at 2:33:41 AM UTC-3 TW Tones wrote:
>
>> FYI neocities is a Hosting site. In the past I have seen it blocked 
>> because one of those sites is up to nefarious activities.  It should be 
>> blocking with regards to the subdomains not the top domain but some 
>> blacklisting does not take account of this.
>>
>> Tones
>>
>> On Monday, 10 May 2021 at 11:01:47 UTC+10 cj.v...@gmail.com wrote:
>>
>>> Yeah, sounds like your network firewall is blocking access to 
>>> neocities.  I can't do anything about that.
>>>
>>> On Sun, May 9, 2021 at 9:55 PM David Gifford  wrote:
>>>
 Same message





 On Sun, May 9, 2021 at 7:48 PM Charlie Veniot  
 wrote:

> Unless your firewall is suspicious of a redirect
>
> Would you mind trying a direct link to the tiddlywiki for me, to see 
> if I should always be providing direct links going forward:  
> https://tiddlywiki-programming.neocities.org/CJ_TiddlyWikiProgramming.html
>
> Thanks !
>
> On Sunday, May 9, 2021 at 9:14:44 PM UTC-3 Charlie Veniot wrote:
>
>> Are you using a work computer?  Could be the workplace firewall is 
>> blocking access.
>>
>> On Sunday, May 9, 2021 at 9:11:53 PM UTC-3 Charlie Veniot wrote:
>>
>>> Sounds like your computer does not allow access to neocities.  Not 
>>> sure why it would do that.  I know of nothing nefarious related to 
>>> neocities.
>>>
>>> On Sunday, May 9, 2021 at 6:11:28 PM UTC-3 David Gifford wrote:
>>>
 Chrome: " Your Internet access is blocked

 Firewall or antivirus software may have blocked the connection."

 On Sunday, May 9, 2021 at 4:09:44 PM UTC-5 David Gifford wrote:

> "Firefox can’t establish a connection to the server at 
> tiddlywiki-programming.neocities.org."
>
> Just now.
>
> -- 
> 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/O_MSnQaesbo/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/752d6713-c4c4-4573-9a6f-9197f655d24an%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/O_MSnQaesbo/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/CANE%3DBF%2B8aPQR2i6A0iTqCWN%2BsV%3Dmgwehk0TJDoURn-FYAphe-A%40mail.gmail.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/bf29b1ae-30f6-4342-94ca-7f18d1ee4f9en%40googlegroups.com.


[tw5] Re: Curious behavior

2021-05-10 Thread TW Tones
Do share an example of the "corrupt values", if could point to the problem 
without jumping into the code, or will this code work on tiddlywiki.com, if 
not can you make it?

Tones

On Tuesday, 11 May 2021 at 06:58:28 UTC+10 History Buff wrote:

> All,
>
> I have a macro that has several edit text widgets and a button to save 
> these inputs to the fields of a newly created tiddler (see code below). I'm 
> having some issues with one particular field, namely the archive field. The 
> input is the filename of the image and what should be placed in the archive 
> field of the new tiddler is: ./Archival_images/filename. However, what ends 
> up being placed in there is the ./Archival_images/ string repeated a 
> seemingly random number of times. I've seen it repeated anywhere from three 
> times to eighteen times. I've tried slashes with both directions with no 
> difference. I've also tried the wikify widget without the output and mode 
> options with no difference in behavior. Any ideas on why that might be 
> happening?
>
> Thanks in advance.
>
>
> \define newtext(image)
> src="./Images/$image$.webp">
> \end
>
> \define newarchive(archive)
>   ./Archival_images/$archive$
> \end
>
> \define newImageEntry()
>   <$vars
> temp="$:/temp/NewImageEntry">
> Image Filename:
>   <$edit-text
> tiddler=<>
> field=filename
> tag=input
> class=fieldinput
> size=64
>   />
> 
> Archival Image Filename:
>   <$edit-text
> tiddler=<>
> field=archive
> tag=input
> class=fieldinput
> size=64
>   />
> 
> Image Category:
>   <$edit-text
> tiddler=<>
> field=category
> tag=input
> class=fieldinput
> size=64
> placeholder="Enter all categories separated by a comma."
>   />
> 
> Image Label:
>   <$edit-text
> tiddler=<>
> field=label
> class=fieldinput
> tag=input
> placeholder="Enter a brief label for the image."
> size=64
>   />
> 
> Image Details:
>   <$edit-text
> tiddler=<>
> field=details
> class=fieldarea
> tag=textarea
> placeholder="Enter any detailed information about the image."
>   />
> 
> Surnames:
>   <$edit-text
> tiddler=<>
> field=surnames
> tag=input
> class=fieldinput
> size=64
> placeholder="Enter all surnames separated by a comma."
>   />
> 
> <$button tooltip="save input"> 
> {{$:/images/google-material-design/image/two-tone/24px/add-a-photo}} Add 
> New Image
>   <$vars
> filename={{{ [titleget[filename]] }}}
> archive={{{ [titleget[archive]] }}}
> category={{{ [titleget[category]] }}}
> label={{{ [titleget[label]] }}}
> details={{{ [titleget[details]] }}}
>   >
>   <$wikify name="text" text="""<$macrocall $name=newtext 
> image=<> />""" output=html  mode=inline>
> <$wikify name="archive" text="""<$macrocall $name=newarchive 
> archive=<> />""" output=html  mode=inline>
>   <$set name="newtags" filter="[titleget[surnames]split[,]] 
> [[image]]">
> <$action-createtiddler
>   $basetitle=<>
>   text=<>
>   category=<>
>   details=<>
>   label=<>
>   tags=<>
>   archive=<>
>   hide-body="yes"
> />
>   
> 
>   
> 
> <$action-deletetiddler $filter="[]" />
> 
> <$button tooltip="cancel input"> {{$:/core/images/cancel-button}} 
> Clear Entries
>   <$action-deletetiddler $filter="[]" />
> 
>   
> \end
>
>
>

-- 
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/3fb741bf-9040-45e1-a141-d3f8852691ecn%40googlegroups.com.


Re: [tw5] How to show N symbols based on numeric tiddler field value

2021-05-10 Thread TW Tones
jack,

In my view the *list widget is the core of tiddlywiki 5 *as the For Each 
Tiddler plugin for for tiddlywiki classic. The world and tiddlywiki can be 
handled using lists or sets so do trust in the fact that filters and the 
list widget are the most essential tiddlywiki constructs.

But given the shorter form is the triple curly braces, or "filtered 
transclusions 
",  
this is becoming a popular approach in many solutions, have a close look at 
that. See my reference here 


I have being involved with tiddlywiki for more than a decade, if that helps 
add a little authority to my assertions.

Regards
Tones

On Tuesday, 11 May 2021 at 05:35:31 UTC+10 ja...@baty.net wrote:

> Mohammad, 
>
> This also solves the thing I was just working on, and that is hiding stars 
> when there is no rating. Nice!
>
> Thanks to both of you for helping with this. I've got so much to learn.
>
> Jack
>
>
>
> On Monday, May 10, 2021 at 3:15:02 PM UTC-4 Mohammad wrote:
>
>> Hi Jack,
>>  If you want to keep your own solution then go with Soren! 
>> What Soren provided shows the trick!
>>
>> Another solution is to  change the content of your template (
>> https://rudimentarylathe.wiki/#%24%3A%2Fplugins%2Faaldrich%2Ftables%2Ftemplate%2Fbody%2Frate
>> )
>> with the below wikitext
>>
>> \define ratingFilter() [range[1,$(rating)$]]
>>
>> <$list filter="[has[rating]get[rating]]" variable=rating 
>> emptyMessage="">
>> 
>> <$list filter=<> > {{$:/core/images/star-filled}}
>> 
>>
>>
>> Also in the example https://rudimentarylathe.wiki/#My%20Books%20-%20TEST 
>> clear extra wikitext, delete the macro getSras and just
>>
>> Working on a better way to render the list of books.
>>
>> Here's a failed attempt using ~TiddlyTables:
>>
>> <>
>>
>>
>> Tested on your wiki, I get the below result
>>
>> [image: image.png]
>>
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Mon, May 10, 2021 at 11:19 PM Jack Baty  wrote:
>>
>>> Mohammad,
>>>
>>> Thank you! Your sample helps me understand how to do this kind of 
>>> rendering, though, which is great. (I still seem to overlook using $list 
>>> for seemingly everything). 
>>>
>>> I'm using Tobias' rate plugin for setting and displaying the ratings on 
>>> individual tiddlers and it works well. 
>>>
>>> I'm now working on getting the macro to run correctly when used in a 
>>> template in the TiddlyTables plugin. I've tried every combination I can 
>>> think of in the column's view template but can't get the macro to "see" the 
>>> rating value for each row. If I render a table "by hand" it works fine.
>>>
>>> Maybe someone can spot an obvious error in my implementation here:
>>>
>>>   https://rudimentarylathe.wiki/#My Books - TEST
>>>
>>> There's a custom template for rating that contains the following:
>>>
>>> ```
>>> 
>>> <$macrocall $name="getStars" numstars={{!!rating}} />
>>> 
>>> ```
>>> I feel like I'm going to need "<>"  somewhere but can't 
>>> seem to figure out where.
>>>
>>> Anyway, thanks for the leg up. I can fall back to my hand-rendered table 
>>> easy enough if I can't figure out how to use it in TiddlyTables.
>>>
>>>
>>> On Monday, May 10, 2021 at 10:52:34 AM UTC-4 Mohammad wrote:
>>>
 Hi Jack,
  The Vote plugin from Kooma Library do rating and you can 
 retrieve stars and compare and analyse!

 But if you want your simplest solution the below is one! Wait for 
 better, I sure you will get alternatives


 \define getStars() <$list filter="[range[1,$(vl-stars)$]]">*

 <$list filter="[all[current]has[rating]get[rating]]" variable="vl-stars">
 <>
 


 The above can be used inside a vietemplate if you like to have stars 
 automatically displayed!
 Adopt if you like to use a table! for a specific tiddler!




 Best wishes
 Mohammad


 On Mon, May 10, 2021 at 7:03 PM Jack Baty  wrote:

> I have a "rating" field that contains a number from 1-5.
>
> When generating a table (or list) of rated tiddlers, I want to display 
> the rating as a number of stars. e.g. ★★ or ★★★ etc corresponding to the 
> value in rating for each tiddler.
>
> For the life of me, I can't figure out how to do this. Is there some 
> form of string math like "★*rating"? Do I need to choose from a 
> pre-defined 
> list? Do I need to just give up and change the field to contain the 
> actual 
> stars? I'm stumped, sorry.
>
> Jack
>
>
>
>
> -- 
> 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 
> 

Re: [tw5] Is blockchain still not for TW?

2021-05-10 Thread TW Tones
If I may remind all, block chain is simply an algorithm, it can be used in 
many ways including in ways counter to its well known applications, such as 
cryptocurrencies. A  Distributed Ledger can serve many functions and you 
can have open transactions that a fully traceable, in fact that is a 
potential strength,  as usual its all about agreements in the way we 
operate, the rules and conventions and scope. For example I could maintain 
my own blockchain for my own ledger to achieve one thing, or I could share 
a block chain with partners and trusted collaborators just for us. Block 
chains Distributed ledger is part of its appeal for crypto currency, but 
this has moral and ethical issues as is seen by the use of crypto 
currencies for money laundering etc...

It is we who chose what to do with any algorithm.

I for one believe the tiddler concept lends itself to placement on a 
blockchain, And from there thousands of innovative solutions could develop. 
In some ways this is the same as adding tiddler to a database, but has 
other results as well.

Tones


On Tuesday, 11 May 2021 at 06:15:01 UTC+10 Jon wrote:

> Just in case this is of interest - seems to be quite cutting edge 
> https://qortal.org/
>
> On Monday, 10 May 2021 at 21:08:25 UTC+1 hww...@gmail.com wrote:
>
>> Thanks for the reply.  It will ceratinly help me to think of these as 
>> distinct technologies, at  least until I get a bit more "han(d)s-on" 
>> experience :-)
>>
>>
>> On Monday, May 10, 2021 at 12:35:24 PM UTC-4 inmy...@gmail.com wrote:
>>
>>> A distributed ledger and a blockchain are distinct technologies. You can 
>>> use a blockchain to build a verifiable distributed ledger (verifiable in 
>>> the sense of being able to detect tampering after data has been entered, 
>>> there aren't any checks on the validity of the source data), but it is far 
>>> from the only way to do so. Distributed hash tables have been very 
>>> successful as distributed data stores that are far more scalable than 
>>> bitcoin in the long term, in a large part because it doesn't have the 
>>> continuously growing record of all previous actions, and it doesn't have 
>>> the huge security and privacy issues that a blockchain has.
>>>
>>> So distributed ledgers are very interesting, but while blockchains can 
>>> be used as distributed ledgers they are not the same thing.
>>>
>>> On Monday, May 10, 2021 at 4:09:25 PM UTC+2 hww...@gmail.com wrote:
>>>
 I remain interested in Distributed Ledger Technology much more than I 
 am interested in BitCoin and its other financial derivatives, that even 
 Central Banks are considering as Cash replacements.  ( And I am not at all 
 interested in NFTs since the Name says it all ... "Non Fungible" ... )

 One thing I really appreciate about this communitiy is the 
 technological creativity that emerges here.  In part, I think it results 
 from the fact that community membership is quite diverse, bring a lot of 
 different experience and insight to bear.

 As more and more DLT systems emerge, it becomes appealing to me to be 
 able to use partial segments from multiple systems as an effective 
 combination lock.  For example, a combination of:

- The first 4 digits of the latitue and longiture of (as reported 
by my cell phone) 
- The last 4 digits of an active Credit Card (verifiable against 
Credit Bureau data, together with full Address)
- A reference to a recognized Social Media site (preferably with a 
Pictire and peer reviewed) e.g. linkedIn or Flickr
- The last 4 digits of my Passport number
- ...

 Depending need, I can select various combinations that even include a 
 startTime and validity Duraction.
  
 With a bit of proper encoding into a Unicode hash, it becomes possible 
 to even make such a key remarkably short since there are about 2.2 million 
 useful Unicode points have been defined, ensuring that (2e6)e4 gives more 
 than enough room!

 The appeal is that I can create distinct Tokens that meet my Security 
 and Privacy needs, but that others can verify from reliable sources of 
 public Definitive Data.

 Comments will be appreciated.

 Cheers,
 Hans

 On Monday, May 10, 2021 at 5:14:52 AM UTC-4 inmy...@gmail.com wrote:

> or perhaps I am being too hard on the idea. Instead if you all want I 
> can add blockchain to tiddlywiki and sell NFTs pointing to wikis that I 
> made, like the original twederation wiki or the interaction fiction wiki.
>
> On Monday, May 10, 2021 at 10:54:03 AM UTC+2 Jed Carty wrote:
>
>> Yes, the central question is could blockchain be useful to 
>> tiddlywiki. And so far the only answer has been to use it as a proof of 
>> existence by storing what is in one blockchain (file hashes in git) in a 
>> different from in another block chain.
>>

[tw5] Re: String manipulations on textarea input

2021-05-10 Thread TW Tones
Quick tips


   - Text areas have lines delimited by \n
   - if you have the text in a filter you can use splitregexp[\n]] to split 
   it into each line, then split again on split[:]] to get the first[] item or 
   the fieldname:value
  - text must be handled differently as its multiline.
  - you can then join[] back as needed.
   - Note the fieldname:values resembles a datatiddler format, and may 
   present an opportunity.

Tones
On Monday, 10 May 2021 at 21:27:19 UTC+10 lamn...@gmail.com wrote:

> Ah yes, thanks for reminding me. Although it was purely for showing how I 
> want to split the date per field. I haven't yet reached the point where I'm 
> trying to reference actual fields.
>
> I'm trying to see if some or even most of what I've described can be 
> achieved with <$list filter>-ing through the text area input. Maybe 
> combining splits, regexes and splitregexes. 
>
> The other approach would be to code a JavaScript macro but that gets quite 
> more complicated and is not as easy to play with until I get it right.
>
> On Monday, May 10, 2021 at 12:33:35 PM UTC+3 PMario wrote:
>
>> Hi,
>> *Field names *have to be *lowercase *only.
>> -m
>>
>> On Monday, May 10, 2021 at 11:25:48 AM UTC+2 lamn...@gmail.com wrote:
>>
>>> I'm moving my personal journal written in markdown files into 
>>> Tiddlywiki. I'm looking for a way to perform string/text manipulation on 
>>> the input of an <$edit-text>.
>>>
>>> Currently, each entry starts with a ##header which was the date the 
>>> entry was written. A blank line follows and then one or more paragraphs of 
>>> the main entry body:
>>>
>>> ## MMDD
>>>
>>> Lorem ipsum dolor sit amet, consectetur adipiscing elit...
>>>
>>> I've created a Journal Entry tiddler page which would have an <$edit-text 
>>> tag=textarea> widget. I'll manually paste in the textarea each journal 
>>> entry and by pressing a button it will be split into the following 
>>> elements/fields, which would then be added as a new tiddler with the 
>>> following fields:
>>>
>>> Title: MMDD
>>> Text: Lorem ipsum (etc)
>>> Year: 
>>> Month: MM
>>>
>>> I'm looking for a way way to perform all the little subtring() 
>>> manipulations and isolating the header line and the main body. I've already 
>>> figured how to create a new tiddler from a series of existing fields. 
>>>
>>

-- 
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/8e647454-4fc8-4a58-af63-5a28a0b17873n%40googlegroups.com.


[tw5] Re: Using formulas plugin result in <$reveal widget

2021-05-10 Thread TW Tones
Quick tip
If you get your number into a variable you can then use the sign operator 
 you could then have two or three 
css classes defined and have a filter determine which of these three css 
classes to apply to the display of the number, or use the result of the 
sign in a list fillter, reveal widget etc...

Untested thinking here

<$set name=cssclassname 
filter="[sign[]match[-1]then[red-bold]else[black]]">

>><>

Tones

On Tuesday, 11 May 2021 at 07:04:04 UTC+10 tru...@gmail.com wrote:

> Hi! First time posting. I've been trying to figure this out all day, but I 
> have to concede I won't figure it out.
>
> My first big TW project is this personal budget calculator: 
> https://trumad.github.io/budgetlywiki/
>
> I'd really love to make the "Budget delta" result green when it's a 
> positive number, and red when it's a negative number. You can see how the 
> delta is calculated by editing the " Budget Overview" tiddler:
>
> (= {{Income Total}} - {{Expenses Total}} =)
>
> And you can see that the tiddlers Income Total and Expenses Total each do 
> their own calculations before one gets subtracted from the other. For 
> example:
>
> (= sum([tag[Expenses]get[value]]) =)
>
> So what I tried to do was make a new tiddler called budgetDelta which 
> would do the delta calculation. And then use the <$reveal widget to do a 
> "lt" calculation on the budgetDelta tiddler:
>
> <$reveal type="lt" state="budgetDelta" text="0">
> Less than 0!
> 
>
> However, it doesn't work if the budgetDelta tiddler has the formulas 
> syntax in it. The calculation doesn't seem to be done. It maybe coerces the 
> actual text of the formula to a number, and then decides whether it's less 
> than 0, because if the calculations make the delta a minus number, it still 
> doesn't register as being under 0. So I changed budgetDelta to just a plain 
> integer in wikitext and it worked as expected. But obviously I need it to 
> work as a formula, which the <$reveal widget uses to decide whether the 
> value is less than 0.
>
> I guess maybe the formulas plugin doesn't work properly with reveal, and I 
> should find another way. But I'm stumped.
>
> I hope I've been making some sense here. If anyone finds a way to make the 
> text red if the number is less than 0, I'd be very grateful. It's obviously 
> not a huge priority; the thing works as is. But I'm keen to learn what I'm 
> doing wrong and how i can improve my TW knowledge. Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b090484d-8d0a-4913-b912-9d949277bba7n%40googlegroups.com.


[tw5] Re: Options for keeping revision history?

2021-05-10 Thread TW Tones
Si,

Another approach or source on inspiration may be the core plugin *Save 
Trail*: Automatically download modified tiddlers which says;

*This plugin causes TiddlyWiki  to 
continuously download (as a JSON file) the contents of any tiddler that is 
manually changed by any of several means:*

   - *Confirming an edit*
   - *Deleting tiddlers*
   - *Imports*
   - *Renames/relinks*
   - *Optionally, typing in draft tiddlers can trigger a download*

*Where appropriate, separate 'before' and 'after' files are downloaded. 
Configured correctly, the browser will download the files silently in the 
background, and they can be used as a backup in case of accidental data 
loss.*

*However read the warnings!*


*Regards*

*Tones*
On Monday, 10 May 2021 at 02:40:48 UTC+10 si wrote:

> I've become kind of interested in keeping a full revision history of my 
> wiki - i.e. be able to see every single change I've made to every tiddler.
>
> I know about http://j.d.revisions.tiddlyspot.com/, which I like a lot, 
> but it has a couple of disadvantages for my use case:
>
>1. Revisions are only created when you click the save button from the 
>edit toolbar. Most of the time I save tiddlers with Ctrl+Enter. I also use 
>Streams a lot, where again changes made to tiddlers won't be recorded by 
>the plugin. 
>2. I use a single html wiki for all my stuff. Presumably having a new 
>tiddler created for every change I make will soon start to inflate and 
> slow 
>down my wiki? Or maybe I am wrong about this?
>
> So I guess I'm interested in whether it is even practical to keep such an 
> extensive history of my wiki use, and if so what options are available?
>

-- 
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/459750bb-dc1c-430b-af38-1df61de57ad1n%40googlegroups.com.


Re: [tw5] Re: A basket on the sidebar

2021-05-10 Thread TW Tones
Mohammad,

I would like to know more about this subcategory issue for plugins. 

However id this in the direction of which you speak?,  my own solution is 
to give a plugin a new plugin-type field value, such as data (not plugin). 
Then Its simple to duplicate one of the existing plugin tabs to list only 
plugins of the plugin-type data, and otherwise they behave the same as 
standard plugins including shadows etc...

I have discovered what all the technical methods are to achieve the outcome 
I need, its time that is my challenge.

Regards
Tones

On Monday, 10 May 2021 at 20:38:36 UTC+10 Mohammad wrote:

> On Mon, May 10, 2021 at 10:12 AM TW Tones  wrote:
>
>> Further feature extensions;
>>
>>- The ability to build cumulative json tiddlers or plugins.
>>- A Cumulative plugin would allow you to drop titles on a basket, 
>>click to create a plugin. then add additional tiddlers and update it, and 
>>update the plugin with all edited tiddlers. 
>>   - This would allow the building of transferable data tiddlers
>>   - Quick updates to a plugin
>>   - Incorporate changes to a plugin according to the edited shadow 
>>   tiddlers.
>>  - Perhaps one could even play with core updates this way
>>   
>> This has certainly sparks my creative inspiration, I could have code the 
>> basket, but never did, now it exists - wow.
>>
>
> I have developed an easy plugin maker! which is quite similar to what you 
> said there is two issues to be addressed
>
> 1. Right now it seems TW does not support subcategory to distribute 
> contents as plugin and we had discussion with Jeremy if the title plugin is 
> suitable for such distribution (see the ebook edition of Tiddlywiki). There 
> were suggestions by Mario and Jeremy to use subcategories to distribute 
> other contents (like presentations, brochures, booklets, articles, novels,  
> ... )
> 2. A standard plugin in my opinion shall meet some minimum requirements 
>
> ّ 
>
>
>  
>
>>
>> Tones
>>
>> On Monday, 10 May 2021 at 12:05:40 UTC+10 TW Tones wrote:
>>
>>> Gentlemen,
>>>
>>> Simply leveraging the idea of the basket, I am exploring a set of 
>>> related methods to extend its functionality. 
>>>
>>> Behind this is a desire to make lists of tiddlers a first class citizen 
>>> in tiddlywiki.
>>>
>>> My time is limited but I hope to see or design myself if no one else 
>>> does.
>>>
>>>- Have a single click to make more baskets (or managed lists)
>>>- drag/Save basket to JSON tiddler
>>>- drag/Save  basket to JSON tiddler and change to a plugin
>>>- Allow a filter to be used to add tiddlers to any basket.
>>>- Handling the list of titles in a basket, rather than the tiddler 
>>>content.
>>>   - I would like a button on tiddlers containing a list, to be 
>>>   draggable to the basket
>>>   - I would like to be able to drag the list of tiddlers in the 
>>>   basket to the above list icon to update its list field, 
>>>  - drop to add basket titles to existing list field
>>>  - ctrl-drop replace existing list field with basket titles
>>>   - I would love to be able to generate a tiddler with a list of 
>>>   titles and start referring it to a list tiddler. we can add and 
>>> remove 
>>>   titles from, reorder and drag and drop as above.
>>>  - The basket idea can support this nicely.
>>>   
>>> If someone like the wonderful Mohammad can run with these ideas, or I 
>>> can collaborate to see them to fruition it would be great, but a lot to 
>>> ask, alternatively I will build them in time.
>>>
>>> later I would like
>>>
>>>- Save the current story as a list
>>>- Restore any list and open tiddlers in the story.
>>>- Save the history list to a basket/list
>>>- Have seperate named stories/history lists that can be "activated"
>>>- Have any generated filter driven lists that can be manipulated 
>>>like a basket, eg recent, haschanged, story, my 
>>> username/created/modified.
>>>
>>> The worlds is our oster, Our oster is tiddlywiki.
>>>
>>> Regards
>>> Tones
>>>
>>> On Monday, 10 May 2021 at 05:39:27 UTC+10 David Gifford wrote:
>>>
 Thanks Mohammad, works great! I even figured out how to turn the text 
 field into a large edit-text area, and I moved the clear box button next 
 to 
 the tiddler title link, to clear up some vertical space. See attached 
 image. 

 On Sunday, May 9, 2021 at 12:22:00 AM UTC-5 Mohammad wrote:

> David,
>  In another thread there is discussion on drag and drop features! I 
> bring one example here!
>
> The attached tiddler shows a drop zone and if you drag a tiddler to on 
> the drop zone
> it will grab the title of dragged tiddler and shows its text! Also all 
> of its field
> tag with $:/tags/Sidebar and test on tiddlywiki.com
>
> You add this to the Basket if you like!
>
>
> Best wishes
> Mohammad
>
>
> On 

Re: [tw5] Re: A basket on the sidebar

2021-05-10 Thread TW Tones
Mario,

Yes, I remember the open story though not the details, I need to look it up 
again. I recall this because I had ideas to make lists and stories easier 
to implement, less as a UI feature and more as a functionality issue. I 
think while I now see all Aspects of the technical feasibility and 
functionality consideration still needs to be given to how these 
fundamental lists and their interplay with other lists will be represented 
in the User Interface. The basket metaphor is one good example of part of 
the solution. The other may be a toolbar icon from which to drag a list 
contained in a tiddler, or on which to drop a list, tiddler title (or 
groups of titles) to add to that list.

Tones

On Tuesday, 11 May 2021 at 06:58:43 UTC+10 PMario wrote:

> Hi Tony, 
>
> Reading this reminds me about may "open-story" plugin. Not 100% the same, 
> but imo it's close. 
> The disadvantage atm is that the UI isn't understood very well. 
>
> -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/0dfbcb72-881a-4327-9460-83336f660194n%40googlegroups.com.


Re: [tw5] [Announcement] Sydney TWIG - TiddlyWiki Interest Group

2021-05-10 Thread TW Tones
Thanks Jeremy,

All.

Let us see if I can encourage more people in the Group to join and 
contribute. 

If there are other TWIG's or otherwise named meetups. perhaps the hosts 
could let me know of their knowledge and experience running these and 
publicising them.

Tegared
Tones/Tony


On Tuesday, 11 May 2021 at 06:15:56 UTC+10 Jeremy Ruston wrote:

> Hi Tony,
>
> Great stuff, thank you! It’s excellent to see another TWIG spring up.
>
> I posted it on Twitter:
>
> https://twitter.com/TiddlyWiki/status/1391825474435878915
>
> Best wishes
>
> Jeremy
>
>
>
>
>
> On 10 May 2021, at 03:22, TW Tones  wrote:
>
> Folks,
>
> I just want to let you know I have just invested in Meetup 
>  and Zoom 
> accounts to start a Sydney TWIG - TiddlyWiki Interest Group. Of course if 
> you can bear our +10 GMT meeting times anyone is welcome.
>
> I would also love support from this community to promote my Meetup group 
> so please share and join to give us a boost.
>
> If your interested in attending or developing such a group in your local 
> area do come and join our meetup group 
>  
> https://www.meetup.com/sydney-twig-tiddlywiki-interest-group.
>
> Our First meeting well be 25th of May at 7pm AEST (Australian Eastern 
> Standard Time +10 UTC) 
> 
> Sydney TiddlyWiki Interest Group (Sydney TWIG) is the first meeting in 
> what we hope will be many, for new and existing users and enthusiasts, of 
> the TiddlyWiki platform. Starting as a single file website or application 
> TiddlyWiki's capabilities have earned it the right to be called a platform 
> for personal productivity, website development and application development. 
> We believe it is the Key to democratising software and the internet for all.
>
> *The Group aims*
>
>
>
>
> * To build and bring together enthusiasts for TiddlyWiki.com 
>  the Free open source software platform anyone can 
> use to build apps, smart documents, websites and a lot more.TiddlyWiki is a 
> force for good opening up and democratising access for anyone to modern 
> application (apps) and websites.Anyone welcome but we plan to have local 
> events in Sydney and Australia.*  
>
> In time I hope we may be meeting some members in person in Sydney/Canberra 
> etc... 
>
> Any ideas and comments are welcomed in this thread.
>
> Tones
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/a34c1cc8-c7dd-4ad8-8880-4b4d4fb04113n%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/1cc1ad62-7ea6-4a5d-acc5-fa7f4f0cfb5dn%40googlegroups.com.


Re: [tw5] A tour through my Zettelkasten

2021-05-10 Thread Soren Bjornstad
On Monday, May 10, 2021 at 2:43:34 PM UTC-5 Mohammad wrote:

> One question: How do you select the categories in the Write tab? I mean 
> for Ztellkasten point of view?
> I watch the viedo but not quite understand your philosophy here!
>

I'm not sure I understand the question – are you asking how, technically, 
the contents of each tab are aggregated, or why I chose that list of 
"looking for attention" conditions?
 

> Also the Explorer while we have the More Tab!
>

The Explorer is intended to be a simplified version of the More tab for use 
in the public wiki. I just haven't bothered to hide it in the private one 
because it hasn't gotten in my way, but it would likely make sense to do so 
now that I've stopped making changes to it frequently.
 

> I like to adopt the tiddler reference explorer in minimal yet flexible 
> form and sidebar extra tabs in a plugin (using a different taste).
> I cannot see any license in your wiki, so I want to get permission if I am 
> allowed to use both these ideas in a new plugin!
>

MIT license: 
https://zettelkasten.sorenbjornstad.com/#PublicHomepage/Copyright

-- 
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/19af44e2-d653-4fb4-9c94-2d7e1f0b0267n%40googlegroups.com.


[tw5] Re: Options for keeping revision history?

2021-05-10 Thread Soren Bjornstad
Ah, fair enough.

On Monday, May 10, 2021 at 3:42:48 PM UTC-5 Anjar wrote:

> @Soren you're right, I was only thinking on the single file edition where 
> it would be difficult to follow a tiddler across time if the title is 
> changed
>
> mandag 10. mai 2021 kl. 21:07:19 UTC+2 skrev Soren Bjornstad:
>
>> On Monday, May 10, 2021 at 9:10:40 AM UTC-5 Anjar wrote:
>>
>>> Git isn't able to take care of title changes
>>
>>
>> Really? Git normally detects renames just fine unless you massively 
>> change the contents at the same time you change the filename. I found some 
>> examples in my own folder wiki controlled by Git too.
>>
>

-- 
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/83e45ce6-f5f0-4c0a-9068-f8f425d0ef51n%40googlegroups.com.


[tw5] Using formulas plugin result in <$reveal widget

2021-05-10 Thread tru...@gmail.com
Hi! First time posting. I've been trying to figure this out all day, but I 
have to concede I won't figure it out.

My first big TW project is this personal budget calculator: 
https://trumad.github.io/budgetlywiki/

I'd really love to make the "Budget delta" result green when it's a 
positive number, and red when it's a negative number. You can see how the 
delta is calculated by editing the " Budget Overview" tiddler:

(= {{Income Total}} - {{Expenses Total}} =)

And you can see that the tiddlers Income Total and Expenses Total each do 
their own calculations before one gets subtracted from the other. For 
example:

(= sum([tag[Expenses]get[value]]) =)

So what I tried to do was make a new tiddler called budgetDelta which would 
do the delta calculation. And then use the <$reveal widget to do a "lt" 
calculation on the budgetDelta tiddler:

<$reveal type="lt" state="budgetDelta" text="0">
Less than 0!


However, it doesn't work if the budgetDelta tiddler has the formulas syntax 
in it. The calculation doesn't seem to be done. It maybe coerces the actual 
text of the formula to a number, and then decides whether it's less than 0, 
because if the calculations make the delta a minus number, it still doesn't 
register as being under 0. So I changed budgetDelta to just a plain integer 
in wikitext and it worked as expected. But obviously I need it to work as a 
formula, which the <$reveal widget uses to decide whether the value is less 
than 0.

I guess maybe the formulas plugin doesn't work properly with reveal, and I 
should find another way. But I'm stumped.

I hope I've been making some sense here. If anyone finds a way to make the 
text red if the number is less than 0, I'd be very grateful. It's obviously 
not a huge priority; the thing works as is. But I'm keen to learn what I'm 
doing wrong and how i can improve my TW knowledge. Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ba47d2b9-01a8-486b-8b0f-2761c47f4236n%40googlegroups.com.


[tw5] Re: [Announcement] Sydney TWIG - TiddlyWiki Interest Group

2021-05-10 Thread David Gifford
oooh 4am Mexico City time. Have a great meeting without me!

On Sunday, May 9, 2021 at 9:22:44 PM UTC-5 TW Tones wrote:

> Folks,
>
> I just want to let you know I have just invested in Meetup 
>  and Zoom 
> accounts to start a Sydney TWIG - TiddlyWiki Interest Group. Of course if 
> you can bear our +10 GMT meeting times anyone is welcome.
>
> I would also love support from this community to promote my Meetup group 
> so please share and join to give us a boost.
>
> If your interested in attending or developing such a group in your local 
> area do come and join our meetup group 
>  
> https://www.meetup.com/sydney-twig-tiddlywiki-interest-group.
>
> Our First meeting well be 25th of May at 7pm AEST (Australian Eastern 
> Standard Time +10 UTC) 
> 
> Sydney TiddlyWiki Interest Group (Sydney TWIG) is the first meeting in 
> what we hope will be many, for new and existing users and enthusiasts, of 
> the TiddlyWiki platform. Starting as a single file website or application 
> TiddlyWiki's capabilities have earned it the right to be called a platform 
> for personal productivity, website development and application development. 
> We believe it is the Key to democratising software and the internet for all.
>
> *The Group aims*
>
>
>
>
> * To build and bring together enthusiasts for TiddlyWiki.com the Free open 
> source software platform anyone can use to build apps, smart documents, 
> websites and a lot more.TiddlyWiki is a force for good opening up and 
> democratising access for anyone to modern application (apps) and 
> websites.Anyone welcome but we plan to have local events in Sydney and 
> Australia.*  
>
> In time I hope we may be meeting some members in person in Sydney/Canberra 
> etc... 
>
> Any ideas and comments are welcomed in this thread.
>
> Tones
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8dcba63d-b92b-4d1d-af57-0e7fa3344609n%40googlegroups.com.


Re: [tw5] Re: A basket on the sidebar

2021-05-10 Thread PMario
Hi Tony, 

Reading this reminds me about may "open-story" plugin. Not 100% the same, 
but imo it's close. 
The disadvantage atm is that the UI isn't understood very well. 

-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/c383dfb9-a0ef-448f-b7e5-c9a06504d32fn%40googlegroups.com.


[tw5] Curious behavior

2021-05-10 Thread History Buff
All,

I have a macro that has several edit text widgets and a button to save 
these inputs to the fields of a newly created tiddler (see code below). I'm 
having some issues with one particular field, namely the archive field. The 
input is the filename of the image and what should be placed in the archive 
field of the new tiddler is: ./Archival_images/filename. However, what ends 
up being placed in there is the ./Archival_images/ string repeated a 
seemingly random number of times. I've seen it repeated anywhere from three 
times to eighteen times. I've tried slashes with both directions with no 
difference. I've also tried the wikify widget without the output and mode 
options with no difference in behavior. Any ideas on why that might be 
happening?

Thanks in advance.


\define newtext(image)
   
\end

\define newarchive(archive)
  ./Archival_images/$archive$
\end

\define newImageEntry()
  <$vars
temp="$:/temp/NewImageEntry">
Image Filename:
  <$edit-text
tiddler=<>
field=filename
tag=input
class=fieldinput
size=64
  />

Archival Image Filename:
  <$edit-text
tiddler=<>
field=archive
tag=input
class=fieldinput
size=64
  />

Image Category:
  <$edit-text
tiddler=<>
field=category
tag=input
class=fieldinput
size=64
placeholder="Enter all categories separated by a comma."
  />

Image Label:
  <$edit-text
tiddler=<>
field=label
class=fieldinput
tag=input
placeholder="Enter a brief label for the image."
size=64
  />

Image Details:
  <$edit-text
tiddler=<>
field=details
class=fieldarea
tag=textarea
placeholder="Enter any detailed information about the image."
  />

Surnames:
  <$edit-text
tiddler=<>
field=surnames
tag=input
class=fieldinput
size=64
placeholder="Enter all surnames separated by a comma."
  />

<$button tooltip="save input"> 
{{$:/images/google-material-design/image/two-tone/24px/add-a-photo}} Add 
New Image
  <$vars
filename={{{ [titleget[filename]] }}}
archive={{{ [titleget[archive]] }}}
category={{{ [titleget[category]] }}}
label={{{ [titleget[label]] }}}
details={{{ [titleget[details]] }}}
  >
  <$wikify name="text" text="""<$macrocall $name=newtext 
image=<> />""" output=html  mode=inline>
<$wikify name="archive" text="""<$macrocall $name=newarchive 
archive=<> />""" output=html  mode=inline>
  <$set name="newtags" filter="[titleget[surnames]split[,]] 
[[image]]">
<$action-createtiddler
  $basetitle=<>
  text=<>
  category=<>
  details=<>
  label=<>
  tags=<>
  archive=<>
  hide-body="yes"
/>
  

  

<$action-deletetiddler $filter="[]" />

<$button tooltip="cancel input"> {{$:/core/images/cancel-button}} Clear 
Entries
  <$action-deletetiddler $filter="[]" />

  
\end


-- 
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/9f137909-dd7c-4084-8e70-1d253d417d58n%40googlegroups.com.


[tw5] Re: $tw.wiki.renderTiddler("text/html", tiddler); & templates

2021-05-10 Thread James Anderson
thanks again.

For future google searchers:

```
var target = _this.document.createElement("div");
var tiddler = "the name of the tiddler you want to transclude";
..
var t = $tw.wiki.makeTranscludeWidget(tiddler, {document:document});
target.innerHTML = "";
t.render( target, null);
```

On Monday, 10 May 2021 at 21:35:09 UTC+1 saq.i...@gmail.com wrote:

> I recommend looking at the source code for that method, as well as how it 
> is used other places in the core. Either use grep on the command line, or 
> the github search is actually pretty good: 
> https://github.com/Jermolene/TiddlyWiki5/search?q=makeTranscludeWidget
>
>  If you get stuck and still can't figure it out, please post the code for 
> your widget.
>
>
> On Monday, May 10, 2021 at 10:27:17 PM UTC+2 james.w@gmail.com wrote:
>
>> Thanks,
>>
>> what does $tw.wiki.makeTranscludeWidget("fig"); actually return?  what 
>> should i be setting the contents of my DOM node to with the object returned 
>> from this?
>>
>> Thanks,
>> James
>>
>> On Monday, 10 May 2021 at 13:56:31 UTC+1 saq.i...@gmail.com wrote:
>>
>>> Make a parse tree including a transclude widget or look at the 
>>> wiki.makeTranscludeWidget method.
>>>
>>>
>>> On Monday, May 10, 2021 at 2:32:03 PM UTC+2 james.w@gmail.com wrote:
>>>
 in a tiddler {{fig}} works transcluded into another widget, so i guess 
 i'm asking : what it the widget way of performing/rendering a transclusion?

 On Sunday, 9 May 2021 at 19:24:54 UTC+1 James Anderson wrote:

> Hello,
>
> I'm trying to render a tiddler within another tiddler via a widget. I 
> have attached a basic example in which i have a widget "twsr" which will 
> schedule tiddlers, that match the tags in the parent tiddler, to be shown 
> in the parent for the user to grade (basically a cersion of 
> https://en.wikipedia.org/wiki/SuperMemo in TW)
>
> In this case i have tiddler "study fruits" which is tagged "fruit" and 
> "veg" it should pick up any other tiddlers tagged with these and show 
> them 
> in "study fruits" one by one for grading. In this example the first one 
> it 
> will show is the "figs" tiddler.
>
> I'm calling "var cnt = $tw.wiki.renderTiddler("text/html", tiddler);" 
> in the twsr widget to render the tiddler.
>
> "fig" uses "Fruit Template" tiddler which is a simple tiddler 
> containing:
>
> <$view field="title"/>
>
> If i view fig individually i see what i expect. However rendering 
> "fig" via $tw.wiki.renderTiddler("text/html", tiddler); in "Study Fruits" 
> is not what i expect (basically the title via the view field is missing) 
> What is the correct way to do this?
>
> Thanks
> James
>
>
>
>
>

-- 
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/6dbaf68b-2d42-46cb-a33c-87e6ba486d83n%40googlegroups.com.


[tw5] Re: Options for keeping revision history?

2021-05-10 Thread Anjar
@Soren you're right, I was only thinking on the single file edition where 
it would be difficult to follow a tiddler across time if the title is 
changed

mandag 10. mai 2021 kl. 21:07:19 UTC+2 skrev Soren Bjornstad:

> On Monday, May 10, 2021 at 9:10:40 AM UTC-5 Anjar wrote:
>
>> Git isn't able to take care of title changes
>
>
> Really? Git normally detects renames just fine unless you massively change 
> the contents at the same time you change the filename. I found some 
> examples in my own folder wiki controlled by Git too.
>

-- 
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/910cc2a7-e242-4f7f-a6ec-f835ccf96a15n%40googlegroups.com.


[tw5] Re: $tw.wiki.renderTiddler("text/html", tiddler); & templates

2021-05-10 Thread Saq Imtiaz
I recommend looking at the source code for that method, as well as how it 
is used other places in the core. Either use grep on the command line, or 
the github search is actually pretty 
good: https://github.com/Jermolene/TiddlyWiki5/search?q=makeTranscludeWidget

 If you get stuck and still can't figure it out, please post the code for 
your widget.


On Monday, May 10, 2021 at 10:27:17 PM UTC+2 james.w@gmail.com wrote:

> Thanks,
>
> what does $tw.wiki.makeTranscludeWidget("fig"); actually return?  what 
> should i be setting the contents of my DOM node to with the object returned 
> from this?
>
> Thanks,
> James
>
> On Monday, 10 May 2021 at 13:56:31 UTC+1 saq.i...@gmail.com wrote:
>
>> Make a parse tree including a transclude widget or look at the 
>> wiki.makeTranscludeWidget method.
>>
>>
>> On Monday, May 10, 2021 at 2:32:03 PM UTC+2 james.w@gmail.com wrote:
>>
>>> in a tiddler {{fig}} works transcluded into another widget, so i guess 
>>> i'm asking : what it the widget way of performing/rendering a transclusion?
>>>
>>> On Sunday, 9 May 2021 at 19:24:54 UTC+1 James Anderson wrote:
>>>
 Hello,

 I'm trying to render a tiddler within another tiddler via a widget. I 
 have attached a basic example in which i have a widget "twsr" which will 
 schedule tiddlers, that match the tags in the parent tiddler, to be shown 
 in the parent for the user to grade (basically a cersion of 
 https://en.wikipedia.org/wiki/SuperMemo in TW)

 In this case i have tiddler "study fruits" which is tagged "fruit" and 
 "veg" it should pick up any other tiddlers tagged with these and show them 
 in "study fruits" one by one for grading. In this example the first one it 
 will show is the "figs" tiddler.

 I'm calling "var cnt = $tw.wiki.renderTiddler("text/html", tiddler);" 
 in the twsr widget to render the tiddler.

 "fig" uses "Fruit Template" tiddler which is a simple tiddler 
 containing:

 <$view field="title"/>

 If i view fig individually i see what i expect. However rendering "fig" 
 via $tw.wiki.renderTiddler("text/html", tiddler); in "Study Fruits" is not 
 what i expect (basically the title via the view field is missing) What is 
 the correct way to do this?

 Thanks
 James






-- 
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/2102b21b-449b-4c19-b37a-0ae2b1bd9336n%40googlegroups.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread TiddlyTweeter
 Mohammad wrote:

> Hi TT,
>
 

> In my own testing so far this more minimal regex seems to work ... !!
>>
>>-  pattern="^\ *(https?|ftp|file|news|data|mailto):.+$
>>
>> Lovely! one minor comment:
>
> 1. I like to check the validity of links! So if one drops something 
> like this (http.yahoo.com) or this (yahoo.come.) it wont detect this and 
> will add the wrong link!
> So, I prefer a URL validator for pattern. What I sent catches all 
> these and only passed the validated URL.
>

RIGHT!

I differ in ASSUMING the link IN is VALID. I don't want to deal with 
naughty boys.

That is part of the value of showing the TITLE & LINK for edit though, so 
you can DISCARD errant boys.

Personally I am NOT inclined to parse links for  perfection. 
What if they are in Chinese? 
The issue with your extra parsing is it I do not think it is entirely fair? 

Just a question!!!

TT, x

-- 
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/3c9e0f84-f512-41ee-b109-2863e67a0dban%40googlegroups.com.


[tw5] Re: $tw.wiki.renderTiddler("text/html", tiddler); & templates

2021-05-10 Thread James Anderson
Thanks,

what does $tw.wiki.makeTranscludeWidget("fig"); actually return?  what 
should i be setting the contents of my DOM node to with the object returned 
from this?

Thanks,
James

On Monday, 10 May 2021 at 13:56:31 UTC+1 saq.i...@gmail.com wrote:

> Make a parse tree including a transclude widget or look at the 
> wiki.makeTranscludeWidget method.
>
>
> On Monday, May 10, 2021 at 2:32:03 PM UTC+2 james.w@gmail.com wrote:
>
>> in a tiddler {{fig}} works transcluded into another widget, so i guess 
>> i'm asking : what it the widget way of performing/rendering a transclusion?
>>
>> On Sunday, 9 May 2021 at 19:24:54 UTC+1 James Anderson wrote:
>>
>>> Hello,
>>>
>>> I'm trying to render a tiddler within another tiddler via a widget. I 
>>> have attached a basic example in which i have a widget "twsr" which will 
>>> schedule tiddlers, that match the tags in the parent tiddler, to be shown 
>>> in the parent for the user to grade (basically a cersion of 
>>> https://en.wikipedia.org/wiki/SuperMemo in TW)
>>>
>>> In this case i have tiddler "study fruits" which is tagged "fruit" and 
>>> "veg" it should pick up any other tiddlers tagged with these and show them 
>>> in "study fruits" one by one for grading. In this example the first one it 
>>> will show is the "figs" tiddler.
>>>
>>> I'm calling "var cnt = $tw.wiki.renderTiddler("text/html", tiddler);" in 
>>> the twsr widget to render the tiddler.
>>>
>>> "fig" uses "Fruit Template" tiddler which is a simple tiddler containing:
>>>
>>> <$view field="title"/>
>>>
>>> If i view fig individually i see what i expect. However rendering "fig" 
>>> via $tw.wiki.renderTiddler("text/html", tiddler); in "Study Fruits" is not 
>>> what i expect (basically the title via the view field is missing) What is 
>>> the correct way to do this?
>>>
>>> Thanks
>>> James
>>>
>>>
>>>
>>>
>>>

-- 
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/7808b4b0-002f-4e59-ac0d-09b170abfdeen%40googlegroups.com.


Re: [tw5] Is blockchain still not for TW?

2021-05-10 Thread Jon
Just in case this is of interest - seems to be quite cutting edge 
https://qortal.org/

On Monday, 10 May 2021 at 21:08:25 UTC+1 hww...@gmail.com wrote:

> Thanks for the reply.  It will ceratinly help me to think of these as 
> distinct technologies, at  least until I get a bit more "han(d)s-on" 
> experience :-)
>
>
> On Monday, May 10, 2021 at 12:35:24 PM UTC-4 inmy...@gmail.com wrote:
>
>> A distributed ledger and a blockchain are distinct technologies. You can 
>> use a blockchain to build a verifiable distributed ledger (verifiable in 
>> the sense of being able to detect tampering after data has been entered, 
>> there aren't any checks on the validity of the source data), but it is far 
>> from the only way to do so. Distributed hash tables have been very 
>> successful as distributed data stores that are far more scalable than 
>> bitcoin in the long term, in a large part because it doesn't have the 
>> continuously growing record of all previous actions, and it doesn't have 
>> the huge security and privacy issues that a blockchain has.
>>
>> So distributed ledgers are very interesting, but while blockchains can be 
>> used as distributed ledgers they are not the same thing.
>>
>> On Monday, May 10, 2021 at 4:09:25 PM UTC+2 hww...@gmail.com wrote:
>>
>>> I remain interested in Distributed Ledger Technology much more than I am 
>>> interested in BitCoin and its other financial derivatives, that even 
>>> Central Banks are considering as Cash replacements.  ( And I am not at all 
>>> interested in NFTs since the Name says it all ... "Non Fungible" ... )
>>>
>>> One thing I really appreciate about this communitiy is the technological 
>>> creativity that emerges here.  In part, I think it results from the fact 
>>> that community membership is quite diverse, bring a lot of different 
>>> experience and insight to bear.
>>>
>>> As more and more DLT systems emerge, it becomes appealing to me to be 
>>> able to use partial segments from multiple systems as an effective 
>>> combination lock.  For example, a combination of:
>>>
>>>- The first 4 digits of the latitue and longiture of (as reported by 
>>>my cell phone) 
>>>- The last 4 digits of an active Credit Card (verifiable against 
>>>Credit Bureau data, together with full Address)
>>>- A reference to a recognized Social Media site (preferably with a 
>>>Pictire and peer reviewed) e.g. linkedIn or Flickr
>>>- The last 4 digits of my Passport number
>>>- ...
>>>
>>> Depending need, I can select various combinations that even include a 
>>> startTime and validity Duraction.
>>>  
>>> With a bit of proper encoding into a Unicode hash, it becomes possible 
>>> to even make such a key remarkably short since there are about 2.2 million 
>>> useful Unicode points have been defined, ensuring that (2e6)e4 gives more 
>>> than enough room!
>>>
>>> The appeal is that I can create distinct Tokens that meet my Security 
>>> and Privacy needs, but that others can verify from reliable sources of 
>>> public Definitive Data.
>>>
>>> Comments will be appreciated.
>>>
>>> Cheers,
>>> Hans
>>>
>>> On Monday, May 10, 2021 at 5:14:52 AM UTC-4 inmy...@gmail.com wrote:
>>>
 or perhaps I am being too hard on the idea. Instead if you all want I 
 can add blockchain to tiddlywiki and sell NFTs pointing to wikis that I 
 made, like the original twederation wiki or the interaction fiction wiki.

 On Monday, May 10, 2021 at 10:54:03 AM UTC+2 Jed Carty wrote:

> Yes, the central question is could blockchain be useful to tiddlywiki. 
> And so far the only answer has been to use it as a proof of existence by 
> storing what is in one blockchain (file hashes in git) in a different 
> from 
> in another block chain.
>
> Also, traceability in a blockchain is guaranteed only for events that 
> happen on the blockchain, not for what the blockchain is supposed to 
> represent. It is always open to any sort of manipulation at the human 
> interface side. I could start a car tracing block chain, and I could add 
> 1 cars to it saying that I own them. That has no bearing on the real 
> world without some mediating central authority, and with a mediating 
> central authority the blockchain is redundant.
>
> People keep saying 'I am not familiar with the technology' and then 
> arguing against someone who has studied the theory and technology that 
> goes 
> into blockchains in academic, hobby and professional capacities. The 
> blind 
> faith in the unchangeable nature of a blockchain is a huge security risk 
> to 
> anything that uses it. It is worth repeating over and over: all the 
> guarantees are just for the numbers stored on the computer, there are 
> absolutely no guarantees about what those numbers represent. All the 
> traceability claims completely fail when it gets to the data entry into 
> the 
> blockchain.

Re: [tw5] Is blockchain still not for TW?

2021-05-10 Thread Hans Wobbe
Thanks for the reply.  It will ceratinly help me to think of these as 
distinct technologies, at  least until I get a bit more "han(d)s-on" 
experience :-)


On Monday, May 10, 2021 at 12:35:24 PM UTC-4 inmy...@gmail.com wrote:

> A distributed ledger and a blockchain are distinct technologies. You can 
> use a blockchain to build a verifiable distributed ledger (verifiable in 
> the sense of being able to detect tampering after data has been entered, 
> there aren't any checks on the validity of the source data), but it is far 
> from the only way to do so. Distributed hash tables have been very 
> successful as distributed data stores that are far more scalable than 
> bitcoin in the long term, in a large part because it doesn't have the 
> continuously growing record of all previous actions, and it doesn't have 
> the huge security and privacy issues that a blockchain has.
>
> So distributed ledgers are very interesting, but while blockchains can be 
> used as distributed ledgers they are not the same thing.
>
> On Monday, May 10, 2021 at 4:09:25 PM UTC+2 hww...@gmail.com wrote:
>
>> I remain interested in Distributed Ledger Technology much more than I am 
>> interested in BitCoin and its other financial derivatives, that even 
>> Central Banks are considering as Cash replacements.  ( And I am not at all 
>> interested in NFTs since the Name says it all ... "Non Fungible" ... )
>>
>> One thing I really appreciate about this communitiy is the technological 
>> creativity that emerges here.  In part, I think it results from the fact 
>> that community membership is quite diverse, bring a lot of different 
>> experience and insight to bear.
>>
>> As more and more DLT systems emerge, it becomes appealing to me to be 
>> able to use partial segments from multiple systems as an effective 
>> combination lock.  For example, a combination of:
>>
>>- The first 4 digits of the latitue and longiture of (as reported by 
>>my cell phone) 
>>- The last 4 digits of an active Credit Card (verifiable against 
>>Credit Bureau data, together with full Address)
>>- A reference to a recognized Social Media site (preferably with a 
>>Pictire and peer reviewed) e.g. linkedIn or Flickr
>>- The last 4 digits of my Passport number
>>- ...
>>
>> Depending need, I can select various combinations that even include a 
>> startTime and validity Duraction.
>>  
>> With a bit of proper encoding into a Unicode hash, it becomes possible to 
>> even make such a key remarkably short since there are about 2.2 million 
>> useful Unicode points have been defined, ensuring that (2e6)e4 gives more 
>> than enough room!
>>
>> The appeal is that I can create distinct Tokens that meet my Security and 
>> Privacy needs, but that others can verify from reliable sources of public 
>> Definitive Data.
>>
>> Comments will be appreciated.
>>
>> Cheers,
>> Hans
>>
>> On Monday, May 10, 2021 at 5:14:52 AM UTC-4 inmy...@gmail.com wrote:
>>
>>> or perhaps I am being too hard on the idea. Instead if you all want I 
>>> can add blockchain to tiddlywiki and sell NFTs pointing to wikis that I 
>>> made, like the original twederation wiki or the interaction fiction wiki.
>>>
>>> On Monday, May 10, 2021 at 10:54:03 AM UTC+2 Jed Carty wrote:
>>>
 Yes, the central question is could blockchain be useful to tiddlywiki. 
 And so far the only answer has been to use it as a proof of existence by 
 storing what is in one blockchain (file hashes in git) in a different from 
 in another block chain.

 Also, traceability in a blockchain is guaranteed only for events that 
 happen on the blockchain, not for what the blockchain is supposed to 
 represent. It is always open to any sort of manipulation at the human 
 interface side. I could start a car tracing block chain, and I could add 
 1 cars to it saying that I own them. That has no bearing on the real 
 world without some mediating central authority, and with a mediating 
 central authority the blockchain is redundant.

 People keep saying 'I am not familiar with the technology' and then 
 arguing against someone who has studied the theory and technology that 
 goes 
 into blockchains in academic, hobby and professional capacities. The blind 
 faith in the unchangeable nature of a blockchain is a huge security risk 
 to 
 anything that uses it. It is worth repeating over and over: all the 
 guarantees are just for the numbers stored on the computer, there are 
 absolutely no guarantees about what those numbers represent. All the 
 traceability claims completely fail when it gets to the data entry into 
 the 
 blockchain.

 After working with some startups I am very familiar with how easy it is 
 to separate people from large sums of money by making magical claims that 
 aren't backed up by reality, investment in a technology and the actual 
 utility of the technology 

Re: [tw5] A tour through my Zettelkasten

2021-05-10 Thread Mohammad Rahmani
Hi Soren,

One question: How do you select the categories in the Write tab? I mean for
Ztellkasten point of view?
I watch the viedo but not quite understand your philosophy here! Also the
Explorer while we have the More Tab!

[image: image.png]


I like to adopt the tiddler reference explorer in minimal yet flexible form
and sidebar extra tabs in a plugin (using a different taste).
I cannot see any license in your wiki, so I want to get permission if I am
allowed to use both these ideas in a new plugin!
Feel free to say no! If you're gonna keep this or further develop in
another edition/plugin.

Best wishes
Mohammad


On Thu, Apr 15, 2021 at 7:45 AM Soren Bjornstad 
wrote:

> For those who have been interested in my public Zettelkasten wiki
>  in the past (or might be
> interested in it now), I've just put up an extensive discussion of
> Zettelkasten and how I've implemented it in my TiddlyWiki on my YouTube
> channel:
>
> https://www.youtube.com/watch?v=GjpjE5pMZMI
>
> Here are the segments if you're curious:
>
> *About Zettelkasten:*
> 0:00 Welcome and introduction
> 1:00 Public and private versions of my Zettelkasten
> 2:08 What is a Zettelkasten?
> 4:16 What idea tiddlers look like and how we navigate through them
> 6:28 Implementation evolves with the content
>
> *Organizing my Zettelkasten and relating ideas:*
> 7:06 Why I use CamelCase names
> 8:12 Expressing relationships by linking
> 9:40 Expressing memberships by tagging
> 10:07 Tags serve in many roles – topics/indexes, publicity level, lists,
> types, pseudo-types, and maintenance
> 15:42 Index tiddlers provide overviews of a topic area
> 17:33 Transclusion can combine with the ‘description’ field to create
> overviews
> 18:42 Why I don’t use tags for all overviews
> 19:28 Stretchtext creates interactive, expandable overviews
> 20:42 Subtiddlers aggregate tightly coupled content
> 23:58 Bibliographies aggregate related sources
> 25:38 The Write tab highlights fruitful areas for further work (stubs,
> missing, needing attention, needing excision, to-dos, open questions)
> 29:58 The Reference Explorer shows related tiddlers (backlinks and forward
> links) in a concise table
> 34:48 Graph theory and Zettelkästen; link graph
> 37:11 Types of tiddlers; why I include non-idea tiddlers, unlike classic
> Zettelkasten
>
> *Plugins and custom TiddlyWiki logic:*
> 41:04 Interesting TiddlyWiki plugins I use
> 47:17 Publishing only part of a TiddlyWiki (public/private switch):
> Marking tiddlers
> 49:05 Public/private: The PrivateChunk
> 51:28 Public/private: The build process (shell script)
> 54:18 Custom copy-title and permalink buttons
> 55:38 GIS (mapping) support for places
> 57:55 The missing-tiddler helper
> 58:36 Quick reading-list import by pasting a URL
> 59:30 Reading inbox
> 1:00:15 Simple Analytics and raw markup snippets
> 1:01:05 Sorting tags by color and putting them in columns
>
> *Philosophy:*
> 1:03:01 Just get started and then continuously improve
> 1:05:20 The Three-Links Heuristic for determining whether ideas are
> effectively linked together
> 1:07:02 A Zettelkasten never walks backwards: consistency doesn’t matter
> that much
> 1:08:56 Why I default to open and publish my Zettelkasten
> 1:11:25 Polyspecialize your Zettelkasten, include variety
> 1:13:34 Prioritize; you won’t have time to write about everything
> 1:14:55 Using the flexibility and user-programmability of TiddlyWiki to
> your advantage
>
> --
> 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/836c46ea-f0ef-4ba9-adcc-641019205ca9n%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/CAAV1gMAhhs-0w6QAeDyvd%3DRLHEEjiguudsLYn55gvnzG0kfeDQ%40mail.gmail.com.


Re: [tw5] How to show N symbols based on numeric tiddler field value

2021-05-10 Thread Jack Baty
Mohammad, 

This also solves the thing I was just working on, and that is hiding stars 
when there is no rating. Nice!

Thanks to both of you for helping with this. I've got so much to learn.

Jack



On Monday, May 10, 2021 at 3:15:02 PM UTC-4 Mohammad wrote:

> Hi Jack,
>  If you want to keep your own solution then go with Soren! 
> What Soren provided shows the trick!
>
> Another solution is to  change the content of your template (
> https://rudimentarylathe.wiki/#%24%3A%2Fplugins%2Faaldrich%2Ftables%2Ftemplate%2Fbody%2Frate
> )
> with the below wikitext
>
> \define ratingFilter() [range[1,$(rating)$]]
>
> <$list filter="[has[rating]get[rating]]" variable=rating 
> emptyMessage="">
> 
> <$list filter=<> > {{$:/core/images/star-filled}}
> 
>
>
> Also in the example https://rudimentarylathe.wiki/#My%20Books%20-%20TEST 
> clear extra wikitext, delete the macro getSras and just
>
> Working on a better way to render the list of books.
>
> Here's a failed attempt using ~TiddlyTables:
>
> <>
>
>
> Tested on your wiki, I get the below result
>
> [image: image.png]
>
>
>
> Best wishes
> Mohammad
>
>
> On Mon, May 10, 2021 at 11:19 PM Jack Baty  wrote:
>
>> Mohammad,
>>
>> Thank you! Your sample helps me understand how to do this kind of 
>> rendering, though, which is great. (I still seem to overlook using $list 
>> for seemingly everything). 
>>
>> I'm using Tobias' rate plugin for setting and displaying the ratings on 
>> individual tiddlers and it works well. 
>>
>> I'm now working on getting the macro to run correctly when used in a 
>> template in the TiddlyTables plugin. I've tried every combination I can 
>> think of in the column's view template but can't get the macro to "see" the 
>> rating value for each row. If I render a table "by hand" it works fine.
>>
>> Maybe someone can spot an obvious error in my implementation here:
>>
>>   https://rudimentarylathe.wiki/#My Books - TEST
>>
>> There's a custom template for rating that contains the following:
>>
>> ```
>> 
>> <$macrocall $name="getStars" numstars={{!!rating}} />
>> 
>> ```
>> I feel like I'm going to need "<>"  somewhere but can't 
>> seem to figure out where.
>>
>> Anyway, thanks for the leg up. I can fall back to my hand-rendered table 
>> easy enough if I can't figure out how to use it in TiddlyTables.
>>
>>
>> On Monday, May 10, 2021 at 10:52:34 AM UTC-4 Mohammad wrote:
>>
>>> Hi Jack,
>>>  The Vote plugin from Kooma Library do rating and you can retrieve stars 
>>> and compare and analyse!
>>>
>>> But if you want your simplest solution the below is one! Wait for 
>>> better, I sure you will get alternatives
>>>
>>>
>>> \define getStars() <$list filter="[range[1,$(vl-stars)$]]">*
>>>
>>> <$list filter="[all[current]has[rating]get[rating]]" variable="vl-stars">
>>> <>
>>> 
>>>
>>>
>>> The above can be used inside a vietemplate if you like to have stars 
>>> automatically displayed!
>>> Adopt if you like to use a table! for a specific tiddler!
>>>
>>>
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> On Mon, May 10, 2021 at 7:03 PM Jack Baty  wrote:
>>>
 I have a "rating" field that contains a number from 1-5.

 When generating a table (or list) of rated tiddlers, I want to display 
 the rating as a number of stars. e.g. ★★ or ★★★ etc corresponding to the 
 value in rating for each tiddler.

 For the life of me, I can't figure out how to do this. Is there some 
 form of string math like "★*rating"? Do I need to choose from a 
 pre-defined 
 list? Do I need to just give up and change the field to contain the actual 
 stars? I'm stumped, sorry.

 Jack




 -- 
 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/cc78aa80-95c1-4608-aad8-f41c4d2959b9n%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+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/90025997-7113-4d36-82de-efc4c73f5443n%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 

Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread Mohammad Rahmani
On Mon, May 10, 2021 at 11:42 PM TiddlyTweeter 
wrote:

> Ciao Mohammad
>
> To clarify, I worked a bit to get the tool to first post to a temporary
> you can edit ...
>
> This is JUST a visual demo of the *general idea to edit before save??*
>

WOW, very nice! The possibility to edit the title in place looks very
useful here!





>
> JUST thoughts, TT
>
> [image: Screenshot 2021-05-10 210424.jpg]
>
> On Monday, 10 May 2021 at 13:34:09 UTC+2 TiddlyTweeter wrote:
>
>> Ciao Mohammad
>>
>> In my own testing so far this more minimal regex seems to work ... !!
>>
>>-  pattern="^\ *(https?|ftp|file|news|data|mailto):.+$
>>
>> With something like this ...
>>
>>- {{{ [trim[https://]trim[http://]trim[www.]trim[ftp://
>>]trim[file:///]trim[news:]trim[mailto:]split[/]!is[blank]first[]join[.]]
>>}}}
>>
>> Any of those protocols a user does not support yet in a browser should be
>> prompted for by the BROWSER.
>>
>> Just a comment. NOT fully tested yet but seems okay so far.
>> 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/228e26fa-1040-49e0-b395-ce5c8323b214n%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/CAAV1gMBPhToA6CqGbCGF0xvz2PdxM4ik--TLAHFGRdK7Wc%2B8Rg%40mail.gmail.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread Mohammad Rahmani
On Mon, May 10, 2021 at 4:04 PM TiddlyTweeter 
wrote:

> Ciao Mohammad


Hi TT,



>
> In my own testing so far this more minimal regex seems to work ... !!
>
>-  pattern="^\ *(https?|ftp|file|news|data|mailto):.+$
>
>
Lovely! one minor comment:

1. I like to check the validity of links! So if one drops something
like this (http.yahoo.com) or this (yahoo.come.) it wont detect this and
will add the wrong link!
So, I prefer a URL validator for pattern. What I sent catches all these
and only passed the validated URL.
2. It does not recognize file
3. Regarding the data of access, yes you can remove it, but I think APA7
recommend having the access date!




> With something like this ...
>
>- {{{ [trim[https://]trim[http://]trim[www.]trim[ftp://
>]trim[file:///]trim[news:]trim[mailto:]split[/]!is[blank]first[]join[.]]
>}}}
>
> Any of those protocols a user does not support yet in a browser should be
> prompted for by the BROWSER.
>
> Just a comment. NOT fully tested yet but seems okay so far.
> 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/0894700b-b0b7-436a-b662-02dea0fd8a56n%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/CAAV1gMD-O2s0wwxTXTyFhNgBxS9N8XULq-dhJ4URm-RHafA%2BsQ%40mail.gmail.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread Mohammad Rahmani
Thank you Jeremy and TT for the hints!
I will give a try!


Best wishes
Mohammad


On Mon, May 10, 2021 at 3:29 PM TiddlyTweeter 
wrote:

> jeremy...@gmail.com wrote:
>
>> Sadly, browsers do not allow JavaScript code running in TiddlyWiki to
>> obtain the window title corresponding to a particular URL.
>>
>> A different approach that could work is to write a bookmarklet that runs
>> in the context of the page being bookmarked; it would have full access to
>> the page content, including the window title. It wouldn't have access to
>> TiddlyWiki, though, so perhaps the best it could do is to popup a window to
>> fill in the tags etc, and then download a .json file of the link tiddler
>> that could later be imported into a wiki.
>>
>
> Thanks Jeremy. That is useful for me to be clearer about!
> And for Mohammad to know.
>
> Best wishes
> 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/dcf15650-7d95-4ca7-bfe4-6b03d710e04an%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/CAAV1gMCxmie8Ue5GZvX_z8P5S6JVv8jt9x1xwmTXGQr3xmF2Fg%40mail.gmail.com.


Re: [tw5] How to show N symbols based on numeric tiddler field value

2021-05-10 Thread Jack Baty
Well look at that, it works! I'm not sure I would have ever gotten there on 
my own, so thank you.

It's just single-bracket macro calls in a filter inside a "super" 
transclusion as a macro parameter. Simple! . I'll understand all this, 
eventually, I hope.

Thanks for the video link. I've been devouring your videos but must have 
forgotten about the ratings portion of that one. I'll rewatch it now.

Jack





On Monday, May 10, 2021 at 3:04:04 PM UTC-4 Soren Bjornstad wrote:

> I think you want:
>
> ```
> 
> <$macrocall $name="getStars" numstars={{{ [get[rating]] }}} 
> />
> 
> ```
>
> Worked for me in the wiki you linked.
>
> Also, it looks like you've got this figured out, but I have an example of 
> an implementation of a star rating in one of my YouTube videos if you're 
> curious:
> https://youtu.be/vsdDs7oOLlg?t=2617
>
> On Monday, May 10, 2021 at 1:49:33 PM UTC-5 ja...@baty.net wrote:
>
>> Mohammad,
>>
>> Thank you! Your sample helps me understand how to do this kind of 
>> rendering, though, which is great. (I still seem to overlook using $list 
>> for seemingly everything). 
>>
>> I'm using Tobias' rate plugin for setting and displaying the ratings on 
>> individual tiddlers and it works well. 
>>
>> I'm now working on getting the macro to run correctly when used in a 
>> template in the TiddlyTables plugin. I've tried every combination I can 
>> think of in the column's view template but can't get the macro to "see" the 
>> rating value for each row. If I render a table "by hand" it works fine.
>>
>> Maybe someone can spot an obvious error in my implementation here:
>>
>>   https://rudimentarylathe.wiki/#My Books - TEST
>>
>> There's a custom template for rating that contains the following:
>>
>> ```
>> 
>> <$macrocall $name="getStars" numstars={{!!rating}} />
>> 
>> ```
>> I feel like I'm going to need "<>"  somewhere but can't 
>> seem to figure out where.
>>
>> Anyway, thanks for the leg up. I can fall back to my hand-rendered table 
>> easy enough if I can't figure out how to use it in TiddlyTables.
>>
>>
>> On Monday, May 10, 2021 at 10:52:34 AM UTC-4 Mohammad wrote:
>>
>>> Hi Jack,
>>>  The Vote plugin from Kooma Library do rating and you can retrieve stars 
>>> and compare and analyse!
>>>
>>> But if you want your simplest solution the below is one! Wait for 
>>> better, I sure you will get alternatives
>>>
>>>
>>> \define getStars() <$list filter="[range[1,$(vl-stars)$]]">*
>>>
>>> <$list filter="[all[current]has[rating]get[rating]]" variable="vl-stars">
>>> <>
>>> 
>>>
>>>
>>> The above can be used inside a vietemplate if you like to have stars 
>>> automatically displayed!
>>> Adopt if you like to use a table! for a specific tiddler!
>>>
>>>
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> On Mon, May 10, 2021 at 7:03 PM Jack Baty  wrote:
>>>
 I have a "rating" field that contains a number from 1-5.

 When generating a table (or list) of rated tiddlers, I want to display 
 the rating as a number of stars. e.g. ★★ or ★★★ etc corresponding to the 
 value in rating for each tiddler.

 For the life of me, I can't figure out how to do this. Is there some 
 form of string math like "★*rating"? Do I need to choose from a 
 pre-defined 
 list? Do I need to just give up and change the field to contain the actual 
 stars? I'm stumped, sorry.

 Jack




 -- 
 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/cc78aa80-95c1-4608-aad8-f41c4d2959b9n%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/9f937f0d-2d05-4c94-8016-4dfe48657503n%40googlegroups.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread TiddlyTweeter
Ciao Mohammad

To clarify, I worked a bit to get the tool to first post to a temporary you 
can edit ...

This is JUST a visual demo of the *general idea to edit before save??*

JUST thoughts, TT

[image: Screenshot 2021-05-10 210424.jpg]

On Monday, 10 May 2021 at 13:34:09 UTC+2 TiddlyTweeter wrote:

> Ciao Mohammad
>
> In my own testing so far this more minimal regex seems to work ... !!
>
>-  pattern="^\ *(https?|ftp|file|news|data|mailto):.+$
>
> With something like this ...
>
>- {{{ 
>
> [trim[https://]trim[http://]trim[www.]trim[ftp://]trim[file:///]trim[news:]trim[mailto:]split[/]!is[blank]first[]join[.]]
>  
>}}}
>
> Any of those protocols a user does not support yet in a browser should be 
> prompted for by the BROWSER. 
>
> Just a comment. NOT fully tested yet but seems okay so far.
> 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/228e26fa-1040-49e0-b395-ce5c8323b214n%40googlegroups.com.


[tw5] Re: Options for keeping revision history?

2021-05-10 Thread Soren Bjornstad
On Monday, May 10, 2021 at 9:10:40 AM UTC-5 Anjar wrote:

> Git isn't able to take care of title changes


Really? Git normally detects renames just fine unless you massively change 
the contents at the same time you change the filename. I found some 
examples in my own folder wiki controlled by Git too.

-- 
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/c9f70fe9-5bfc-48e5-936b-ec071d0f038an%40googlegroups.com.


Re: [tw5] How to show N symbols based on numeric tiddler field value

2021-05-10 Thread Soren Bjornstad
I think you want:

```

<$macrocall $name="getStars" numstars={{{ [get[rating]] }}} 
/>

```

Worked for me in the wiki you linked.

Also, it looks like you've got this figured out, but I have an example of 
an implementation of a star rating in one of my YouTube videos if you're 
curious:
https://youtu.be/vsdDs7oOLlg?t=2617

On Monday, May 10, 2021 at 1:49:33 PM UTC-5 ja...@baty.net wrote:

> Mohammad,
>
> Thank you! Your sample helps me understand how to do this kind of 
> rendering, though, which is great. (I still seem to overlook using $list 
> for seemingly everything). 
>
> I'm using Tobias' rate plugin for setting and displaying the ratings on 
> individual tiddlers and it works well. 
>
> I'm now working on getting the macro to run correctly when used in a 
> template in the TiddlyTables plugin. I've tried every combination I can 
> think of in the column's view template but can't get the macro to "see" the 
> rating value for each row. If I render a table "by hand" it works fine.
>
> Maybe someone can spot an obvious error in my implementation here:
>
>   https://rudimentarylathe.wiki/#My Books - TEST
>
> There's a custom template for rating that contains the following:
>
> ```
> 
> <$macrocall $name="getStars" numstars={{!!rating}} />
> 
> ```
> I feel like I'm going to need "<>"  somewhere but can't 
> seem to figure out where.
>
> Anyway, thanks for the leg up. I can fall back to my hand-rendered table 
> easy enough if I can't figure out how to use it in TiddlyTables.
>
>
> On Monday, May 10, 2021 at 10:52:34 AM UTC-4 Mohammad wrote:
>
>> Hi Jack,
>>  The Vote plugin from Kooma Library do rating and you can retrieve stars 
>> and compare and analyse!
>>
>> But if you want your simplest solution the below is one! Wait for better, 
>> I sure you will get alternatives
>>
>>
>> \define getStars() <$list filter="[range[1,$(vl-stars)$]]">*
>>
>> <$list filter="[all[current]has[rating]get[rating]]" variable="vl-stars">
>> <>
>> 
>>
>>
>> The above can be used inside a vietemplate if you like to have stars 
>> automatically displayed!
>> Adopt if you like to use a table! for a specific tiddler!
>>
>>
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Mon, May 10, 2021 at 7:03 PM Jack Baty  wrote:
>>
>>> I have a "rating" field that contains a number from 1-5.
>>>
>>> When generating a table (or list) of rated tiddlers, I want to display 
>>> the rating as a number of stars. e.g. ★★ or ★★★ etc corresponding to the 
>>> value in rating for each tiddler.
>>>
>>> For the life of me, I can't figure out how to do this. Is there some 
>>> form of string math like "★*rating"? Do I need to choose from a pre-defined 
>>> list? Do I need to just give up and change the field to contain the actual 
>>> stars? I'm stumped, sorry.
>>>
>>> Jack
>>>
>>>
>>>
>>>
>>> -- 
>>> 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/cc78aa80-95c1-4608-aad8-f41c4d2959b9n%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/90ae6248-f20b-41b0-ac57-6cdb44de15a7n%40googlegroups.com.


Re: [tw5] How to show N symbols based on numeric tiddler field value

2021-05-10 Thread Jack Baty
Mohammad,

Thank you! Your sample helps me understand how to do this kind of 
rendering, though, which is great. (I still seem to overlook using $list 
for seemingly everything). 

I'm using Tobias' rate plugin for setting and displaying the ratings on 
individual tiddlers and it works well. 

I'm now working on getting the macro to run correctly when used in a 
template in the TiddlyTables plugin. I've tried every combination I can 
think of in the column's view template but can't get the macro to "see" the 
rating value for each row. If I render a table "by hand" it works fine.

Maybe someone can spot an obvious error in my implementation here:

  https://rudimentarylathe.wiki/#My Books - TEST

There's a custom template for rating that contains the following:

```

<$macrocall $name="getStars" numstars={{!!rating}} />

```
I feel like I'm going to need "<>"  somewhere but can't seem 
to figure out where.

Anyway, thanks for the leg up. I can fall back to my hand-rendered table 
easy enough if I can't figure out how to use it in TiddlyTables.


On Monday, May 10, 2021 at 10:52:34 AM UTC-4 Mohammad wrote:

> Hi Jack,
>  The Vote plugin from Kooma Library do rating and you can retrieve stars 
> and compare and analyse!
>
> But if you want your simplest solution the below is one! Wait for better, 
> I sure you will get alternatives
>
>
> \define getStars() <$list filter="[range[1,$(vl-stars)$]]">*
>
> <$list filter="[all[current]has[rating]get[rating]]" variable="vl-stars">
> <>
> 
>
>
> The above can be used inside a vietemplate if you like to have stars 
> automatically displayed!
> Adopt if you like to use a table! for a specific tiddler!
>
>
>
>
> Best wishes
> Mohammad
>
>
> On Mon, May 10, 2021 at 7:03 PM Jack Baty  wrote:
>
>> I have a "rating" field that contains a number from 1-5.
>>
>> When generating a table (or list) of rated tiddlers, I want to display 
>> the rating as a number of stars. e.g. ★★ or ★★★ etc corresponding to the 
>> value in rating for each tiddler.
>>
>> For the life of me, I can't figure out how to do this. Is there some form 
>> of string math like "★*rating"? Do I need to choose from a pre-defined 
>> list? Do I need to just give up and change the field to contain the actual 
>> stars? I'm stumped, sorry.
>>
>> Jack
>>
>>
>>
>>
>> -- 
>> 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/cc78aa80-95c1-4608-aad8-f41c4d2959b9n%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/90025997-7113-4d36-82de-efc4c73f5443n%40googlegroups.com.


Re: [tw5] Is blockchain still not for TW?

2021-05-10 Thread Jed Carty
A distributed ledger and a blockchain are distinct technologies. You can 
use a blockchain to build a verifiable distributed ledger (verifiable in 
the sense of being able to detect tampering after data has been entered, 
there aren't any checks on the validity of the source data), but it is far 
from the only way to do so. Distributed hash tables have been very 
successful as distributed data stores that are far more scalable than 
bitcoin in the long term, in a large part because it doesn't have the 
continuously growing record of all previous actions, and it doesn't have 
the huge security and privacy issues that a blockchain has.

So distributed ledgers are very interesting, but while blockchains can be 
used as distributed ledgers they are not the same thing.

On Monday, May 10, 2021 at 4:09:25 PM UTC+2 hww...@gmail.com wrote:

> I remain interested in Distributed Ledger Technology much more than I am 
> interested in BitCoin and its other financial derivatives, that even 
> Central Banks are considering as Cash replacements.  ( And I am not at all 
> interested in NFTs since the Name says it all ... "Non Fungible" ... )
>
> One thing I really appreciate about this communitiy is the technological 
> creativity that emerges here.  In part, I think it results from the fact 
> that community membership is quite diverse, bring a lot of different 
> experience and insight to bear.
>
> As more and more DLT systems emerge, it becomes appealing to me to be able 
> to use partial segments from multiple systems as an effective combination 
> lock.  For example, a combination of:
>
>- The first 4 digits of the latitue and longiture of (as reported by 
>my cell phone) 
>- The last 4 digits of an active Credit Card (verifiable against 
>Credit Bureau data, together with full Address)
>- A reference to a recognized Social Media site (preferably with a 
>Pictire and peer reviewed) e.g. linkedIn or Flickr
>- The last 4 digits of my Passport number
>- ...
>
> Depending need, I can select various combinations that even include a 
> startTime and validity Duraction.
>  
> With a bit of proper encoding into a Unicode hash, it becomes possible to 
> even make such a key remarkably short since there are about 2.2 million 
> useful Unicode points have been defined, ensuring that (2e6)e4 gives more 
> than enough room!
>
> The appeal is that I can create distinct Tokens that meet my Security and 
> Privacy needs, but that others can verify from reliable sources of public 
> Definitive Data.
>
> Comments will be appreciated.
>
> Cheers,
> Hans
>
> On Monday, May 10, 2021 at 5:14:52 AM UTC-4 inmy...@gmail.com wrote:
>
>> or perhaps I am being too hard on the idea. Instead if you all want I can 
>> add blockchain to tiddlywiki and sell NFTs pointing to wikis that I made, 
>> like the original twederation wiki or the interaction fiction wiki.
>>
>> On Monday, May 10, 2021 at 10:54:03 AM UTC+2 Jed Carty wrote:
>>
>>> Yes, the central question is could blockchain be useful to tiddlywiki. 
>>> And so far the only answer has been to use it as a proof of existence by 
>>> storing what is in one blockchain (file hashes in git) in a different from 
>>> in another block chain.
>>>
>>> Also, traceability in a blockchain is guaranteed only for events that 
>>> happen on the blockchain, not for what the blockchain is supposed to 
>>> represent. It is always open to any sort of manipulation at the human 
>>> interface side. I could start a car tracing block chain, and I could add 
>>> 1 cars to it saying that I own them. That has no bearing on the real 
>>> world without some mediating central authority, and with a mediating 
>>> central authority the blockchain is redundant.
>>>
>>> People keep saying 'I am not familiar with the technology' and then 
>>> arguing against someone who has studied the theory and technology that goes 
>>> into blockchains in academic, hobby and professional capacities. The blind 
>>> faith in the unchangeable nature of a blockchain is a huge security risk to 
>>> anything that uses it. It is worth repeating over and over: all the 
>>> guarantees are just for the numbers stored on the computer, there are 
>>> absolutely no guarantees about what those numbers represent. All the 
>>> traceability claims completely fail when it gets to the data entry into the 
>>> blockchain.
>>>
>>> After working with some startups I am very familiar with how easy it is 
>>> to separate people from large sums of money by making magical claims that 
>>> aren't backed up by reality, investment in a technology and the actual 
>>> utility of the technology don't correlate. 
>>>
>>> And as far as smart contracts go, never sign a contract you don't 
>>> understand. Someone with my skills would be able to make a contract that 
>>> does whatever I want it to do and have it all be essentially invisible to 
>>> someone who isn't intimately familiar with the technology that goes though 
>>> the code line 

Re: [tw5] How to show N symbols based on numeric tiddler field value

2021-05-10 Thread Mohammad Rahmani
Hi Jack,
 The Vote plugin from Kooma Library do rating and you can retrieve stars
and compare and analyse!

But if you want your simplest solution the below is one! Wait for better, I
sure you will get alternatives


\define getStars() <$list filter="[range[1,$(vl-stars)$]]">*

<$list filter="[all[current]has[rating]get[rating]]" variable="vl-stars">
<>



The above can be used inside a vietemplate if you like to have stars
automatically displayed!
Adopt if you like to use a table! for a specific tiddler!




Best wishes
Mohammad


On Mon, May 10, 2021 at 7:03 PM Jack Baty  wrote:

> I have a "rating" field that contains a number from 1-5.
>
> When generating a table (or list) of rated tiddlers, I want to display the
> rating as a number of stars. e.g. ★★ or ★★★ etc corresponding to the value
> in rating for each tiddler.
>
> For the life of me, I can't figure out how to do this. Is there some form
> of string math like "★*rating"? Do I need to choose from a pre-defined
> list? Do I need to just give up and change the field to contain the actual
> stars? I'm stumped, sorry.
>
> Jack
>
>
>
>
> --
> 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/cc78aa80-95c1-4608-aad8-f41c4d2959b9n%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/CAAV1gMDbJFm-_YPMabdPjHy8LcQ2GUJgwbe84JVWKV_eTwXA9g%40mail.gmail.com.


Re: [tw5] Re: A basket on the sidebar

2021-05-10 Thread Mohammad Rahmani
On Mon, May 10, 2021 at 6:59 PM David Gifford  wrote:

> Hi Mohammad - FYI, I did the sidebar in edit-text so that I could also
> edit a tiddler in the story river and transfer content including formatting
> from one to the other.
>

Dave,

Lovely! This makes to be more productive!



>
> On Monday, May 10, 2021 at 3:37:27 AM UTC-5 Mohammad wrote:
>
>> Hi David,
>>
>> On Mon, May 10, 2021 at 12:09 AM David Gifford  wrote:
>>
>>> Thanks Mohammad, works great! I even figured out how to turn the text
>>> field into a large edit-text area, and I moved the clear box button next to
>>> the tiddler title link, to clear up some vertical space. See attached image.
>>
>>
>> Great! I looked at the screenshot you attached! Very nice! I even thought
>> of a reverse arrangement!
>> Having tiddler in the sidebar and editing in the main river!
>>
>> Any way seems a lot of possibility!
>>
>>
>>
>>>
>>>
>>> On Sunday, May 9, 2021 at 12:22:00 AM UTC-5 Mohammad wrote:
>>>
 David,
  In another thread there is discussion on drag and drop features! I
 bring one example here!

 The attached tiddler shows a drop zone and if you drag a tiddler to on
 the drop zone
 it will grab the title of dragged tiddler and shows its text! Also all
 of its field
 tag with $:/tags/Sidebar and test on tiddlywiki.com

 You add this to the Basket if you like!


 Best wishes
 Mohammad


 On Sun, May 9, 2021 at 1:18 AM David Gifford  wrote:

> What would it take so that dragging a tiddler to the Basket tiddler
> would display the text field of the tiddler in the Basket? Different way 
> of
> getting at having a second column.
>
> On Monday, May 3, 2021 at 4:08:06 PM UTC-5 Atronoush wrote:
>
>> Is there any script or plugin with
>>
>> - a sidebar tab (I call it basket)
>> - drag and drop features! One can drag a tiddler (e.g title) into the
>> basket
>> - when finished press a button to export as JSON
>> - the button can be dragged and drop into another wiki!
>>
>> The last part is what you see in TW-Icons
>>
>>
>> -Atro
>>
>> --
> You received this message because you are subscribed to the Google
> Groups "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to tiddlywiki+...@googlegroups.com.
>
 To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/0d5544dc-b769-445d-979c-de4c0b891e71n%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+...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/3f96cf84-c585-4ed6-829c-6af94da4c686n%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/76657904-68f5-4ed7-8b2b-601e01ef8e78n%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/CAAV1gMCczVUd1P%3DeJmNfHw0-gcX97aqty3hYSPJ3q6fd-pNM8g%40mail.gmail.com.


[tw5] How to show N symbols based on numeric tiddler field value

2021-05-10 Thread Jack Baty
I have a "rating" field that contains a number from 1-5.

When generating a table (or list) of rated tiddlers, I want to display the 
rating as a number of stars. e.g. ★★ or ★★★ etc corresponding to the value 
in rating for each tiddler.

For the life of me, I can't figure out how to do this. Is there some form 
of string math like "★*rating"? Do I need to choose from a pre-defined 
list? Do I need to just give up and change the field to contain the actual 
stars? I'm stumped, sorry.

Jack




-- 
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/cc78aa80-95c1-4608-aad8-f41c4d2959b9n%40googlegroups.com.


Re: [tw5] Re: A basket on the sidebar

2021-05-10 Thread David Gifford
Hi Mohammad - FYI, I did the sidebar in edit-text so that I could also edit 
a tiddler in the story river and transfer content including formatting from 
one to the other.

On Monday, May 10, 2021 at 3:37:27 AM UTC-5 Mohammad wrote:

> Hi David,
>
> On Mon, May 10, 2021 at 12:09 AM David Gifford  wrote:
>
>> Thanks Mohammad, works great! I even figured out how to turn the text 
>> field into a large edit-text area, and I moved the clear box button next to 
>> the tiddler title link, to clear up some vertical space. See attached image.
>
>
> Great! I looked at the screenshot you attached! Very nice! I even thought 
> of a reverse arrangement!
> Having tiddler in the sidebar and editing in the main river!
>
> Any way seems a lot of possibility!
>
>  
>
>>
>>
>> On Sunday, May 9, 2021 at 12:22:00 AM UTC-5 Mohammad wrote:
>>
>>> David,
>>>  In another thread there is discussion on drag and drop features! I 
>>> bring one example here!
>>>
>>> The attached tiddler shows a drop zone and if you drag a tiddler to on 
>>> the drop zone
>>> it will grab the title of dragged tiddler and shows its text! Also all 
>>> of its field
>>> tag with $:/tags/Sidebar and test on tiddlywiki.com
>>>
>>> You add this to the Basket if you like!
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> On Sun, May 9, 2021 at 1:18 AM David Gifford  wrote:
>>>
 What would it take so that dragging a tiddler to the Basket tiddler 
 would display the text field of the tiddler in the Basket? Different way 
 of 
 getting at having a second column.

 On Monday, May 3, 2021 at 4:08:06 PM UTC-5 Atronoush wrote:

> Is there any script or plugin with
>
> - a sidebar tab (I call it basket)
> - drag and drop features! One can drag a tiddler (e.g title) into the 
> basket
> - when finished press a button to export as JSON
> - the button can be dragged and drop into another wiki!
>
> The last part is what you see in TW-Icons
>
>
> -Atro
>
> -- 
 You received this message because you are subscribed to the Google 
 Groups "TiddlyWiki" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to tiddlywiki+...@googlegroups.com.

>>> To view this discussion on the web visit 
 https://groups.google.com/d/msgid/tiddlywiki/0d5544dc-b769-445d-979c-de4c0b891e71n%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+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/3f96cf84-c585-4ed6-829c-6af94da4c686n%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/76657904-68f5-4ed7-8b2b-601e01ef8e78n%40googlegroups.com.


[tw5] Re: Options for keeping revision history?

2021-05-10 Thread Anjar
Non-plugin alternatives include git and sqlite 
; both will keep the wiki size low, 
but neither will have the history directly available in the wiki. Git isn't 
able to take care of title changes, whereas the SQLite-history follows the 
toddler (but it needs a server and is still under development)

Best,
Anders

mandag 10. mai 2021 kl. 14:33:39 UTC+2 skrev si:

> Thanks Mario for the comprehensive reply.
>
> I have decided to create my own history-saving macro, which I will use 
> only in specific instances, rather than across my whole wiki. For now I'm 
> just saving data, I will worry about other features in the future.
>
> This is what I have at the moment:
>
> \define save-history()
> <$vars timestamp=<> >
> <$vars history-tiddler-title={{{ 
> [addsuffix[/history/]addsuffix] }}} >
> <$list filter="[fields[]]" variable=field-name>
> <$action-setfield $tiddler=<> 
> $field={{{ [addsuffix[-history]] }}} $value={{{ 
> [get] }}}/>
> 
> 
> 
> \end
>
> So every time I activate this macro I should get a new "history-tiddler" 
> named /history/. Relink titles 
> 
>  
> will make sure that this data remains associated with the correct tiddler.
>
> I am wondering if it would make more sense to use a JSON tiddler to store 
> history? I would do essentially the same thing, but all history for a 
> particular tiddler would be stored in a single tiddler called 
> /history as JSON entries (using JsonMangler 
> ). Would this be better in 
> terms of performance when I end up with a large number of history-tiddlers, 
> or do you think it makes more sense to stick with what I have done?
> On Sunday, 9 May 2021 at 18:12:35 UTC+1 PMario wrote:
>
>> On Sunday, May 9, 2021 at 6:40:48 PM UTC+2 si wrote:
>>
>>> I've become kind of interested in keeping a full revision history of my 
>>> wiki - i.e. be able to see every single change I've made to every tiddler. 
>>>
>> I know about http://j.d.revisions.tiddlyspot.com/, which I like a lot, 
>>> but it has a couple of disadvantages for my use case:
>>>
>>
>> As far as I know, that's the only plugin which create revisions. And 
>> there is the "trashbin plugin" [1]
>>  
>>
>>>
>>>1. Revisions are only created when you click the save button from 
>>>the edit toolbar. Most of the time I save tiddlers with Ctrl+Enter. 
>>>
>>> IMO this can be solved. .. but you'll need to mess with the core 
>> EditTemplate ... \define save-tiddler-actions() 
>>
>>>
>>>1. I also use Streams a lot, where again changes made to tiddlers 
>>>won't be recorded by the plugin. 
>>>
>>> I think, Streams is designed, to be modified a lot and it uses 
>> dynamically created tiddler titles. .. So you will probably create a lot of 
>> "strange looking titles". So without some heavy support for a "recovery UI" 
>> you will get problems there. 
>>
>>>
>>>1. I use a single html wiki for all my stuff. Presumably having a 
>>>new tiddler created for every change I make will soon start to inflate 
>>> and 
>>>slow down my wiki? Or maybe I am wrong about this?
>>>
>>> IMO it will make the whole thing a lot more complex. 
>>  
>>
>>> So I guess I'm interested in whether it is even practical to keep such 
>>> an extensive history of my wiki use, and if so what options are available?
>>>
>>
>> I did think about a possibility (just in my mind), that it should 
>> possible to store the "diffs only". ... So similar to, what can be seen in 
>> the TW import mechanism. Where you can see "the diff" the difference 
>> between the newly imported tiddler and an existing one. ... 
>>
>> A similar mechanism would allow us to create something that is called a 
>> "patch". ... So it contains the commands, that need to be applied to the 
>> existing tiddler, to get the OLD tiddler back. ... 
>>
>> The problem with a mechanism like this, would be, that you'll need to 
>> apply the patches in order. .. If 1 patch gets lost, there will be a 
>> problem. ... 
>>
>> So the whole handling thing will be complex. .. I didn't think about it 
>> in detail. 
>>
>> -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/76e7138c-506a-41df-823c-8196526151dfn%40googlegroups.com.


Re: [tw5] Is blockchain still not for TW?

2021-05-10 Thread Hans Wobbe
I remain interested in Distributed Ledger Technology much more than I am 
interested in BitCoin and its other financial derivatives, that even 
Central Banks are considering as Cash replacements.  ( And I am not at all 
interested in NFTs since the Name says it all ... "Non Fungible" ... )

One thing I really appreciate about this communitiy is the technological 
creativity that emerges here.  In part, I think it results from the fact 
that community membership is quite diverse, bring a lot of different 
experience and insight to bear.

As more and more DLT systems emerge, it becomes appealing to me to be able 
to use partial segments from multiple systems as an effective combination 
lock.  For example, a combination of:

   - The first 4 digits of the latitue and longiture of (as reported by my 
   cell phone) 
   - The last 4 digits of an active Credit Card (verifiable against Credit 
   Bureau data, together with full Address)
   - A reference to a recognized Social Media site (preferably with a 
   Pictire and peer reviewed) e.g. linkedIn or Flickr
   - The last 4 digits of my Passport number
   - ...

Depending need, I can select various combinations that even include a 
startTime and validity Duraction.
 
With a bit of proper encoding into a Unicode hash, it becomes possible to 
even make such a key remarkably short since there are about 2.2 million 
useful Unicode points have been defined, ensuring that (2e6)e4 gives more 
than enough room!

The appeal is that I can create distinct Tokens that meet my Security and 
Privacy needs, but that others can verify from reliable sources of public 
Definitive Data.

Comments will be appreciated.

Cheers,
Hans

On Monday, May 10, 2021 at 5:14:52 AM UTC-4 inmy...@gmail.com wrote:

> or perhaps I am being too hard on the idea. Instead if you all want I can 
> add blockchain to tiddlywiki and sell NFTs pointing to wikis that I made, 
> like the original twederation wiki or the interaction fiction wiki.
>
> On Monday, May 10, 2021 at 10:54:03 AM UTC+2 Jed Carty wrote:
>
>> Yes, the central question is could blockchain be useful to tiddlywiki. 
>> And so far the only answer has been to use it as a proof of existence by 
>> storing what is in one blockchain (file hashes in git) in a different from 
>> in another block chain.
>>
>> Also, traceability in a blockchain is guaranteed only for events that 
>> happen on the blockchain, not for what the blockchain is supposed to 
>> represent. It is always open to any sort of manipulation at the human 
>> interface side. I could start a car tracing block chain, and I could add 
>> 1 cars to it saying that I own them. That has no bearing on the real 
>> world without some mediating central authority, and with a mediating 
>> central authority the blockchain is redundant.
>>
>> People keep saying 'I am not familiar with the technology' and then 
>> arguing against someone who has studied the theory and technology that goes 
>> into blockchains in academic, hobby and professional capacities. The blind 
>> faith in the unchangeable nature of a blockchain is a huge security risk to 
>> anything that uses it. It is worth repeating over and over: all the 
>> guarantees are just for the numbers stored on the computer, there are 
>> absolutely no guarantees about what those numbers represent. All the 
>> traceability claims completely fail when it gets to the data entry into the 
>> blockchain.
>>
>> After working with some startups I am very familiar with how easy it is 
>> to separate people from large sums of money by making magical claims that 
>> aren't backed up by reality, investment in a technology and the actual 
>> utility of the technology don't correlate. 
>>
>> And as far as smart contracts go, never sign a contract you don't 
>> understand. Someone with my skills would be able to make a contract that 
>> does whatever I want it to do and have it all be essentially invisible to 
>> someone who isn't intimately familiar with the technology that goes though 
>> the code line by line to verify every part of it.
>> As as example: 
>> https://kf106.medium.com/how-to-sleepmint-nft-tokens-bc347dc148f2
>>
>> For ip protection, if Sony (or any other large monied entity) wanted to 
>> claim ownership of anything I have created I would bet on their money and 
>> lawyers over any proof I have of ownership every time, regardless of what 
>> proof of ownership I have, no matter how impossible it is to counterfeit.
>>
>> But, all of that is off topic, to address the original topic, there are 
>> three questions that need to be answered: what, how and why.
>> Why is easy, because it could be interesting. So we don't have to worry 
>> about that.
>> What is the important one that hasn't been answered aside from a legally 
>> untested method for proof of ip ownership. And that isn't a method for 
>> tiddlywiki so much as just an option using external tools. And given what I 
>> know, I would never accept a hash stored on a 

[tw5] Re: $tw.wiki.renderTiddler("text/html", tiddler); & templates

2021-05-10 Thread Saq Imtiaz
Make a parse tree including a transclude widget or look at the 
wiki.makeTranscludeWidget method.


On Monday, May 10, 2021 at 2:32:03 PM UTC+2 james.w@gmail.com wrote:

> in a tiddler {{fig}} works transcluded into another widget, so i guess i'm 
> asking : what it the widget way of performing/rendering a transclusion?
>
> On Sunday, 9 May 2021 at 19:24:54 UTC+1 James Anderson wrote:
>
>> Hello,
>>
>> I'm trying to render a tiddler within another tiddler via a widget. I 
>> have attached a basic example in which i have a widget "twsr" which will 
>> schedule tiddlers, that match the tags in the parent tiddler, to be shown 
>> in the parent for the user to grade (basically a cersion of 
>> https://en.wikipedia.org/wiki/SuperMemo in TW)
>>
>> In this case i have tiddler "study fruits" which is tagged "fruit" and 
>> "veg" it should pick up any other tiddlers tagged with these and show them 
>> in "study fruits" one by one for grading. In this example the first one it 
>> will show is the "figs" tiddler.
>>
>> I'm calling "var cnt = $tw.wiki.renderTiddler("text/html", tiddler);" in 
>> the twsr widget to render the tiddler.
>>
>> "fig" uses "Fruit Template" tiddler which is a simple tiddler containing:
>>
>> <$view field="title"/>
>>
>> If i view fig individually i see what i expect. However rendering "fig" 
>> via $tw.wiki.renderTiddler("text/html", tiddler); in "Study Fruits" is not 
>> what i expect (basically the title via the view field is missing) What is 
>> the correct way to do this?
>>
>> Thanks
>> James
>>
>>
>>
>>
>>

-- 
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/acd1db7e-da1b-4da2-9bee-f90ddd4f5ba2n%40googlegroups.com.


[tw5] Re: Options for keeping revision history?

2021-05-10 Thread si
Thanks Mario for the comprehensive reply.

I have decided to create my own history-saving macro, which I will use only 
in specific instances, rather than across my whole wiki. For now I'm just 
saving data, I will worry about other features in the future.

This is what I have at the moment:

\define save-history()
<$vars timestamp=<> >
<$vars history-tiddler-title={{{ 
[addsuffix[/history/]addsuffix] }}} >
<$list filter="[fields[]]" variable=field-name>
<$action-setfield $tiddler=<> $field={{{ 
[addsuffix[-history]] }}} $value={{{ 
[get] }}}/>



\end

So every time I activate this macro I should get a new "history-tiddler" 
named /history/. Relink titles 

 
will make sure that this data remains associated with the correct tiddler.

I am wondering if it would make more sense to use a JSON tiddler to store 
history? I would do essentially the same thing, but all history for a 
particular tiddler would be stored in a single tiddler called 
/history as JSON entries (using JsonMangler 
). Would this be better in terms 
of performance when I end up with a large number of history-tiddlers, or do 
you think it makes more sense to stick with what I have done?
On Sunday, 9 May 2021 at 18:12:35 UTC+1 PMario wrote:

> On Sunday, May 9, 2021 at 6:40:48 PM UTC+2 si wrote:
>
>> I've become kind of interested in keeping a full revision history of my 
>> wiki - i.e. be able to see every single change I've made to every tiddler. 
>>
> I know about http://j.d.revisions.tiddlyspot.com/, which I like a lot, 
>> but it has a couple of disadvantages for my use case:
>>
>
> As far as I know, that's the only plugin which create revisions. And there 
> is the "trashbin plugin" [1]
>  
>
>>
>>1. Revisions are only created when you click the save button from the 
>>edit toolbar. Most of the time I save tiddlers with Ctrl+Enter. 
>>
>> IMO this can be solved. .. but you'll need to mess with the core 
> EditTemplate ... \define save-tiddler-actions() 
>
>>
>>1. I also use Streams a lot, where again changes made to tiddlers 
>>won't be recorded by the plugin. 
>>
>> I think, Streams is designed, to be modified a lot and it uses 
> dynamically created tiddler titles. .. So you will probably create a lot of 
> "strange looking titles". So without some heavy support for a "recovery UI" 
> you will get problems there. 
>
>>
>>1. I use a single html wiki for all my stuff. Presumably having a new 
>>tiddler created for every change I make will soon start to inflate and 
>> slow 
>>down my wiki? Or maybe I am wrong about this?
>>
>> IMO it will make the whole thing a lot more complex. 
>  
>
>> So I guess I'm interested in whether it is even practical to keep such an 
>> extensive history of my wiki use, and if so what options are available?
>>
>
> I did think about a possibility (just in my mind), that it should possible 
> to store the "diffs only". ... So similar to, what can be seen in the TW 
> import mechanism. Where you can see "the diff" the difference between the 
> newly imported tiddler and an existing one. ... 
>
> A similar mechanism would allow us to create something that is called a 
> "patch". ... So it contains the commands, that need to be applied to the 
> existing tiddler, to get the OLD tiddler back. ... 
>
> The problem with a mechanism like this, would be, that you'll need to 
> apply the patches in order. .. If 1 patch gets lost, there will be a 
> problem. ... 
>
> So the whole handling thing will be complex. .. I didn't think about it in 
> detail. 
>
> -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/a704506f-9370-4307-b110-b274653fc09fn%40googlegroups.com.


[tw5] Re: $tw.wiki.renderTiddler("text/html", tiddler); & templates

2021-05-10 Thread James Anderson
in a tiddler {{fig}} works transcluded into another widget, so i guess i'm 
asking : what it the widget way of performing/rendering a transclusion?

On Sunday, 9 May 2021 at 19:24:54 UTC+1 James Anderson wrote:

> Hello,
>
> I'm trying to render a tiddler within another tiddler via a widget. I have 
> attached a basic example in which i have a widget "twsr" which will 
> schedule tiddlers, that match the tags in the parent tiddler, to be shown 
> in the parent for the user to grade (basically a cersion of 
> https://en.wikipedia.org/wiki/SuperMemo in TW)
>
> In this case i have tiddler "study fruits" which is tagged "fruit" and 
> "veg" it should pick up any other tiddlers tagged with these and show them 
> in "study fruits" one by one for grading. In this example the first one it 
> will show is the "figs" tiddler.
>
> I'm calling "var cnt = $tw.wiki.renderTiddler("text/html", tiddler);" in 
> the twsr widget to render the tiddler.
>
> "fig" uses "Fruit Template" tiddler which is a simple tiddler containing:
>
> <$view field="title"/>
>
> If i view fig individually i see what i expect. However rendering "fig" 
> via $tw.wiki.renderTiddler("text/html", tiddler); in "Study Fruits" is not 
> what i expect (basically the title via the view field is missing) What is 
> the correct way to do this?
>
> Thanks
> James
>
>
>
>
>

-- 
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/ba632cc5-3cd3-423d-bfc2-2db57aa8f13bn%40googlegroups.com.


Re: [tw5] Re: Missing transcluded tiddlers question

2021-05-10 Thread Charlie Veniot
That makes sense.  Who knows what kind of nefarious junk can be sitting in 
any one subdomain.

Yeah, last I checked in with network folk in my old job, so much easier to 
blacklist an entire site and put all staff in a position of filing an 
exception for each subdomain.

Molasses-like process frustrating to folk like me in the application 
support trenches, but I understood the pains folk in the network/security 
trenches had to deal with.

Thanks Tones, much appreciated !

On Monday, May 10, 2021 at 2:33:41 AM UTC-3 TW Tones wrote:

> FYI neocities is a Hosting site. In the past I have seen it blocked 
> because one of those sites is up to nefarious activities.  It should be 
> blocking with regards to the subdomains not the top domain but some 
> blacklisting does not take account of this.
>
> Tones
>
> On Monday, 10 May 2021 at 11:01:47 UTC+10 cj.v...@gmail.com wrote:
>
>> Yeah, sounds like your network firewall is blocking access to neocities.  
>> I can't do anything about that.
>>
>> On Sun, May 9, 2021 at 9:55 PM David Gifford  wrote:
>>
>>> Same message
>>>
>>>
>>>
>>>
>>>
>>> On Sun, May 9, 2021 at 7:48 PM Charlie Veniot  wrote:
>>>
 Unless your firewall is suspicious of a redirect

 Would you mind trying a direct link to the tiddlywiki for me, to see if 
 I should always be providing direct links going forward:  
 https://tiddlywiki-programming.neocities.org/CJ_TiddlyWikiProgramming.html

 Thanks !

 On Sunday, May 9, 2021 at 9:14:44 PM UTC-3 Charlie Veniot wrote:

> Are you using a work computer?  Could be the workplace firewall is 
> blocking access.
>
> On Sunday, May 9, 2021 at 9:11:53 PM UTC-3 Charlie Veniot wrote:
>
>> Sounds like your computer does not allow access to neocities.  Not 
>> sure why it would do that.  I know of nothing nefarious related to 
>> neocities.
>>
>> On Sunday, May 9, 2021 at 6:11:28 PM UTC-3 David Gifford wrote:
>>
>>> Chrome: " Your Internet access is blocked
>>>
>>> Firewall or antivirus software may have blocked the connection."
>>>
>>> On Sunday, May 9, 2021 at 4:09:44 PM UTC-5 David Gifford wrote:
>>>
 "Firefox can’t establish a connection to the server at 
 tiddlywiki-programming.neocities.org."

 Just now.

 -- 
 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/O_MSnQaesbo/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/752d6713-c4c4-4573-9a6f-9197f655d24an%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/O_MSnQaesbo/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/CANE%3DBF%2B8aPQR2i6A0iTqCWN%2BsV%3Dmgwehk0TJDoURn-FYAphe-A%40mail.gmail.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/8bf9edc0-197c-4291-a46c-da8c431cf448n%40googlegroups.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread TiddlyTweeter
Ciao Mohammad

In my own testing so far this more minimal regex seems to work ... !!

   -  pattern="^\ *(https?|ftp|file|news|data|mailto):.+$

With something like this ...

   - {{{ 
   
[trim[https://]trim[http://]trim[www.]trim[ftp://]trim[file:///]trim[news:]trim[mailto:]split[/]!is[blank]first[]join[.]]
 
   }}}

Any of those protocols a user does not support yet in a browser should be 
prompted for by the BROWSER. 

Just a comment. NOT fully tested yet but seems okay so far.
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/0894700b-b0b7-436a-b662-02dea0fd8a56n%40googlegroups.com.


[tw5] Re: String manipulations on textarea input

2021-05-10 Thread Antonis Lamnatos
Ah yes, thanks for reminding me. Although it was purely for showing how I 
want to split the date per field. I haven't yet reached the point where I'm 
trying to reference actual fields.

I'm trying to see if some or even most of what I've described can be 
achieved with <$list filter>-ing through the text area input. Maybe 
combining splits, regexes and splitregexes. 

The other approach would be to code a JavaScript macro but that gets quite 
more complicated and is not as easy to play with until I get it right.

On Monday, May 10, 2021 at 12:33:35 PM UTC+3 PMario wrote:

> Hi,
> *Field names *have to be *lowercase *only.
> -m
>
> On Monday, May 10, 2021 at 11:25:48 AM UTC+2 lamn...@gmail.com wrote:
>
>> I'm moving my personal journal written in markdown files into Tiddlywiki. 
>> I'm looking for a way to perform string/text manipulation on the input of 
>> an <$edit-text>.
>>
>> Currently, each entry starts with a ##header which was the date the 
>> entry was written. A blank line follows and then one or more paragraphs of 
>> the main entry body:
>>
>> ## MMDD
>>
>> Lorem ipsum dolor sit amet, consectetur adipiscing elit...
>>
>> I've created a Journal Entry tiddler page which would have an <$edit-text 
>> tag=textarea> widget. I'll manually paste in the textarea each journal 
>> entry and by pressing a button it will be split into the following 
>> elements/fields, which would then be added as a new tiddler with the 
>> following fields:
>>
>> Title: MMDD
>> Text: Lorem ipsum (etc)
>> Year: 
>> Month: MM
>>
>> I'm looking for a way way to perform all the little subtring() 
>> manipulations and isolating the header line and the main body. I've already 
>> figured how to create a new tiddler from a series of existing fields. 
>>
>

-- 
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/a18a6d2b-d9c0-4760-be7e-eb0fe4c9f3c3n%40googlegroups.com.


[tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread TiddlyTweeter
si wrote:

> @TT I'm also finding that it doesn't work in Firefox (v88, Windows 10).
>

Right. There is some kind of *Obscure Issue* on Firefox. 
I think it looks like it is more fussy than Chrome on canonical url syntax? 

NOT SURE. Testing will eventually bring it out I'm sure.

Current thoughts.
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/62269c22-77b3-4541-8a45-bfd478748d4bn%40googlegroups.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread TiddlyTweeter
jeremy...@gmail.com wrote:

> Sadly, browsers do not allow JavaScript code running in TiddlyWiki to 
> obtain the window title corresponding to a particular URL. 
>
> A different approach that could work is to write a bookmarklet that runs 
> in the context of the page being bookmarked; it would have full access to 
> the page content, including the window title. It wouldn't have access to 
> TiddlyWiki, though, so perhaps the best it could do is to popup a window to 
> fill in the tags etc, and then download a .json file of the link tiddler 
> that could later be imported into a wiki.
>

Thanks Jeremy. That is useful for me to be clearer about! 
And for Mohammad to know.

Best wishes
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/dcf15650-7d95-4ca7-bfe4-6b03d710e04an%40googlegroups.com.


Re: [tw5] Re: A basket on the sidebar

2021-05-10 Thread Mohammad Rahmani
On Mon, May 10, 2021 at 10:12 AM TW Tones  wrote:

> Further feature extensions;
>
>- The ability to build cumulative json tiddlers or plugins.
>- A Cumulative plugin would allow you to drop titles on a basket,
>click to create a plugin. then add additional tiddlers and update it, and
>update the plugin with all edited tiddlers.
>   - This would allow the building of transferable data tiddlers
>   - Quick updates to a plugin
>   - Incorporate changes to a plugin according to the edited shadow
>   tiddlers.
>  - Perhaps one could even play with core updates this way
>
> This has certainly sparks my creative inspiration, I could have code the
> basket, but never did, now it exists - wow.
>

I have developed an easy plugin maker! which is quite similar to what you
said there is two issues to be addressed

1. Right now it seems TW does not support subcategory to distribute
contents as plugin and we had discussion with Jeremy if the title plugin is
suitable for such distribution (see the ebook edition of Tiddlywiki). There
were suggestions by Mario and Jeremy to use subcategories to distribute
other contents (like presentations, brochures, booklets, articles, novels,
... )
2. A standard plugin in my opinion shall meet some minimum requirements

ّ




>
> Tones
>
> On Monday, 10 May 2021 at 12:05:40 UTC+10 TW Tones wrote:
>
>> Gentlemen,
>>
>> Simply leveraging the idea of the basket, I am exploring a set of related
>> methods to extend its functionality.
>>
>> Behind this is a desire to make lists of tiddlers a first class citizen
>> in tiddlywiki.
>>
>> My time is limited but I hope to see or design myself if no one else does.
>>
>>- Have a single click to make more baskets (or managed lists)
>>- drag/Save basket to JSON tiddler
>>- drag/Save  basket to JSON tiddler and change to a plugin
>>- Allow a filter to be used to add tiddlers to any basket.
>>- Handling the list of titles in a basket, rather than the tiddler
>>content.
>>   - I would like a button on tiddlers containing a list, to be
>>   draggable to the basket
>>   - I would like to be able to drag the list of tiddlers in the
>>   basket to the above list icon to update its list field,
>>  - drop to add basket titles to existing list field
>>  - ctrl-drop replace existing list field with basket titles
>>   - I would love to be able to generate a tiddler with a list of
>>   titles and start referring it to a list tiddler. we can add and remove
>>   titles from, reorder and drag and drop as above.
>>  - The basket idea can support this nicely.
>>
>> If someone like the wonderful Mohammad can run with these ideas, or I can
>> collaborate to see them to fruition it would be great, but a lot to ask,
>> alternatively I will build them in time.
>>
>> later I would like
>>
>>- Save the current story as a list
>>- Restore any list and open tiddlers in the story.
>>- Save the history list to a basket/list
>>- Have seperate named stories/history lists that can be "activated"
>>- Have any generated filter driven lists that can be manipulated like
>>a basket, eg recent, haschanged, story, my username/created/modified.
>>
>> The worlds is our oster, Our oster is tiddlywiki.
>>
>> Regards
>> Tones
>>
>> On Monday, 10 May 2021 at 05:39:27 UTC+10 David Gifford wrote:
>>
>>> Thanks Mohammad, works great! I even figured out how to turn the text
>>> field into a large edit-text area, and I moved the clear box button next to
>>> the tiddler title link, to clear up some vertical space. See attached
>>> image.
>>>
>>> On Sunday, May 9, 2021 at 12:22:00 AM UTC-5 Mohammad wrote:
>>>
 David,
  In another thread there is discussion on drag and drop features! I
 bring one example here!

 The attached tiddler shows a drop zone and if you drag a tiddler to on
 the drop zone
 it will grab the title of dragged tiddler and shows its text! Also all
 of its field
 tag with $:/tags/Sidebar and test on tiddlywiki.com

 You add this to the Basket if you like!


 Best wishes
 Mohammad


 On Sun, May 9, 2021 at 1:18 AM David Gifford  wrote:

> What would it take so that dragging a tiddler to the Basket tiddler
> would display the text field of the tiddler in the Basket? Different way 
> of
> getting at having a second column.
>
> On Monday, May 3, 2021 at 4:08:06 PM UTC-5 Atronoush wrote:
>
>> Is there any script or plugin with
>>
>> - a sidebar tab (I call it basket)
>> - drag and drop features! One can drag a tiddler (e.g title) into the
>> basket
>> - when finished press a button to export as JSON
>> - the button can be dragged and drop into another wiki!
>>
>> The last part is what you see in TW-Icons
>>
>>
>> -Atro
>>
>> --
> You received this message because you are subscribed to the 

Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread Jeremy Ruston
Sadly, browsers do not allow JavaScript code running in TiddlyWiki to obtain 
the window title corresponding to a particular URL. 

A different approach that could work is to write a bookmarklet that runs in the 
context of the page being bookmarked; it would have full access to the page 
content, including the window title. It wouldn't have access to TiddlyWiki, 
though, so perhaps the best it could do is to popup a window to fill in the 
tags etc, and then download a .json file of the link tiddler that could later 
be imported into a wiki.

Best wishes

Jeremy

--
Jeremy Ruston
jer...@jermolene.com
https://jermolene.com

> On 10 May 2021, at 09:57, TiddlyTweeter  wrote:
> 
> 
> Ciao Mohammad & si-matthew
> 
>> si  wrote:
>>> @Mohammad Really nice! I've stayed away from drag and drop up until now, so 
>>> I look forward to seeing what you come up with.
>>> 
>>> The bookmarker is a great example. It works particularly well in Vivaldi if 
>>> you have your wiki open in the sidebar - no having to jump between tabs. It 
>>> would be cool if it could pull the title of the page as well as the URL, 
>>> but I imagine this would require some JavaScript magic?
> 
> Mohammad replied ... 
>> I like this feature too! I think yes JS is needed, at least I do not know 
>> how to extract data using wikitext!
> 
>> but I am looking forward to any solution / idea.
> 
> My GUESS is that it may be possible to use this tool alongside a browser 
> Bookmarklet?
> 
> Jeremy actually posted one that you could click to create a link tiddler. I 
> just haven't been able to find it in the Google Group yet.
> 
> My thought is that rather than immediately create a "Link Tiddler", as it 
> currently works, is it creates a temporary tiddler. 
> In that way one might be able to use it in parallel with other methods? 
> Meaning, for instance, a browser bookmarklet might be able to fill the same 
> temporary "Link Tiddler" fields?
> 
>  ALSO one could use the edit widget to change the "title" IF needed before 
> final save to a "Link Tiddler"?
> 
> I hope this is clear!
> 
> Just thoughts!
> 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/6c32036c-ade2-4118-a23a-60cca3103cean%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/6DA755D6-40F7-4DE5-8CB3-14447EB2E5E4%40gmail.com.


[tw5] Re: String manipulations on textarea input

2021-05-10 Thread PMario
Hi,
*Field names *have to be *lowercase *only.
-m

On Monday, May 10, 2021 at 11:25:48 AM UTC+2 lamn...@gmail.com wrote:

> I'm moving my personal journal written in markdown files into Tiddlywiki. 
> I'm looking for a way to perform string/text manipulation on the input of 
> an <$edit-text>.
>
> Currently, each entry starts with a ##header which was the date the entry 
> was written. A blank line follows and then one or more paragraphs of the 
> main entry body:
>
> ## MMDD
>
> Lorem ipsum dolor sit amet, consectetur adipiscing elit...
>
> I've created a Journal Entry tiddler page which would have an <$edit-text 
> tag=textarea> widget. I'll manually paste in the textarea each journal 
> entry and by pressing a button it will be split into the following 
> elements/fields, which would then be added as a new tiddler with the 
> following fields:
>
> Title: MMDD
> Text: Lorem ipsum (etc)
> Year: 
> Month: MM
>
> I'm looking for a way way to perform all the little subtring() 
> manipulations and isolating the header line and the main body. I've already 
> figured how to create a new tiddler from a series of existing fields. 
>

-- 
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/5bd3c3bc-ec65-48f9-a2ef-04d80f05fb0en%40googlegroups.com.


[tw5] String manipulations on textarea input

2021-05-10 Thread Antonis Lamnatos
I'm moving my personal journal written in markdown files into Tiddlywiki. 
I'm looking for a way to perform string/text manipulation on the input of 
an <$edit-text>.

Currently, each entry starts with a ##header which was the date the entry 
was written. A blank line follows and then one or more paragraphs of the 
main entry body:

## MMDD

Lorem ipsum dolor sit amet, consectetur adipiscing elit...

I've created a Journal Entry tiddler page which would have an <$edit-text 
tag=textarea> widget. I'll manually paste in the textarea each journal 
entry and by pressing a button it will be split into the following 
elements/fields, which would then be added as a new tiddler with the 
following fields:

Title: MMDD
Text: Lorem ipsum (etc)
Year: 
Month: MM

I'm looking for a way way to perform all the little subtring() 
manipulations and isolating the header line and the main body. I've already 
figured how to create a new tiddler from a series of existing fields. 

-- 
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/1bc16db9-aacd-4844-86ec-325a03df4f03n%40googlegroups.com.


Re: [tw5] Is blockchain still not for TW?

2021-05-10 Thread Jed Carty
or perhaps I am being too hard on the idea. Instead if you all want I can 
add blockchain to tiddlywiki and sell NFTs pointing to wikis that I made, 
like the original twederation wiki or the interaction fiction wiki.

On Monday, May 10, 2021 at 10:54:03 AM UTC+2 Jed Carty wrote:

> Yes, the central question is could blockchain be useful to tiddlywiki. And 
> so far the only answer has been to use it as a proof of existence by 
> storing what is in one blockchain (file hashes in git) in a different from 
> in another block chain.
>
> Also, traceability in a blockchain is guaranteed only for events that 
> happen on the blockchain, not for what the blockchain is supposed to 
> represent. It is always open to any sort of manipulation at the human 
> interface side. I could start a car tracing block chain, and I could add 
> 1 cars to it saying that I own them. That has no bearing on the real 
> world without some mediating central authority, and with a mediating 
> central authority the blockchain is redundant.
>
> People keep saying 'I am not familiar with the technology' and then 
> arguing against someone who has studied the theory and technology that goes 
> into blockchains in academic, hobby and professional capacities. The blind 
> faith in the unchangeable nature of a blockchain is a huge security risk to 
> anything that uses it. It is worth repeating over and over: all the 
> guarantees are just for the numbers stored on the computer, there are 
> absolutely no guarantees about what those numbers represent. All the 
> traceability claims completely fail when it gets to the data entry into the 
> blockchain.
>
> After working with some startups I am very familiar with how easy it is to 
> separate people from large sums of money by making magical claims that 
> aren't backed up by reality, investment in a technology and the actual 
> utility of the technology don't correlate. 
>
> And as far as smart contracts go, never sign a contract you don't 
> understand. Someone with my skills would be able to make a contract that 
> does whatever I want it to do and have it all be essentially invisible to 
> someone who isn't intimately familiar with the technology that goes though 
> the code line by line to verify every part of it.
> As as example: 
> https://kf106.medium.com/how-to-sleepmint-nft-tokens-bc347dc148f2
>
> For ip protection, if Sony (or any other large monied entity) wanted to 
> claim ownership of anything I have created I would bet on their money and 
> lawyers over any proof I have of ownership every time, regardless of what 
> proof of ownership I have, no matter how impossible it is to counterfeit.
>
> But, all of that is off topic, to address the original topic, there are 
> three questions that need to be answered: what, how and why.
> Why is easy, because it could be interesting. So we don't have to worry 
> about that.
> What is the important one that hasn't been answered aside from a legally 
> untested method for proof of ip ownership. And that isn't a method for 
> tiddlywiki so much as just an option using external tools. And given what I 
> know, I would never accept a hash stored on a blockchain as the only proof 
> of a claim if there were any significant consequences related to it.
> It is impossible to answer how without answering what first.
>
> So, what would any blockchain technology do in tiddlywiki? Without that we 
> may as well say 'should we incorporate Ingenuity flying on mars into 
> tiddlywiki?' No one is going to claim that Ingenuity isn't important or 
> worth paying attention to, but what does the question even mean? It is just 
> gibberish without some idea of what 'incorporate' would involve.
>
> This is the exact same question as before and it needs an answer before 
> there is any chance of discussion other than playing buzzword bingo. Like 
> what does 'a blockchain of secure tiddlers' mean in practical terms?
>
> On Monday, May 10, 2021 at 3:07:54 AM UTC+2 TW Tones wrote:
>
>> Mart,
>>
>> I applaud your raising blockchain as a possible integration to 
>> tiddlywiki. 
>>
>> I spent some time researching the technology, but I could not build an 
>> instance, nor am I an expert, however some thoughts;
>>
>> I think it could be a good technology to make use of with tiddlywiki, 
>> especially since it does promote secure sharing, unalterable "documents" 
>> and cutting out the middlemen (which is some ways a feature of tiddlywiki), 
>>
>> Perhaps the first application I can see is if there were a way to publish 
>> selected tiddlers into a blockchain, effectively small documents. A range 
>> of features not possible in standard tiddlywiki would then become available 
>> to tiddlywiki users and designers. In this case we would look at a 
>> providing secure, certified shared information services via such a 
>> blockchain and to users of tiddlywiki. Plugins and utility data could be 
>> published to the blockchain for public access and private tiddlers for 

Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread TiddlyTweeter
Ciao Mohammad & si-matthew 

si  wrote:
>
>> @Mohammad Really nice! I've stayed away from drag and drop up until now, 
>> so I look forward to seeing what you come up with.
>>
>> The bookmarker is a great example. It works particularly well in Vivaldi 
>> if you have your wiki open in the sidebar - no having to jump between tabs. 
>> It would be cool if it could pull the title of the page as well as the URL, 
>> but I imagine this would require some JavaScript magic?
>>
>
Mohammad replied ... 

> I like this feature too! I think yes JS is needed, at least I do not know 
> how to extract data using wikitext! 
>

*but I am looking forward to any solution / idea.*
>

*My GUESS is that it may be possible to use this tool alongside a browser 
Bookmarklet?*

Jeremy actually posted one that you could click to create a link tiddler. I 
just haven't been able to find it in the Google Group yet.

My thought is that rather than immediately create a "Link Tiddler", as it 
currently works, is it creates a temporary tiddler. 
In that way one might be able to use it in parallel with other methods? 
Meaning, for instance, a browser bookmarklet might be able to fill the same 
temporary "Link Tiddler" fields?

 ALSO one could use the edit widget to change the "title" IF needed before 
final save to a "Link Tiddler"?

*I hope this is clear!*

Just thoughts!
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/6c32036c-ade2-4118-a23a-60cca3103cean%40googlegroups.com.


Re: [tw5] Is blockchain still not for TW?

2021-05-10 Thread Jed Carty
Yes, the central question is could blockchain be useful to tiddlywiki. And 
so far the only answer has been to use it as a proof of existence by 
storing what is in one blockchain (file hashes in git) in a different from 
in another block chain.

Also, traceability in a blockchain is guaranteed only for events that 
happen on the blockchain, not for what the blockchain is supposed to 
represent. It is always open to any sort of manipulation at the human 
interface side. I could start a car tracing block chain, and I could add 
1 cars to it saying that I own them. That has no bearing on the real 
world without some mediating central authority, and with a mediating 
central authority the blockchain is redundant.

People keep saying 'I am not familiar with the technology' and then arguing 
against someone who has studied the theory and technology that goes into 
blockchains in academic, hobby and professional capacities. The blind faith 
in the unchangeable nature of a blockchain is a huge security risk to 
anything that uses it. It is worth repeating over and over: all the 
guarantees are just for the numbers stored on the computer, there are 
absolutely no guarantees about what those numbers represent. All the 
traceability claims completely fail when it gets to the data entry into the 
blockchain.

After working with some startups I am very familiar with how easy it is to 
separate people from large sums of money by making magical claims that 
aren't backed up by reality, investment in a technology and the actual 
utility of the technology don't correlate. 

And as far as smart contracts go, never sign a contract you don't 
understand. Someone with my skills would be able to make a contract that 
does whatever I want it to do and have it all be essentially invisible to 
someone who isn't intimately familiar with the technology that goes though 
the code line by line to verify every part of it.
As as 
example: https://kf106.medium.com/how-to-sleepmint-nft-tokens-bc347dc148f2

For ip protection, if Sony (or any other large monied entity) wanted to 
claim ownership of anything I have created I would bet on their money and 
lawyers over any proof I have of ownership every time, regardless of what 
proof of ownership I have, no matter how impossible it is to counterfeit.

But, all of that is off topic, to address the original topic, there are 
three questions that need to be answered: what, how and why.
Why is easy, because it could be interesting. So we don't have to worry 
about that.
What is the important one that hasn't been answered aside from a legally 
untested method for proof of ip ownership. And that isn't a method for 
tiddlywiki so much as just an option using external tools. And given what I 
know, I would never accept a hash stored on a blockchain as the only proof 
of a claim if there were any significant consequences related to it.
It is impossible to answer how without answering what first.

So, what would any blockchain technology do in tiddlywiki? Without that we 
may as well say 'should we incorporate Ingenuity flying on mars into 
tiddlywiki?' No one is going to claim that Ingenuity isn't important or 
worth paying attention to, but what does the question even mean? It is just 
gibberish without some idea of what 'incorporate' would involve.

This is the exact same question as before and it needs an answer before 
there is any chance of discussion other than playing buzzword bingo. Like 
what does 'a blockchain of secure tiddlers' mean in practical terms?

On Monday, May 10, 2021 at 3:07:54 AM UTC+2 TW Tones wrote:

> Mart,
>
> I applaud your raising blockchain as a possible integration to tiddlywiki. 
>
> I spent some time researching the technology, but I could not build an 
> instance, nor am I an expert, however some thoughts;
>
> I think it could be a good technology to make use of with tiddlywiki, 
> especially since it does promote secure sharing, unalterable "documents" 
> and cutting out the middlemen (which is some ways a feature of tiddlywiki), 
>
> Perhaps the first application I can see is if there were a way to publish 
> selected tiddlers into a blockchain, effectively small documents. A range 
> of features not possible in standard tiddlywiki would then become available 
> to tiddlywiki users and designers. In this case we would look at a 
> providing secure, certified shared information services via such a 
> blockchain and to users of tiddlywiki. Plugins and utility data could be 
> published to the blockchain for public access and private tiddlers for 
> security `between wikis and wiki users.
>
> Now this somewhat simplified description of a block chain of secure 
> tiddlers could actually generate a wide number of seriously powerful 
> solutions, by keeping it to a simple set of enabling blockchain 
> technologies linked to the tiddler. I have cultivated a creative side to my 
> use of Information Technology and can imagine many possibilities, but I 
> will not 

Re: [tw5] Re: A basket on the sidebar

2021-05-10 Thread Mohammad Rahmani
Tones,

 Some of these are already implemented in the attached basket solution
above!
 The basket by Morosanuae is also very appealing! Loot at its nice design
and try its different features!
https://morosanuae.github.io/tw-icons/

You should consider Basket as a shopping basket ;-) with one difference you
can select tiddlers you like and export to your another wiki by JSON file
or drag and drop, and then you can leave without paying a cent! ;-) :)




Best wishes
Mohammad


On Mon, May 10, 2021 at 6:35 AM TW Tones  wrote:

> Gentlemen,
>
> Simply leveraging the idea of the basket, I am exploring a set of related
> methods to extend its functionality.
>
> Behind this is a desire to make lists of tiddlers a first class citizen in
> tiddlywiki.
>
> My time is limited but I hope to see or design myself if no one else does.
>
>- Have a single click to make more baskets (or managed lists)
>- drag/Save basket to JSON tiddler
>- drag/Save  basket to JSON tiddler and change to a plugin
>- Allow a filter to be used to add tiddlers to any basket.
>- Handling the list of titles in a basket, rather than the tiddler
>content.
>   - I would like a button on tiddlers containing a list, to be
>   draggable to the basket
>   - I would like to be able to drag the list of tiddlers in the
>   basket to the above list icon to update its list field,
>  - drop to add basket titles to existing list field
>  - ctrl-drop replace existing list field with basket titles
>   - I would love to be able to generate a tiddler with a list of
>   titles and start referring it to a list tiddler. we can add and remove
>   titles from, reorder and drag and drop as above.
>  - The basket idea can support this nicely.
>
> If someone like the wonderful Mohammad can run with these ideas, or I can
> collaborate to see them to fruition it would be great, but a lot to ask,
> alternatively I will build them in time.
>
> later I would like
>
>- Save the current story as a list
>- Restore any list and open tiddlers in the story.
>- Save the history list to a basket/list
>- Have seperate named stories/history lists that can be "activated"
>- Have any generated filter driven lists that can be manipulated like
>a basket, eg recent, haschanged, story, my username/created/modified.
>
> The worlds is our oster, Our oster is tiddlywiki.
>
> Regards
> Tones
>
> On Monday, 10 May 2021 at 05:39:27 UTC+10 David Gifford wrote:
>
>> Thanks Mohammad, works great! I even figured out how to turn the text
>> field into a large edit-text area, and I moved the clear box button next to
>> the tiddler title link, to clear up some vertical space. See attached
>> image.
>>
>> On Sunday, May 9, 2021 at 12:22:00 AM UTC-5 Mohammad wrote:
>>
>>> David,
>>>  In another thread there is discussion on drag and drop features! I
>>> bring one example here!
>>>
>>> The attached tiddler shows a drop zone and if you drag a tiddler to on
>>> the drop zone
>>> it will grab the title of dragged tiddler and shows its text! Also all
>>> of its field
>>> tag with $:/tags/Sidebar and test on tiddlywiki.com
>>>
>>> You add this to the Basket if you like!
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> On Sun, May 9, 2021 at 1:18 AM David Gifford  wrote:
>>>
 What would it take so that dragging a tiddler to the Basket tiddler
 would display the text field of the tiddler in the Basket? Different way of
 getting at having a second column.

 On Monday, May 3, 2021 at 4:08:06 PM UTC-5 Atronoush wrote:

> Is there any script or plugin with
>
> - a sidebar tab (I call it basket)
> - drag and drop features! One can drag a tiddler (e.g title) into the
> basket
> - when finished press a button to export as JSON
> - the button can be dragged and drop into another wiki!
>
> The last part is what you see in TW-Icons
>
>
> -Atro
>
> --
 You received this message because you are subscribed to the Google
 Groups "TiddlyWiki" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to tiddlywiki+...@googlegroups.com.

>>> To view this discussion on the web visit
 https://groups.google.com/d/msgid/tiddlywiki/0d5544dc-b769-445d-979c-de4c0b891e71n%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/d3e0570a-d62c-472d-b8ed-9798b5d87271n%40googlegroups.com
> 

Re: [tw5] Re: A basket on the sidebar

2021-05-10 Thread Mohammad Rahmani
Hi David,

On Mon, May 10, 2021 at 12:09 AM David Gifford  wrote:

> Thanks Mohammad, works great! I even figured out how to turn the text
> field into a large edit-text area, and I moved the clear box button next to
> the tiddler title link, to clear up some vertical space. See attached image.


Great! I looked at the screenshot you attached! Very nice! I even thought
of a reverse arrangement!
Having tiddler in the sidebar and editing in the main river!

Any way seems a lot of possibility!



>
>
> On Sunday, May 9, 2021 at 12:22:00 AM UTC-5 Mohammad wrote:
>
>> David,
>>  In another thread there is discussion on drag and drop features! I bring
>> one example here!
>>
>> The attached tiddler shows a drop zone and if you drag a tiddler to on
>> the drop zone
>> it will grab the title of dragged tiddler and shows its text! Also all of
>> its field
>> tag with $:/tags/Sidebar and test on tiddlywiki.com
>>
>> You add this to the Basket if you like!
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Sun, May 9, 2021 at 1:18 AM David Gifford  wrote:
>>
>>> What would it take so that dragging a tiddler to the Basket tiddler
>>> would display the text field of the tiddler in the Basket? Different way of
>>> getting at having a second column.
>>>
>>> On Monday, May 3, 2021 at 4:08:06 PM UTC-5 Atronoush wrote:
>>>
 Is there any script or plugin with

 - a sidebar tab (I call it basket)
 - drag and drop features! One can drag a tiddler (e.g title) into the
 basket
 - when finished press a button to export as JSON
 - the button can be dragged and drop into another wiki!

 The last part is what you see in TW-Icons


 -Atro

 --
>>> You received this message because you are subscribed to the Google
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to tiddlywiki+...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/0d5544dc-b769-445d-979c-de4c0b891e71n%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/3f96cf84-c585-4ed6-829c-6af94da4c686n%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/CAAV1gMBVJbODrsjKqd9Fvd-_Lqr0vqFJP9wtp_9S-fNL8iaR2A%40mail.gmail.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread Mohammad Rahmani
On Mon, May 10, 2021 at 12:58 AM si  wrote:

> @Mohammad Really nice! I've stayed away from drag and drop up until now,
> so I look forward to seeing what you come up with.
>
> The bookmarker is a great example. It works particularly well in Vivaldi
> if you have your wiki open in the sidebar - no having to jump between tabs.
> It would be cool if it could pull the title of the page as well as the URL,
> but I imagine this would require some JavaScript magic?
>

I like this feature too! I think yes JS is needed, at least I do not know
how to extract data using wikitext! but I am looking forward to any
solution / idea.


> @TT I'm also finding that it doesn't work in Firefox (v88, Windows 10).
> On Saturday, 8 May 2021 at 20:00:14 UTC+1 Mohammad wrote:
>
>> *Example 1: Bookmarker Zone*
>>
>> Drag and drop a valid url to create a bookmark
>>
>>
>>1. Attached JSON contains three tiddler
>>2. Download and drag and drop into https://tiddlywiki.com/prerelease/
>>3. Look at sidebar and open Bookmarker
>>4. drag and drop VALID url over the dropzone of  Bookmarker
>>5. See new bookmark created
>>6. The code is smart to do nothing if you drag and drop a text or a
>>tiddler only valid URL works!
>>
>>
>> Kudos must go to *Eric Shulman* for demystifying droppable widget! and *Tones
>> *for asking for this feature!
>>
>> This code can be further expanded and customized!
>>
>> See attached demo clip.
>>
>>
>> Best wishes
>> Mohammad
>>
>> On Sat, May 8, 2021 at 10:45 PM Mohammad Rahmani 
>> wrote:
>>
>>> While drag and drop is not a new feature in Tiddlywiki, but it is a bit
>>> tricky to develop tools based on it.
>>> There are a lot of great use cases for it [1]. This feature has
>>> recently been improved [2] and there is still work in progress to address
>>> issues and make it more powerful!
>>>
>>> I am working on a resource to demystify the drag-N-drop in Tiddlywiki
>>> lets all users use and customize it in their development for different
>>> purposes!
>>>
>>> Please kindly share your scripts, tools, and examples for drag-N-drop in
>>> Tiddlywiki. I will do
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> Ref
>>> [1] https://groups.google.com/g/tiddlywiki/c/dDMG3Ocb29s/m/J0hYKp0qBAAJ
>>> [2] https://groups.google.com/g/tiddlywiki/c/OR48TT_loB8/m/OY3LMOrDBAAJ
>>>
>>> --
> 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/108555ea-cba8-4082-81bb-11ee63a79d35n%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/CAAV1gMBn-5OuzP%3DQfR90U3%3DppbF3NnpJseRr4jA95vLxM2tDPA%40mail.gmail.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread Mohammad Rahmani
Best wishes
Mohammad


On Mon, May 10, 2021 at 10:52 AM TW Tones  wrote:

> Mohammad,
>
> I dropped rev02 on triddlywiki.com and its a not working, the only
> symptom I see is the green download bar is displayed.
>

Tones,

I checked the rev02 again! It works!
Note only drag and drop a valid link!

Thank you

>
> Tones
>
> On Sunday, 9 May 2021 at 15:53:07 UTC+10 Mohammad wrote:
>
>> Hi TT,
>>  Good to read your reply! I was  writing you and I saw your email
>>
>>1. the regex is your area of expertise, please check the pattern, I
>>just generated it in regex101 and not sure if it correct but it works
>>2. yes, please add the file:///
>>3. a second version is attached which is remove https, http, ftp
>>prefixes and drop part after first /, so it keeps the domain (e.g
>>mail.google.com)
>>4. the template can be customized per user and you can add/remove
>>what you like, note to also correct `createBookmark` macro
>>
>> So please go ahead and let me know your corrections!
>>
>> Side note: naming and caption is for my doc Tiddlywiki, change to fit
>> your own requirements!
>>
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Sun, May 9, 2021 at 9:07 AM TiddlyTweeter  wrote:
>>
>>> Ciao Mohammad
>>>
>>> Mohammad wrote:
>>>
 *Example 1: Bookmarker Zone*

 Drag and drop a valid url to create a bookmark

>>>
>>> Just FYI, I haven't got it working in my Firefox yet. Chrome, yes. Maybe
>>> that is just me? Something weird in my Firefox?
>>>
>>> Couple of other points ...
>>>
>>>- I might try and adapt a version so that the links are *stored in
>>>data dictionaries*. That better suits my practice as I just tend to
>>>use links for a while and then delete them. All I normally use is the 
>>> link
>>>and its title. Dates unneeded for me.
>>>
>>>
>>>- I also link a lot to local files and wiki. So I'd try and change
>>>the "url parsing" to accept "*file:///"*
>>>
>>> *Its very good to see an example like yours to better understand d-n-d!
>>> Tx!*
>>>
>>> Best wishes
>>> 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+...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/8958229d-95ba-4b8e-a719-a9b184ee6c23n%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/b2f49b70-0a3f-4228-8083-2c1695ee3104n%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/CAAV1gMDQajORhV6NepKP2KB8rfB%2BsY5GdF_uM%2BxHn9J7MZ930A%40mail.gmail.com.


Re: [tw5] Re: Demystify drag-N-drop in Tiddlywiki

2021-05-10 Thread TW Tones
Mohammad,

I dropped rev02 on triddlywiki.com and its a not working, the only symptom 
I see is the green download bar is displayed.

Tones

On Sunday, 9 May 2021 at 15:53:07 UTC+10 Mohammad wrote:

> Hi TT,
>  Good to read your reply! I was  writing you and I saw your email
>
>1. the regex is your area of expertise, please check the pattern, I 
>just generated it in regex101 and not sure if it correct but it works
>2. yes, please add the file:/// 
>3. a second version is attached which is remove https, http, ftp 
>prefixes and drop part after first /, so it keeps the domain (e.g 
>mail.google.com)
>4. the template can be customized per user and you can add/remove what 
>you like, note to also correct `createBookmark` macro
>
> So please go ahead and let me know your corrections!
>
> Side note: naming and caption is for my doc Tiddlywiki, change to fit your 
> own requirements!
>
>
>
> Best wishes
> Mohammad
>
>
> On Sun, May 9, 2021 at 9:07 AM TiddlyTweeter  wrote:
>
>> Ciao Mohammad
>>
>> Mohammad wrote:
>>
>>> *Example 1: Bookmarker Zone*
>>>
>>> Drag and drop a valid url to create a bookmark
>>>
>>
>> Just FYI, I haven't got it working in my Firefox yet. Chrome, yes. Maybe 
>> that is just me? Something weird in my Firefox?
>>
>> Couple of other points ...
>>
>>- I might try and adapt a version so that the links are *stored in 
>>data dictionaries*. That better suits my practice as I just tend to 
>>use links for a while and then delete them. All I normally use is the 
>> link 
>>and its title. Dates unneeded for me.
>>
>>
>>- I also link a lot to local files and wiki. So I'd try and change 
>>the "url parsing" to accept "*file:///"*
>>
>> *Its very good to see an example like yours to better understand d-n-d! 
>> Tx!*
>>
>> Best wishes
>> 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+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/8958229d-95ba-4b8e-a719-a9b184ee6c23n%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/b2f49b70-0a3f-4228-8083-2c1695ee3104n%40googlegroups.com.