Re: [tw] Re: upgrade.html does still requires an upgrade on each tiddler

2017-07-14 Thread 'manta' via TiddlyWiki
Hi,
I was searching around for updating my TW2 to TW 5. Finally I landed here 
and I am posting here only to show you that such an upgrade solution is 
still necessary for old TiddlyWiki Users.
Best regards and many thanks for all your work
Manni

Am Dienstag, 31. Januar 2017 04:47:09 UTC+1 schrieb TD:
>
> Hi Jeremy, how is the development of the TW2->TW5 converter going?  Is 
> there somewhere I can check it's status?
>
> Thanks
> TD
>
> On Thursday, June 25, 2015 at 8:03:56 PM UTC+10, Jeremy Ruston wrote:
>>
>> Hi TD
>>
>> On Thu, Jun 25, 2015 at 8:22 AM, TD  wrote:
>>
>>> I'm finding it frustrating that an upgrade without using a the tw2parser 
>>> seems messy.  Why wasn't there a one stop conversion utility built?  Is it 
>>> just too hard to automate?
>>>
>>
>> Support for TW2 wikitext is packaged as an external plugin because it's 
>> quite a lot of code that we don't want to carry around in the core all the 
>> time.
>>
>> The TW2->TW5 upgrade path is in development; the plan would certainly be 
>> to streamline the process as much as we can,
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>>  
>>
>>> -- 
>>> 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 post to this group, send email to tiddl...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/tiddlywiki.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/0d5768e7-c25d-40e7-8b28-fe48914c3791%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Jeremy Ruston
>> mailto:jeremy...@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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/844f0d08-081e-4d47-84f0-af4951020958%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Positive Assertions In One Sentence ... (aka Saying Succinctly What TW Is About ...)

2017-07-14 Thread @TiddlyTweeter
TiddlyWiki is a really good instrument for writers.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/54c1d828-9d50-4ff2-96a4-eefe27e88442%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Positive Assertions In One Sentence ... (aka Saying Succinctly What TW Is About ...)

2017-07-14 Thread Jeremy Ruston
Thanks Josiah, the word "instrument" is pretty good!

Thanks

Jeremy

--
Jeremy Ruston


> On 14 Jul 2017, at 15:51, @TiddlyTweeter  wrote:
> 
> TiddlyWiki is a really good instrument for writers.
> -- 
> 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 post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/54c1d828-9d50-4ff2-96a4-eefe27e88442%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/A338D7E5-0798-4DD8-AFEB-755BF8F11480%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Lightboxes in TW?

2017-07-14 Thread @TiddlyTweeter
Ciao PMario

Good questions. 

Its image centric. I don't really care whether its a floating Lightbox. But 
the aesthetics matter. I need all "furniture" out of the way. And its got 
to be adaptive to screen sizes. 

FYI, the images themselves are all the same size. And they are all 
portrait. That simplifies the aim a bit.

Thanks for the links. I will look.

Best wishes
Josiah
On Friday, 14 July 2017 17:47:36 UTC+2, PMario wrote:
>
> Hi TT,
>
> Should it be a lightbox only, or should there be the standard "writer" 
> interface too. ... I personally don't like popups and modals. IMO they 
> waste screen real estate. Images, videos, .. should be full-screen with 
> minimal UI, even in a TW. 
>
> I'm thinking about stuff like these: 
>
>  - https://tympanus.net/Tutorials/CSSMaskTransition/  ... latest browsers 
> only ... I love demo2 and 3
>  - https://tympanus.net/Tutorials/TiltedContentSlideshow/
>  - https://tympanus.net/Development/ScatteredPolaroidsGallery/
>
> The problem with those examples is. You still need perfect images, to make 
> the effects shine ;) and for TW we'd need to make everything dynamic. So 
> basically implement it from scratch. ... But I like the animations for 
> about 20 minutes ;)
>
> So if you want to work with it, I'd use much less bells and whistles. 
>
> have fun!
> 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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c5b65685-3643-4247-9123-ff50fc9588e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread 'Mark S.' via TiddlyWiki
I assume you're thinking of using Tobias' random solution ? His is based on 
selecting tiddler titles. Haven't tried it, but assuming you could 
construct a massive filter like:

\define reimage() C:\mypath\fw_$(num)$.jpg
<$list filter="0001 0002 0003 ...etc... 4000 +[random[1]]" variable="num" >
<$image source=<>/>

> Ciao tutti
>
> This is an early query to see if anyone can confirm whether what I will 
> need will be possible or not.
>
> If it sounds like it is I can lay out the use case in more detail.
>
> By way of background, I have a project with multiple (external) images. 
> When a visitor comes to the TW online I want them to see ONE randomly 
> selected image presented via a modal. 
>
> Important to understand is that *this is NOT a randomly selected Tiddler* 
> (which a gizmo by Tobias Beer does well already). 
>
> Rather, the modal initiation should dynamically create a path to a 
> randomly selected external graphic file that the modal displays (obviously 
> only within the range of what is available). The range for the image to 
> randomly pick is currently "0001" to "4000"---with full-file names like: 
> "fw3022.jpg".   
>
> (My thinking behind this is to NOT burden the TW with 4,000 tiddlers it 
> doesn't need to be a lightweight Lightbox). 
>
> I hope this is clear enough.
>
> Please ask me to clarify if it is not.
>
> Many thanks
> Josiah
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/417fccac-c7b4-4def-bf7a-5c898e02a371%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] A TiddlyWikified Lens on Spreadsheets

2017-07-14 Thread stevesuny


Folks,


Thanks to some timely help (thanks Mark & Eric), I've developed an 
interpretive lens onto a spreadsheet.


See http://sunypoly-schedule-explorer.tiddlyspot.com/ for an example.



   - Demonstrates import of spreadsheet data into navigable space. One row 
   per case. Each column a field in each case (as defined in xlxs plugin 
   import manager). Every column/field is can be clicked on to create lists of 
   tiddlers matching field value.
   - Start in Classes 
    , and select 
   one. Then select one of the class fields (such as instructor or days, etc.
   - A tiddler is created (see schedule elements template 
   
,
 
   and then rendered using template field value template 
    
to 
   display matching tiddlers.
   - No other code needed.
   - To do
  - clean up names of things like "schedule-elements" and 
  "element-fields" etc.
  - consider writing tiddlers to temp files
   
Comments/ suggestions/ improvements welcome.



//steve.


-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c3b51ce1-e0ba-405e-8289-af872ccb66c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Variable for field name in filter

2017-07-14 Thread 'Mark S.' via TiddlyWiki
Yeah, you can't use {{!!field-name}} notation to substitute for a filter 
operator suffix AFAIK. Use a macro to concatenate and form your filter 
instead, like:

\define indirect() [field:$(field-name)$[$(field-value)$]]
<$vars field-name={{!!field-name}} field-value={{!!field-value}}>
<$list filter=<> />


HTH
Mark


On Friday, July 14, 2017 at 1:28:18 PM UTC-7, stevesuny wrote:
>
> My tiddler has these fields:
>
> field-name: instructor
> field-value: Chiang
>
> I want to search for all tiddlers for which field:instructor = Chiang.
>
> This works: filter="[field:instructor{!!field-value}]"
>
> But this doesn't:
>
> filter="[field:{!!field-name}{!!field-value}]"
>
> Sorry to be confusing,
>
> //steve.
>
> On Friday, July 14, 2017 at 4:04:47 PM UTC-4, Mark S. wrote:
>>
>> Hi Steve,
>>
>> Is there a typo here? In the filter you say field-value. But in your text 
>> you say field-name. Which is it?
>>
>> Mark
>>
>> On Friday, July 14, 2017 at 12:56:07 PM UTC-7, stevesuny wrote:
>>>
>>> This filter works: <$list filter="[field:instructor{!!field-value}]">
>>>
>>> My tiddler has field-name=instructor
>>>
>>> How do I transclude {{!!field-name}} into the filter to replace 
>>> "instructor"? 
>>>
>>> (I've tried every possible solution but the right one :)
>>>
>>> Thans, //steve.
>>>
>>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ca808184-6ec9-409c-84a6-3c73812e90f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Variable for field name in filter

2017-07-14 Thread stevesuny
Worked like a charm.

OK, I would never have gotten to figure that out. It seems these generic 
\define sitting on top of macros or templates are very powerful and useful 
addition to the general process of transclusion. 

Thanks for your help! I'll post the results in another thread soon. 

//steve.

On Friday, July 14, 2017 at 4:52:34 PM UTC-4, Mark S. wrote:
>
> Yeah, you can't use {{!!field-name}} notation to substitute for a filter 
> operator suffix AFAIK. Use a macro to concatenate and form your filter 
> instead, like:
>
> \define indirect() [field:$(field-name)$[$(field-value)$]]
> <$vars field-name={{!!field-name}} field-value={{!!field-value}}>
> <$list filter=<> />
> 
>
> HTH
> Mark
>
>
> On Friday, July 14, 2017 at 1:28:18 PM UTC-7, stevesuny wrote:
>>
>> My tiddler has these fields:
>>
>> field-name: instructor
>> field-value: Chiang
>>
>> I want to search for all tiddlers for which field:instructor = Chiang.
>>
>> This works: filter="[field:instructor{!!field-value}]"
>>
>> But this doesn't:
>>
>> filter="[field:{!!field-name}{!!field-value}]"
>>
>> Sorry to be confusing,
>>
>> //steve.
>>
>> On Friday, July 14, 2017 at 4:04:47 PM UTC-4, Mark S. wrote:
>>>
>>> Hi Steve,
>>>
>>> Is there a typo here? In the filter you say field-value. But in your 
>>> text you say field-name. Which is it?
>>>
>>> Mark
>>>
>>> On Friday, July 14, 2017 at 12:56:07 PM UTC-7, stevesuny wrote:

 This filter works: <$list filter="[field:instructor{!!field-value}]">

 My tiddler has field-name=instructor

 How do I transclude {{!!field-name}} into the filter to replace 
 "instructor"? 

 (I've tried every possible solution but the right one :)

 Thans, //steve.



-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/aace0b7f-56d9-4294-b810-8650d00fec6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread @TiddlyTweeter
Thank you Mark S. I appreciate it.

On Friday, 14 July 2017 22:34:31 UTC+2, Mark S. wrote:
>
> Just change 
>
> <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
>
> to
>
> <$list filter="0 1 2 3 +[random[1]]" variable="n1" >
>
> On Friday, July 14, 2017 at 1:29:29 PM UTC-7, @TiddlyTweeter wrote:
>>
>> Thanks Mark S.
>>
>> Yes  to 3999 would work best. I can rename 4000 as . Anything 
>> over 4000 would hit a void.
>>
>> How should PMario's idea be modified for that?
>>
>> Best wishes
>> Josiah
>>
>> On Friday, 14 July 2017 22:03:14 UTC+2, Mark S. wrote:
>>>
>>> D'oh! Very clever Pmario!
>>>
>>> That will actually make a number between  and 4999. Perhaps a number 
>>> between  and 3999 would be acceptable? That's actually 4000 distinct 
>>> numbers.
>>>
>>> Mark
>>>
>>> On Friday, July 14, 2017 at 11:20:23 AM UTC-7, PMario wrote:

 imo better: 

 \define number()$(n1)$$(n2)$$(n3)$$(n4)$
 <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
 <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
 <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
 <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
 <>
 
 
 
 

>>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b53646cf-e119-4e91-aa8f-4ce666097f25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Variable for field name in filter

2017-07-14 Thread 'Mark S.' via TiddlyWiki
Hi Steve,

Is there a typo here? In the filter you say field-value. But in your text 
you say field-name. Which is it?

Mark

On Friday, July 14, 2017 at 12:56:07 PM UTC-7, stevesuny wrote:
>
> This filter works: <$list filter="[field:instructor{!!field-value}]">
>
> My tiddler has field-name=instructor
>
> How do I transclude {{!!field-name}} into the filter to replace 
> "instructor"? 
>
> (I've tried every possible solution but the right one :)
>
> Thans, //steve.
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/af3cacfb-a103-40b1-b7d5-dbfff66b4aab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread 'Mark S.' via TiddlyWiki
Just change 

<$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >

to

<$list filter="0 1 2 3 +[random[1]]" variable="n1" >

On Friday, July 14, 2017 at 1:29:29 PM UTC-7, @TiddlyTweeter wrote:
>
> Thanks Mark S.
>
> Yes  to 3999 would work best. I can rename 4000 as . Anything over 
> 4000 would hit a void.
>
> How should PMario's idea be modified for that?
>
> Best wishes
> Josiah
>
> On Friday, 14 July 2017 22:03:14 UTC+2, Mark S. wrote:
>>
>> D'oh! Very clever Pmario!
>>
>> That will actually make a number between  and 4999. Perhaps a number 
>> between  and 3999 would be acceptable? That's actually 4000 distinct 
>> numbers.
>>
>> Mark
>>
>> On Friday, July 14, 2017 at 11:20:23 AM UTC-7, PMario wrote:
>>>
>>> imo better: 
>>>
>>> \define number()$(n1)$$(n2)$$(n3)$$(n4)$
>>> <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
>>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
>>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
>>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
>>> <>
>>> 
>>> 
>>> 
>>> 
>>>
>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/164c5ef7-2f1c-4a1e-8153-4a2428b0c554%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] parse and style a tiddler content

2017-07-14 Thread paolo b
Hi  Tony

your suggestion is spot on, in fact I'm using a modified version of Tobias' 
approach.

The only remark I have is that the sort operator in


<$list filter="[indexes[]sort[title]]">

appears to be superfluous, since

$:/core/modules/filters/indexes.js

already forces sorting according to the titles.

This was also a problem for me, since I wanted to list the data tiddler in 
its original order.
I've solved my problem by simply commenting

results.sort();  

at the bottom of  

$:/core/modules/filters/indexes.js 

On a different front, I've also managed to programmatically change the type 
of the tiddler, so that it is temporarily set to data.
So I'm pretty happy now.

Regards

Paolo

On Friday, July 14, 2017 at 11:15:49 AM UTC+2, TonyM wrote:
>
> Paolo,
>
> I may be off track but if you are trying to deal with what are effectively 
> data tiddlers with content in the form
> word: definition
>
> Then Tobias mentions how to Iterate DataTiddler Indexes
> https://tobibeer.github.io/tb5/#Iterate%20DataTiddler%20Indexes
>
> That may contain some useful code
>
> Regards
> Tony
>
>
> On Wednesday, 12 July 2017 00:00:33 UTC+10, paolo b wrote:
>>
>> yes Mark, it did help - thanks.
>>
>> I also defined a tooltip stylesheet so that I can style it as I like with:
>>
>>
>> <$wikify name="answer"  text=<> >
>>> class="tooltip"> > title="">//<>//
>>
>>
>> As a side effect, however, my original tiddler (now converted into data 
>> type) has lost its previous formatting. 
>>
>> Is there a way to avoid this, e.g. with a smarter transclusion, so that I 
>> can keep the original format??
>>
>> Paolo
>>
>>
>> On Saturday, July 8, 2017 at 9:11:55 PM UTC+2, Mark S. wrote:
>>>
>>> I didn't use any stylesheet stuff with this, though I imagine there are 
>>> ways to approach it that would. I created the "tip" with *span 
>>> title="stuff"*
>>>
>>> If you create a data tiddler (be sure to mark it's type at the bottom of 
>>> the tiddler) with this data and call it, for example, Quiz1 :
>>>
>>> tiddler: the smallest semantic unit
>>> field:  a semantic unit smaller than a tiddler
>>>
>>> And then set up these macros (perhaps globally):
>>>
>>> \define getanswer() {{$(tiddler)$##$(question)$}}
>>> \define makequiz(quiz) 
>>> <$vars tiddler="$quiz$">
>>> <$list filter="[[$quiz$]] +[indexes[]]" variable="question">
>>>
>>> <$wikify name="answer"  text=<> >
>>> ''Term'': >>//<>//
>>>
>>> 
>>> 
>>> 
>>> \end
>>>
>>>
>>>
>>> Then you can create a list of terms based on Quiz1 by invoking like this:
>>>
>>>
>>> <>
>>>
>>> When you hover over a term, it's definition will pop up.
>>>
>>> HTH
>>> Mark
>>>
>>>
>>>


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/33e64e02-8e03-4a5d-aec8-95de1fa22abe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread @TiddlyTweeter
Thanks Mark S.

Yes  to 3999 would work best. I can rename 4000 as . Anything over 
4000 would hit a void.

How should PMario's idea be modified for that?

Best wishes
Josiah

On Friday, 14 July 2017 22:03:14 UTC+2, Mark S. wrote:
>
> D'oh! Very clever Pmario!
>
> That will actually make a number between  and 4999. Perhaps a number 
> between  and 3999 would be acceptable? That's actually 4000 distinct 
> numbers.
>
> Mark
>
> On Friday, July 14, 2017 at 11:20:23 AM UTC-7, PMario wrote:
>>
>> imo better: 
>>
>> \define number()$(n1)$$(n2)$$(n3)$$(n4)$
>> <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
>> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
>> <>
>> 
>> 
>> 
>> 
>>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c75ffd34-eb02-4c10-9a52-696c8f038049%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Lightweight diagrams (e.g. concept maps)?

2017-07-14 Thread Sean Boyle
I have seen the plugins which allow tiddlers to represented graphically.  I 
would like to see something lightweight which would simply allow the 
drawing of simple diagrams within a tiddler, something like the railroad 
diagram plugin, possibly using graphiviz syntax.  Has anyone done this?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9856a097-1534-460e-a287-1c664b027aba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread PMario
imo better: 

\define number()$(n1)$$(n2)$$(n3)$$(n4)$
<$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
<$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
<$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
<$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
<>





-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7a794b78-f1d5-40bf-a083-64a1dc76fec1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [NoteSelf] Bug fixes and (cool) new features

2017-07-14 Thread JWHoneycutt
How far I've gotten:
   
   - 1) Created a Cloudant account: https://jwhoneycutt.cloudant.com
  - 1A) In Cloudant -> Account -> CORS: Enabled CORS and restricted to 
  specific domain: https://noteself.github.io
   - 2) Open https://noteself.github.io/ in Google Chrome (for some reason 
   people keep saying to start TW5's in Google Chrome and use them in 
   FireFox <#FireFox>)
   - 2A) In the GettingStarted <#GettingStarted> tiddler I change the 
   following entries:

Notebook Name: JWH_NoteSelf

CouchDB <#CouchDB> URL: https://jwhoneycutt.cloudant.com (right?)

Remote database name: JWH_NoteSelf

Page title: JWH_NoteSelf


   - 3) I click on Save Config button - and a popup appears: 
   "noteself.github.io says: Configuration has been changed and saved. It is 
   necessary to reload the window. Are you OK with it?" -> I click OK
   - 4) A "Loading" paints green from left to right for a few seconds, and 
   the red circlecheck icon turns gray. It is next to a new button on the 
   sideBar labelled OFFLINE (In the silent video this converts to a cloudcheck 
   icon)
   - 5) I save a new tiddler as a test and Chrome creates a file 
   "tiddlywiki (5).html" in my downloads folder
   - 6) I move this file from Downloads folder to Dropbox/TW5 folder and 
   rename it JWH_NoteSelf.html
   - 7) I drag this newly renamed file to the FireFox <#FireFox> address 
   bar and it fails to load with a big red error box: "Internal JavaScript 
   <#JavaScript> Error, Well, this is embarrassing. It is recommended that 
   you restart TiddlyWiki <#TiddlyWiki> by refreshing your browser -
   ReferenceError <#ReferenceError>: $TPouch is not defined" - since 
   refreshing the address bar doesn't help - I close the tab in FireFox 
   <#FireFox>
   - 8) I open TiddlyDesktop <#TiddlyDesktop> and "Add a TiddlyWiki 
   <#TiddlyWiki> file": I select Dropbox/TW5/JWH_NoteSelf.html and it 
   doesn't load it, so I close all TW5 files and reload TiddlyDesktop 
   <#TiddlyDesktop>
   - 9) If (happens half the time) TiddlyWiki <#TiddlyWiki> Desktop does 
   load it - when I try to open it - it gives the same "Internal JavaScript 
   <#JavaScript> Error" in a big red box.
   - 10) Same error if I just try to double click JWH_NoteSelf.html in the 
   dropbox folder (set to default open with FireFox <#FireFox>)

Maybe I violated some JavaScript <#JavaScript> convention when I renamed 
the file, or moved it?

JWHoneycutt

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1fbbd287-77e4-4def-ad8a-792938eb6e7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread 'Mark S.' via TiddlyWiki
D'oh! Very clever Pmario!

That will actually make a number between  and 4999. Perhaps a number 
between  and 3999 would be acceptable? That's actually 4000 distinct 
numbers.

Mark

On Friday, July 14, 2017 at 11:20:23 AM UTC-7, PMario wrote:
>
> imo better: 
>
> \define number()$(n1)$$(n2)$$(n3)$$(n4)$
> <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
> <>
> 
> 
> 
> 
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d36450e2-807a-49af-8673-0d3e9fa8e76b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Transcluding fieldnames into filters

2017-07-14 Thread stevesuny
given a tiddler with fields field-name=instructor and field-value=Chiang, 
why can't I get filter #3 to work in this template?





<$list filter="[all[current]field:role[FieldValue]]">

1 
<$list filter="[instructor[Chiang]]">
<>


2 
<$list filter="[instructor{!!field-value}]">
<>


3 
<$list filter="[{!!field-name}[Chiang]]">
<>


(I've tried every combination of !! and {{ and [  . I spend so much 
time doing filter syntax

Thanks, //steve.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/74935132-a063-47ff-b95e-6897361b818e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Variable for field name in filter

2017-07-14 Thread stevesuny
This filter works: <$list filter="[field:instructor{!!field-value}]">

My tiddler has field-name=instructor

How do I transclude {{!!field-name}} into the filter to replace 
"instructor"? 

(I've tried every possible solution but the right one :)

Thans, //steve.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/165f50f5-12e0-4956-be72-b506fb458aea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread @TiddlyTweeter
Thanks PMario

I can see what that is doing and it makes sense & should run fast.

I will play with it and see if I can get it to work for what I need.

Best wishes
Josiah

On Friday, 14 July 2017 20:20:23 UTC+2, PMario wrote:
>
> imo better: 
>
> \define number()$(n1)$$(n2)$$(n3)$$(n4)$
> <$list filter="0 1 2 3 4 +[random[1]]" variable="n1" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n2" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n3" >
> <$list filter="1 2 3 4 5 6 7 8 9 0 +[random[1]]" variable="n4" >
> <>
> 
> 
> 
> 
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8fbda574-1f23-419b-a2d5-53c8b6f98786%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TWC] How to delay the execution of a macro or a part of it

2017-07-14 Thread Yakov
Hello whatever,

today I've read a very nice article about browsers' JS main loop and Web 
Workers [*] and it seems that Web Workers is exactly what you need. Like 
you said, JS is a single-thread, but Web Workers "break this rule": they 
are processed in separate threads and hence don't hang the interface. 
Still, they have their limitations: DOM can't be manipulated from a Web 
Worker. Hence, you should create a Web Worker and set an event handler: 
once the job is done by your Web Worker, you can change DOM. Normally WW 
are used with JS in a separate file, but this can be worked around using 
stuff like

var worker = new Worker( window.URL.createObjectURL( new 
BlobBuilder().append( "onmessage = function(e) { postMessage('hello 
habrahabr'); }" ).getBlob() ) ); worker.postMessage();

Another option is to use setTimeout instead of WW: in this trick JS bits 
(small enough) are executed between other stuff in the event loop and hence 
the interface doesn't hang [**].

Best regards,
Yakov.

[*] it's in Russian so probably not useful for you: 
https://habrahabr.ru/company/tradingview/blog/178261/
[**] see the first answer here: 
https://stackoverflow.com/questions/714942/how-to-stop-intense-javascript-loop-from-freezing-the-browser

вторник, 11 июля 2017 г., 21:59:02 UTC+3 пользователь whatever написал:
>
> Hey!
> I think the issue is that JS is a single-thread language, if I understand 
> correctly. I'm guessing that when you open the tiddler, the wikifier gets 
> the content, queues all the macros inside it and only shows the tiddler 
> once all macros have executed. I'll try playing around with Promises when I 
> have the time, but my understanding is not all that good.
> w
>
> On Tuesday, July 11, 2017 at 8:39:14 PM UTC+2, Yakov wrote:
>>
>> Well, it sounds like Promises might help you. I'm not sure yet about the 
>> blocking nature of JS for interface, but what you can do is the following:
>>
>> in handler, create a container and create a Promise to fill it – that 
>> Promise has to do the calculations;
>> chain another Promise to it, it has to grab the calculation results and 
>> build DOM.
>>
>> What I think I understand is that the 2 promises will be fullfilled after 
>> the whole code, meaning after other wikifying, so the user will see other 
>> content. What I'm not sure at all is whether the first Promise will or will 
>> not block user interface (I don't know well why this blocking happens at 
>> all). Once the calculation is done, the second Promise will work and that 
>> one will certainly block user interface but at least it is not the long 
>> part, if I've understood you correctly.
>>
>> I'm not familiar at all with Web Workers but looks like this is the 
>> second thing you should look into.
>>
>> Best regards,
>> Yakov.
>>
>> PS very interesting what you will come up with, I wonder if those tools 
>> can be used to make saving with TiddlyFox asynchronous (or more precisely, 
>> non-blocking), but I haven't learned enough stuff yet.
>>
>> понедельник, 10 июля 2017 г., 23:00:54 UTC+3 пользователь whatever 
>> написал:
>>>
>>> Hey, Yakov.
>>> My plugin processes parameters from internal tiddlers, no external 
>>> resources required. It's called InfoboxTablesPlugin [1] and I use it to 
>>> generate Wikipedia-style infoboxes. The current version that's publicly 
>>> available is not the latest though. The new version supports modules and 
>>> includes, and I found that when the number of available parameters gets 
>>> over a hundred, the wiki freezes until the plugin is done processing. Only 
>>> then is the tiddler displayed. These are extreme test cases, of course, but 
>>> the wiki is a bit slow even when there are fewer parameters to process.
>>> I have seen the SO thread you posted, but I haven't had the time to play 
>>> around yet.
>>> I have also joined the TWC group.:D
>>>
>>> [1] http://infoboxes.tiddlyspot.com/
>>>
>>> w
>>>
>>> On Monday, July 10, 2017 at 9:47:08 PM UTC+2, Yakov wrote:

 Hello whatever,

 could you specify what kind of computation does this macro require? 
 Does it make any requests to external sources?

 This may be of use: 
 https://stackoverflow.com/questions/36588775/are-javascript-promise-asynchronous

 Best regards,
 Yakov.

 PS you may be interested in joining the new TiddlyWikiClassic group: 
 https://groups.google.com/forum/#!forum/tiddlywikiclassic

 пятница, 30 июня 2017 г., 23:45:00 UTC+3 пользователь whatever написал:
>
> Bump.
>
> On Thursday, June 22, 2017 at 5:48:38 PM UTC+2, whatever wrote:
>>
>> Hi!
>> I'm working on a plugin, which, depending on the amount of data it 
>> needs to process, can take up to a minute to render. In the mean time, 
>> the 
>> TWC is practically frozen. Is there any way to delay the processing of 
>> the 
>> macro until the tiddler is loaded? Or delay the processing part of the 
>> macro? Which would 

[tw] Re: Transcluding fieldnames into filters

2017-07-14 Thread stevesuny
Essentially: I need to create a filter that lists tiddlers matching values 
of {{!!field-value}} on {{!!field-name}}.

On Friday, July 14, 2017 at 3:14:03 PM UTC-4, stevesuny wrote:
>
> given a tiddler with fields field-name=instructor and field-value=Chiang, 
> why can't I get filter #3 to work in this template?
>
>
>
>
>
> <$list filter="[all[current]field:role[FieldValue]]">
>
> 1 
> <$list filter="[instructor[Chiang]]">
> <>
> 
>
> 2 
> <$list filter="[instructor{!!field-value}]">
> <>
> 
>
> 3 
> <$list filter="[{!!field-name}[Chiang]]">
> <>
> 
>
> (I've tried every combination of !! and {{ and [  . I spend so much 
> time doing filter syntax
>
> Thanks, //steve.
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6625db9b-cabb-4bc0-84eb-7108dca92db7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Link to a tiddler named in a field value

2017-07-14 Thread stevesuny
Eric, this *almost* works, thanks! So close...I can see it working :)

The challenge remains building a link to a tiddler represented by a 
transcluded value of a filtered tiddler.



You had

<$list filter="[tag[schedule-elements]eachsort]">
  <$vars this-value=<>>
  <>: <$link><>

which created a link to the filtered tiddler not the value tiddler.


I changed it to

<$list filter="[tag[schedule-elements]eachsort]">
<$vars this-value=<>>
<>: <>: Link to <$link 
to=<>><>

which doesn't quite work: if <> is "instructor" my link goes to 
{{!!instructor}}

So I must be only one level off on the transclusion...so close!

//steve.



On Thursday, July 13, 2017 at 5:17:07 PM UTC-4, Eric Shulman wrote:
>
> On Thursday, July 13, 2017 at 1:19:14 PM UTC-7, stevesuny wrote:
>>
>> I thought that, too.
>>
>> The problem: <$set name="this-value" value=<>> names to 
>> the current tiddler, not the value of the field that I am interested in.
>>
>> How do I set this-value to a field value, whose name is itself a variable?
>>
>
> This situation is referred to as "double indirection" (i.e. using one 
> variable to hold the name of another variable that contains the desired 
> value)
>
> Try using a little "helper" function to construct the desired reference...
>
> Something like this: (untested)
> \define getFieldValue() {{!!$(this-field)$}}
>
> <$list filter="[all[current]tag[element-field]]"
><$vars this-field=<>>
><$list filter=
> "[tag[schedule-elements]eachsort]">
>   <$vars this-value=<>>
>   <>: <$link><>
>   
>
>
> 
>
> <> uses the $(...)$ syntax to substitute the current field 
> name into the transclusion syntax.  Thus, if this-field has a value of 
> "foobar", <> will return "{{!!foobar}}" which is then parsed 
> by the <$vars> widget to retrieve the field value and assign it to the 
> "this-value" variable
>
> Note: instead of using the <$set name="foo" value="bar"> syntax, I prefer 
> to use the <$vars foo="bar"> syntax they both will have the same 
> result, but <$vars> seems easier to read.
>
> enjoy,
> -e
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/94faaf29-9047-475c-9a34-3e38a7489819%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Random -- But Within A Range

2017-07-14 Thread @TiddlyTweeter
Thanks Mark S.

A query, does "<$list filter="0001 0002 0003 ...etc... 4000 +[random[1]]" 
variable="num" >" mean i'd have to literally enter 4000 numbers? If so, 
that looks like asking for trouble.

Could it not be calculated from a spawned random?

I wasn't actually thinking of using Tobias' solution because it seemed more 
focused on Tiddlers that exist. What I need is only random creation of a 
number between 0001 and 4000 to help create an external file link that is 
transitory. 

Best wishes
Josiah

On Friday, 14 July 2017 18:27:34 UTC+2, Mark S. wrote:
>
> I assume you're thinking of using Tobias' random solution ? His is based 
> on selecting tiddler titles. Haven't tried it, but assuming you could 
> construct a massive filter like:
>
> \define reimage() C:\mypath\fw_$(num)$.jpg
> <$list filter="0001 0002 0003 ...etc... 4000 +[random[1]]" variable="num" >
> <$image source=<>/>
> 
> which could be used to build fw_0001.jpg, fw_0002.jpg, fw_0003.jpg ...
>
> Not sure what the performance would be like with 4000 items, or if the 
> parser would break.
>
> Or if you had a data dictionary with the file names in it, or even just 
> numbers 0-4000 you could used the indexes operator.
>
> Mark
>
>  
>
> On Friday, July 14, 2017 at 3:48:41 AM UTC-7, @TiddlyTweeter wrote:
>>
>> Ciao tutti
>>
>> This is an early query to see if anyone can confirm whether what I will 
>> need will be possible or not.
>>
>> If it sounds like it is I can lay out the use case in more detail.
>>
>> By way of background, I have a project with multiple (external) images. 
>> When a visitor comes to the TW online I want them to see ONE randomly 
>> selected image presented via a modal. 
>>
>> Important to understand is that *this is NOT a randomly selected Tiddler* 
>> (which a gizmo by Tobias Beer does well already). 
>>
>> Rather, the modal initiation should dynamically create a path to a 
>> randomly selected external graphic file that the modal displays (obviously 
>> only within the range of what is available). The range for the image to 
>> randomly pick is currently "0001" to "4000"---with full-file names like: 
>> "fw3022.jpg".   
>>
>> (My thinking behind this is to NOT burden the TW with 4,000 tiddlers it 
>> doesn't need to be a lightweight Lightbox). 
>>
>> I hope this is clear enough.
>>
>> Please ask me to clarify if it is not.
>>
>> Many thanks
>> Josiah
>>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9674af2f-b765-4f9c-8d1e-4b6654376695%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Link to a tiddler named in a field value

2017-07-14 Thread stevesuny
Mark, that did it! thanks! will post corrected code with doc later. Eric & 
Mark, thanks! //steve.

On Friday, July 14, 2017 at 1:09:35 PM UTC-4, Mark S. wrote:
>
> I don't have time to look at this right now, but the first thing I would 
> try is going back to Eric's example and changing <$vars> to 
>
> <$wikify name=this-value text=<>> ... 
>
> Good luck!
> Mark
>
> On Friday, July 14, 2017 at 8:21:57 AM UTC-7, stevesuny wrote:
>>
>> Eric, this *almost* works, thanks! So close...I can see it working :)
>>
>> The challenge remains building a link to a tiddler represented by a 
>> transcluded value of a filtered tiddler.
>>
>>
>>
>> You had
>>
>> <$list filter="[tag[schedule-elements]eachsort]">
>>   <$vars this-value=<>>
>>   <>: <$link><>
>>
>> which created a link to the filtered tiddler not the value tiddler.
>>
>>
>> I changed it to
>>
>> <$list filter="[tag[schedule-elements]eachsort]">
>> <$vars this-value=<>>
>> <>: <>: Link to <$link 
>> to=<>><>
>>
>> which doesn't quite work: if <> is "instructor" my link goes 
>> to {{!!instructor}}
>>
>> So I must be only one level off on the transclusion...so close!
>>
>> //steve.
>>
>>
>>
>> On Thursday, July 13, 2017 at 5:17:07 PM UTC-4, Eric Shulman wrote:
>>>
>>> On Thursday, July 13, 2017 at 1:19:14 PM UTC-7, stevesuny wrote:

 I thought that, too.

 The problem: <$set name="this-value" value=<>> names 
 to the current tiddler, not the value of the field that I am interested in.

 How do I set this-value to a field value, whose name is itself a 
 variable?

>>>
>>> This situation is referred to as "double indirection" (i.e. using one 
>>> variable to hold the name of another variable that contains the desired 
>>> value)
>>>
>>> Try using a little "helper" function to construct the desired 
>>> reference...
>>>
>>> Something like this: (untested)
>>> \define getFieldValue() {{!!$(this-field)$}}
>>>
>>> <$list filter="[all[current]tag[element-field]]"
>>><$vars this-field=<>>
>>><$list filter=
>>> "[tag[schedule-elements]eachsort]">
>>>   <$vars this-value=<>>
>>>   <>: <$link><>
>>>   
>>>
>>>
>>> 
>>>
>>> <> uses the $(...)$ syntax to substitute the current 
>>> field name into the transclusion syntax.  Thus, if this-field has a value 
>>> of "foobar", <> will return "{{!!foobar}}" which is then 
>>> parsed by the <$vars> widget to retrieve the field value and assign it to 
>>> the "this-value" variable
>>>
>>> Note: instead of using the <$set name="foo" value="bar"> syntax, I 
>>> prefer to use the <$vars foo="bar"> syntax they both will have the same 
>>> result, but <$vars> seems easier to read.
>>>
>>> enjoy,
>>> -e
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2d68afad-e90b-4dca-82ec-e574f42da270%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Link to a tiddler named in a field value

2017-07-14 Thread 'Mark S.' via TiddlyWiki
I don't have time to look at this right now, but the first thing I would 
try is going back to Eric's example and changing <$vars> to 

<$wikify name=this-value text=<>> ... 

Good luck!
Mark

On Friday, July 14, 2017 at 8:21:57 AM UTC-7, stevesuny wrote:
>
> Eric, this *almost* works, thanks! So close...I can see it working :)
>
> The challenge remains building a link to a tiddler represented by a 
> transcluded value of a filtered tiddler.
>
>
>
> You had
>
> <$list filter="[tag[schedule-elements]eachsort]">
>   <$vars this-value=<>>
>   <>: <$link><>
>
> which created a link to the filtered tiddler not the value tiddler.
>
>
> I changed it to
>
> <$list filter="[tag[schedule-elements]eachsort]">
> <$vars this-value=<>>
> <>: <>: Link to <$link 
> to=<>><>
>
> which doesn't quite work: if <> is "instructor" my link goes 
> to {{!!instructor}}
>
> So I must be only one level off on the transclusion...so close!
>
> //steve.
>
>
>
> On Thursday, July 13, 2017 at 5:17:07 PM UTC-4, Eric Shulman wrote:
>>
>> On Thursday, July 13, 2017 at 1:19:14 PM UTC-7, stevesuny wrote:
>>>
>>> I thought that, too.
>>>
>>> The problem: <$set name="this-value" value=<>> names to 
>>> the current tiddler, not the value of the field that I am interested in.
>>>
>>> How do I set this-value to a field value, whose name is itself a 
>>> variable?
>>>
>>
>> This situation is referred to as "double indirection" (i.e. using one 
>> variable to hold the name of another variable that contains the desired 
>> value)
>>
>> Try using a little "helper" function to construct the desired reference...
>>
>> Something like this: (untested)
>> \define getFieldValue() {{!!$(this-field)$}}
>>
>> <$list filter="[all[current]tag[element-field]]"
>><$vars this-field=<>>
>><$list filter=
>> "[tag[schedule-elements]eachsort]">
>>   <$vars this-value=<>>
>>   <>: <$link><>
>>   
>>
>>
>> 
>>
>> <> uses the $(...)$ syntax to substitute the current field 
>> name into the transclusion syntax.  Thus, if this-field has a value of 
>> "foobar", <> will return "{{!!foobar}}" which is then parsed 
>> by the <$vars> widget to retrieve the field value and assign it to the 
>> "this-value" variable
>>
>> Note: instead of using the <$set name="foo" value="bar"> syntax, I prefer 
>> to use the <$vars foo="bar"> syntax they both will have the same 
>> result, but <$vars> seems easier to read.
>>
>> enjoy,
>> -e
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/939aa882-93e1-4c49-84ef-5385aa747c72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Lightboxes in TW?

2017-07-14 Thread PMario
Hi TT,

Should it be a lightbox only, or should there be the standard "writer" 
interface too. ... I personally don't like popups and modals. IMO they 
waste screen real estate. Images, videos, .. should be full-screen with 
minimal UI, even in a TW. 

I'm thinking about stuff like these: 

 - https://tympanus.net/Tutorials/CSSMaskTransition/  ... latest browsers 
only ... I love demo2 and 3
 - https://tympanus.net/Tutorials/TiltedContentSlideshow/
 - https://tympanus.net/Development/ScatteredPolaroidsGallery/

The problem with those examples is. You still need perfect images, to make 
the effects shine ;) and for TW we'd need to make everything dynamic. So 
basically implement it from scratch. ... But I like the animations for 
about 20 minutes ;)

So if you want to work with it, I'd use much less bells and whistles. 

have fun!
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/450a3d04-70ee-4a92-a801-0053e6192d1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Investigation: Lightboxes in TW?

2017-07-14 Thread @TiddlyTweeter
Ciao PMario

Tx. The three demos at  https://tympanus.net/Tutorials/CSSMaskTransition/ 

  
are superb, even with "You're seeing a fallback because your browser does 
not support CSS Masks." That design won't work, unfortunately for my needs, 
because it fills the screen by clipping. 

The images I want to show should not be clipped. I need a solution that 
optimally fits the image to the viewport.

Josiah

On Friday, 14 July 2017 17:47:36 UTC+2, PMario wrote:
>
> Hi TT,
>
> Should it be a lightbox only, or should there be the standard "writer" 
> interface too. ... I personally don't like popups and modals. IMO they 
> waste screen real estate. Images, videos, .. should be full-screen with 
> minimal UI, even in a TW. 
>
> I'm thinking about stuff like these: 
>
>  - https://tympanus.net/Tutorials/CSSMaskTransition/  ... latest browsers 
> only ... I love demo2 and 3
>  - https://tympanus.net/Tutorials/TiltedContentSlideshow/
>  - https://tympanus.net/Development/ScatteredPolaroidsGallery/
>
> The problem with those examples is. You still need perfect images, to make 
> the effects shine ;) and for TW we'd need to make everything dynamic. So 
> basically implement it from scratch. ... But I like the animations for 
> about 20 minutes ;)
>
> So if you want to work with it, I'd use much less bells and whistles. 
>
> have fun!
> 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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/375790bf-8e3a-451b-a13f-5f07edb825a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Link to a tiddler named in a field value

2017-07-14 Thread stevesuny
Mark, thanks for the suggestions.

Here's what I'm trying to do (I'll try to explain it in words)(turns out, 
it is rather difficult).

I am using xlsx to import spreadsheet data. Each row becomes a tiddler. 
Each column becomes a field in the tiddlers created by the rows; each cell 
becomes the field value in the tiddler associated with the row.

In my example, I have a spreadsheet 

 in 
which the rows represent a scheduled class at my University for the Fall 
semester. The columns, among others, include the name of the *instructor* and 
the *subject *of the course. The rows are called "elements" in my code.

I have identified the fields (including instructor and subject) and given 
them a common tag (element field).

I am writing a generic template that will run for any tiddler tagged 
element field.

The template is designed to filter all elements, identify each value 
associated with the element field, and create links to tiddlers whose names 
are the values of the identified element field. So, for example, if my 
elements included courses whose subjects were Accounting and English, the 
template for tiddler "Subject" would generate a link to tiddler 
"Accounting" and to tiddler "English"

Once there, another template will generate contents for tiddlers 
"Accounting" and "English" 

In this way, all fields of a tiddler become navigable, and we can view the 
dataspace from the perspective of any of the element fields.

*My challenge remains: how to build  <$link to=<>> <>  for <> where  <> is the value of 
field <> in <*

Does that explain it better?

//steve.



On Thursday, July 13, 2017 at 5:19:19 PM UTC-4, Mark S. wrote:
>
> It would help in my thinking if you gave an example from your data set of 
> a field name and expected field value that you want.
>
> Good luck,
> Mark
>
> On Thursday, July 13, 2017 at 1:19:14 PM UTC-7, stevesuny wrote:
>>
>> I thought that, too.
>>
>> The problem: <$set name="this-value" value=<>> names to 
>> the current tiddler, not the value of the field that I am interested in.
>>
>> How do I set this-value to a field value, whose name is itself a variable?
>>
>>
>>
>>
>> On Thursday, July 13, 2017 at 4:00:19 PM UTC-4, Mark S. wrote:
>>>
>>> I think this does what you want (it's a little unclear what the goal 
>>> is). Note that there is no field with the name this-field, and thus 
>>> {{!!this-field}} doesn't exist.
>>>
>>> <$list filter="[all[current]tag[element-field]]">
>>> <$set name="this-field" value=<>>
>>> <$list filter="[tag[schedule-elements]eachsort
>>> ]">
>>> <$set name="this-value" value=<>>
>>> <>: <$link><>
>>> 
>>> 
>>> 
>>> 
>>>
>>>
>>>
>>> On Thursday, July 13, 2017 at 12:23:15 PM UTC-7, stevesuny wrote:

 Hi Folks,

 I'm parsing a spreadsheet and trying to make every column name 
 navigable. As an example, I'm using a class schedule at SUNY Poly


 https://drive.google.com/file/d/0B6pMEe8dCtrQdHhMTUNfVy04Zzg/view?usp=sharing

 I've used xlsx import to get the rows into a wiki

 http://sunypoly-schedule-explorer.tiddlyspot.com/

 My template does this:

 <$list filter="[is[current]tag[element-field]]">
 <$set name="this-field" value=<>>
 <$list filter="[tag[schedule-elements]eachsort
 ]">
 <$set name="this-value" value={{!!this-field}}>
 <>: <$view field=<>/>


 My challenges:

 (1) setting the value for "this-value" properly
 (2) building a link to the tiddler names by "this-value"

 Thanks!

 //steve.




-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3a6f6204-8602-417c-a87d-3663d297bebc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Lightweight diagrams (e.g. concept maps)?

2017-07-14 Thread @TiddlyTweeter
For more complex conceptual thinking you should look at TiddlyMap 
which is very rich, stable & proven, & wholly 
dedicated to concept mapping.

On Saturday, 15 July 2017 00:41:22 UTC+2, Sean Boyle wrote:
>
> I have seen the plugins which allow tiddlers to represented graphically.  
> I would like to see something lightweight which would simply allow the 
> drawing of simple diagrams within a tiddler, something like the railroad 
> diagram plugin, possibly using graphiviz syntax.  Has anyone done this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fb089483-29a9-4c05-aa05-ae388196b07e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A TiddlyWikified Lens on Spreadsheets

2017-07-14 Thread @TiddlyTweeter
Ciao Steve 

Its really impressive in its scope and organisation.

Its a mess as a demo. THERE IS NO REAL CONTENT in anything I could find. 

*What's the point other than proving you can create a skeleton? *

IMO you need content FLESH too to make it real. To show what its all FOR.

Given the vast numbers of things it covers I really don't understand why 
they all lack details. There is NO WAY you could manually enter the data 
needed to fill them unless you got a full-time typist. 

Surely the point would be to POPULATE the end Tiddlers with substantive 
information on import? I do not understand why you are flagging this up 
before that was achieved.

I'm a bit of concretist. x

Best wishes
Josiah

On Friday, 14 July 2017 23:48:30 UTC+2, stevesuny wrote:
>
> Folks,
>
>
> Thanks to some timely help (thanks Mark & Eric), I've developed an 
> interpretive lens onto a spreadsheet.
>
>
> See http://sunypoly-schedule-explorer.tiddlyspot.com/ for an example.
>
>
>
>- Demonstrates import of spreadsheet data into navigable space. One 
>row per case. Each column a field in each case (as defined in xlxs plugin 
>import manager). Every column/field is can be clicked on to create lists 
> of 
>tiddlers matching field value.
>- Start in Classes 
> , and 
>select one. Then select one of the class fields (such as instructor or 
>days, etc.
>- A tiddler is created (see schedule elements template 
>
> ,
>  
>and then rendered using template field value template 
>
>  
> to 
>display matching tiddlers.
>- No other code needed.
>- To do
>   - clean up names of things like "schedule-elements" and 
>   "element-fields" etc.
>   - consider writing tiddlers to temp files
>
> Comments/ suggestions/ improvements welcome.
>
>
>
> //steve.
>
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0c81a25e-a0c5-4257-8844-eca61218c0f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] TW5 button popup to set a field/index?

2017-07-14 Thread mystikite
I am attempting to create a button that, when clicked, pops up a <$list> of 
tiddlers w/ a specified set of tags.
on clicking a list item, it sets a field/index in the specified tiddler.

This is a for a spell sheet template for a dnd campaign notebook i am 
making.

I was attemping to adapt from Tobias' popup macros, but i am butchering it 
terribly.

Can someone clue me in on what i'm doing wrong?

\define choose_spell(field:nofield tags:"")
<$set name="state" value=<>>
<$button popup=<> class="pop-btn" 
selectedClass="pop-btn-selected">$field$<$reveal type="popup" 
state=<> class="tc-popup pop-popup" set="$(title)$">

<$linkcatcher  setTo="$field$">

<$list filter="[tag[Spell]$(tags)$]">
<$link to=<> >{{##title}}






\end



  {{##myfield}} <>



-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2990256f-82d7-472f-b564-06e1e3d249df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Filter data tiddlers by value of an index

2017-07-14 Thread David Allen
Here's what I'm trying to do:

I have data tiddlers with the following information:

 - Name
 - Rank
 - Position
 - Begin Date
 - End Date

I'm trying to filter a set of such data tiddlers based on the value of a 
particular index.  Problem is, I'm not sure how to do this in a filter 
expression.

Does anyone know how to do this?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3d819f54-e3bf-4c93-8606-a85c19c2e3b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Lightweight diagrams (e.g. concept maps)?

2017-07-14 Thread @TiddlyTweeter
Ciao Sean

Drawing what? What kind of diagrams do you need?

There are several logical diagramming plugins. Maybe not so easy to find 
all of them if you unfamiliar. I probably can find them if you need.

I believe there is a well featured Mermaid plugin that does complex flow 
diagrams & Gannt charts. There are also several simple branching hierarchy 
flow chart plugins.

Best wishes
Josiah

On Saturday, 15 July 2017 00:41:22 UTC+2, Sean Boyle wrote:
>
> I have seen the plugins which allow tiddlers to represented graphically.  
> I would like to see something lightweight which would simply allow the 
> drawing of simple diagrams within a tiddler, something like the railroad 
> diagram plugin, possibly using graphiviz syntax.  Has anyone done this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cb955dde-cbef-4dae-8e42-e6bec503fdd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW5 button popup to set a field/index?

2017-07-14 Thread 'Mark S.' via TiddlyWiki
Maybe instead of whatever the linkcatcher is suppose to do (sure would be 
nice if someone completed it's documentation with an example or two), maybe 
generate a list of pop-up buttons. Like:

\define choose_spell(field:nofield tags:"")
<$button popup="$:/listpop">Pop up list

<$reveal type="popup" state="$:/listpop">
<$list filter="[tag[$tags$]]">

<$button set="!!$field$" setTo="YES"><$view field="title"/>





\end

<>


In your example, I couldn't figure out what you wanted set to what. So 
these buttons just put a text value "YES" in the "stuff" field of the 
tiddler that is clicked on. If you want the generated buttons to look like 
links, I think you just add some classes to them.

In your example you were using {{##myfield}} at the bottom which I didn't 
understand because ## is text reference to a data dictionary entry. You 
can't be referring to a data dictionary (AFAIK) that is the same tiddler 
that you are currently in. So ... are you trying to pull from a data 
dictionary somewhere?

Good luck!
Mark



On Friday, July 14, 2017 at 7:10:19 PM UTC-7, myst...@gmail.com wrote:
>
> I am attempting to create a button that, when clicked, pops up a <$list> 
> of tiddlers w/ a specified set of tags.
> on clicking a list item, it sets a field/index in the specified tiddler.
>
> This is a for a spell sheet template for a dnd campaign notebook i am 
> making.
>
> I was attemping to adapt from Tobias' popup macros, but i am butchering it 
> terribly.
>
> Can someone clue me in on what i'm doing wrong?
>
> \define choose_spell(field:nofield tags:"")
> <$set name="state" value=<>>
> <$button popup=<> class="pop-btn" 
> selectedClass="pop-btn-selected">$field$<$reveal type="popup" 
> state=<> class="tc-popup pop-popup" set="$(title)$">
> 
> <$linkcatcher  setTo="$field$">
> 
> <$list filter="[tag[Spell]$(tags)$]">
> <$link to=<> >{{##title}}
> 
> 
> 
> 
> 
> 
> \end
>
> 
>
>   {{##myfield}} <>
>
> 
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/49aea43e-3a68-4d85-9c81-26eb66d196c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A TiddlyWikified Lens on Spreadsheets

2017-07-14 Thread TonyM
stevesunny

Thanks for sharing that, I am really impressed. I will look into your 
method in more detail as I think this method may be key a number of ways to 
handle data in tiddly wiki.  I see the data is in the relationships between 
a large number of "objects".

Of course over the internet it is quite slow and that's in my Firefox with 
dom.max_script_run_time in about:config up from 10 as high as 80 Now, yet I 
still get timeouts.

Perhaps you could introduce a feature to display the instances grouped by N 
prefix characters such as 
Rooms by 1st letter/number
Classes by first 2-3 letters
Instructor by first letter

If handled correctly they will not need to be rendered until you open a sub 
group and thus operate more quickly and the amount of data would be less 
intimidating.

A practical real world question arises to me and that is how will it 
handled subsequent imports from the same source?, it would be fantastic if 
it could update existing items without removing additional notes applied to 
the different objects (I imagine this is already so), and if it could 
identify deletions and flag them it would be very cool, because you would 
be able to build and maintain a database from multiple "as at" time reports.

Great Work
Thanks



On Saturday, 15 July 2017 07:48:30 UTC+10, stevesuny wrote:
>
> Folks,
>
>
> Thanks to some timely help (thanks Mark & Eric), I've developed an 
> interpretive lens onto a spreadsheet.
>
>
> See http://sunypoly-schedule-explorer.tiddlyspot.com/ for an example.
>
>
>
>- Demonstrates import of spreadsheet data into navigable space. One 
>row per case. Each column a field in each case (as defined in xlxs plugin 
>import manager). Every column/field is can be clicked on to create lists 
> of 
>tiddlers matching field value.
>- Start in Classes 
> , and 
>select one. Then select one of the class fields (such as instructor or 
>days, etc.
>- A tiddler is created (see schedule elements template 
>
> ,
>  
>and then rendered using template field value template 
>
>  
> to 
>display matching tiddlers.
>- No other code needed.
>- To do
>   - clean up names of things like "schedule-elements" and 
>   "element-fields" etc.
>   - consider writing tiddlers to temp files
>
> Comments/ suggestions/ improvements welcome.
>
>
>
> //steve.
>
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/27643cca-413b-4409-b666-9a6ae9aaef3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Investigation: Lightboxes in TW?

2017-07-14 Thread @TiddlyTweeter
This is an initial query about lightboxes in TW.

I am trying to find demos of "lightboxes" (foregrounded image viewers) in 
TW that have been made. I have seen one by Tobias Beer that is in the right 
kind of direction, using modals, but its under-featured for what I need.

I have a project I could use them for.  

But before I get to the details I think I need to better know what has been 
done already so I'm not creating unneeded work, or asking redundant 
questions.

So: Do any of you know what has been done and where to find it?

Best wishes
Josiah

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/17f0c00c-6463-40c6-bc1d-b684b5b1e75d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Investigation: Random -- But Within A Range

2017-07-14 Thread @TiddlyTweeter
Ciao tutti

This is an early query to see if anyone can confirm whether what I will 
need will be possible or not.

If it sounds like it is I can lay out the use case in mode detail.

By way of background, I have a project with multiple (external) images. 
When a visitor comes to the TW online I want them to see ONE randomly 
selected image presented via a modal. 

Important to understand is that *this is NOT a randomly selected Tiddler* 
(which a gizmo by Tobias Beer does well already). 

Rather, the modal initiation should dynamically create a path to a randomly 
selected external graphic file that the modal displays. The range for the 
image is currently "0001" to "4000", with full-file names like: 
"fw3045.jpg".   

(My thinking behind this is to NOT burden the TW with 4,000 tiddlers it 
doesn't need to be a lightweight Lightbox). 

I hope this is clear enough.

Please ask me to clarify if it is not.

Many thanks
Josiah

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e5de5873-a0c2-4f20-b7c5-d041075a6fc5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] parse and style a tiddler content

2017-07-14 Thread TonyM
Paolo,

I may be off track but if you are trying to deal with what are effectively 
data tiddlers with content in the form
word: definition

Then Tobias mentions how to Iterate DataTiddler Indexes
https://tobibeer.github.io/tb5/#Iterate%20DataTiddler%20Indexes

That may contain some useful code

Regards
Tony


On Wednesday, 12 July 2017 00:00:33 UTC+10, paolo b wrote:
>
> yes Mark, it did help - thanks.
>
> I also defined a tooltip stylesheet so that I can style it as I like with:
>
>
> <$wikify name="answer"  text=<> >
>> class="tooltip">  title="">//<>//
>
>
> As a side effect, however, my original tiddler (now converted into data 
> type) has lost its previous formatting. 
>
> Is there a way to avoid this, e.g. with a smarter transclusion, so that I 
> can keep the original format??
>
> Paolo
>
>
> On Saturday, July 8, 2017 at 9:11:55 PM UTC+2, Mark S. wrote:
>>
>> I didn't use any stylesheet stuff with this, though I imagine there are 
>> ways to approach it that would. I created the "tip" with *span 
>> title="stuff"*
>>
>> If you create a data tiddler (be sure to mark it's type at the bottom of 
>> the tiddler) with this data and call it, for example, Quiz1 :
>>
>> tiddler: the smallest semantic unit
>> field:  a semantic unit smaller than a tiddler
>>
>> And then set up these macros (perhaps globally):
>>
>> \define getanswer() {{$(tiddler)$##$(question)$}}
>> \define makequiz(quiz) 
>> <$vars tiddler="$quiz$">
>> <$list filter="[[$quiz$]] +[indexes[]]" variable="question">
>>
>> <$wikify name="answer"  text=<> >
>> ''Term'': >>//<>//
>>
>> 
>> 
>> 
>> \end
>>
>>
>>
>> Then you can create a list of terms based on Quiz1 by invoking like this:
>>
>>
>> <>
>>
>> When you hover over a term, it's definition will pop up.
>>
>> HTH
>> Mark
>>
>>
>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c687076d-9900-49a8-9883-509f5cb0fceb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.