[tw5] Re: 2 checkboxes as OR choice, like radio buttons

2018-06-24 Thread TonyM
Dave,

You can have very sophisticated logic behind buttons, using action widgets 
you can have any combination of fields set for each button press including 
to unset/reset another field or value that drive another button.

If you can state your required logic a little more clearly, we can give you 
some options. Personally I cant quite workout the convoluted solution you 
are having trouble with. Can you use pseudo-code perhaps.?

Regards
Tony




On Monday, June 25, 2018 at 3:05:08 PM UTC+10, Dave wrote:
>
> Thank you both for that info.  The problem is that i need to be able to 
> check one or the other, but also have the option to make neither checked 
> (after having first checked it), so its not exactly like a radio botton.   
>
> My main problem seems to be using <> somehow in the action 
> part of the checkbox macro ( unless theres a simpler way to get the 
> “half-radio-button” function i described).

-- 
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/1d4fcdd2-b016-4833-8e0b-a7cfa3904305%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: 2 checkboxes as OR choice, like radio buttons

2018-06-24 Thread Dave
Thank you both for that info.  The problem is that i need to be able to check 
one or the other, but also have the option to make neither checked (after 
having first checked it), so its not exactly like a radio botton.  

My main problem seems to be using <> somehow in the action part 
of the checkbox macro ( unless theres a simpler way to get the 
“half-radio-button” function i described).

-- 
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/75f5dfa9-01f3-4f29-9bd8-fa805688e1c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: 2 checkboxes as OR choice, like radio buttons

2018-06-24 Thread TonyM
Dave,

Using a field as the state field, as opposed to the tags allows you to do 
this for a two value check

<$checkbox field="selected" checked="a" unchecked ="b"> A?
<$checkbox field="selected" checked="b" unchecked ="a"> B?

You do not need two values 0 and 1 and 0 and 1 if they are intimately 
linked  such as "1 and 0" OR "0 and 1"

Or 

<$checkbox field="selected" checked="left" unchecked ="right"> 
Left?
<$checkbox field="selected" checked="right" unchecked ="left"> 
Right?

this kind of logical selection is is often referred to as "radio buttons".

So see this https://tiddlywiki.com/#RadioWidget

Also with left and right being the choice you could use the range widget, 
in this case with a neither left or 
right https://tiddlywiki.com/#RangeWidget

<$range field="lorr" min="-1" max="1" default="0" increment="1"/> {{!!lorr}}

There are many ways to do this.

Regards
Tony







On Monday, June 25, 2018 at 1:55:43 PM UTC+10, Dave wrote:
>
> I'm trying to make a macro that presents a pair of checkboxes like this: 
> R[[_]] [[_]]L.
>
> I can get the checkboxes to assign 1 for checked and 0 for unchecked, but 
> I'd like to be able to cause the Right checkbox to automatically uncheck 
> when the Left one checks and vice versa.
>
> Here's what I have that's not working:
>
> \define nullr(testname)
> <$action-setfield $tiddler=<> $field="$testname$.right" 
> $value="0" />
> \end
> \define nulll(testname)
> <$action-setfield $tiddler=<> $field="$testname$.left" 
> $value="0" />
> \end
>
>
> \define rorlcheck(testname)
> R<$checkbox tiddler="""$(currentTiddler)$""" field="$testname$.right" 
> checked="1" unchecked="0" actions="<>" >L<$checkbox 
> tiddler="""$(currentTiddler)$""" field="$testname$.left"  checked="1" 
> unchecked="0" actions="<>">
> \end
>
> <>
>
>
> Can anyone tell me how to make this work?
>
> Thank you,
> Dave
>
>
> P.S. I've also tried it with """$(currentTiddler)$""" in the null macros
>

-- 
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/7cd34ce9-ad0a-40a8-8c5a-6fbd260eddcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: 2 checkboxes as OR choice, like radio buttons

2018-06-24 Thread 'Mark S.' via TiddlyWiki
Can't you just have the two boxes share the same field, but with opposite 
inputs. e.g.

L <$checkbox field=status checked="L" unchecked="R"/>
R <$checkbox field=status checked="R" unchecked="L"/>

Seems to work (after the first click to set up the field).

-- Mark

On Sunday, June 24, 2018 at 8:55:43 PM UTC-7, Dave wrote:
>
> I'm trying to make a macro that presents a pair of checkboxes like this: 
> R[[_]] [[_]]L.
>
> I can get the checkboxes to assign 1 for checked and 0 for unchecked, but 
> I'd like to be able to cause the Right checkbox to automatically uncheck 
> when the Left one checks and vice versa.
>
> Here's what I have that's not working:
>
> \define nullr(testname)
> <$action-setfield $tiddler=<> $field="$testname$.right" 
> $value="0" />
> \end
> \define nulll(testname)
> <$action-setfield $tiddler=<> $field="$testname$.left" 
> $value="0" />
> \end
>
>
> \define rorlcheck(testname)
> R<$checkbox tiddler="""$(currentTiddler)$""" field="$testname$.right" 
> checked="1" unchecked="0" actions="<>" >L<$checkbox 
> tiddler="""$(currentTiddler)$""" field="$testname$.left"  checked="1" 
> unchecked="0" actions="<>">
> \end
>
> <>
>
>
> Can anyone tell me how to make this work?
>
> Thank you,
> Dave
>
>
> P.S. I've also tried it with """$(currentTiddler)$""" in the null macros
>

-- 
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/6a23052c-6be6-465e-ac6a-2b7b0f123a11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] 2 checkboxes as OR choice, like radio buttons

2018-06-24 Thread Dave
I'm trying to make a macro that presents a pair of checkboxes like this: 
R[[_]] [[_]]L.

I can get the checkboxes to assign 1 for checked and 0 for unchecked, but 
I'd like to be able to cause the Right checkbox to automatically uncheck 
when the Left one checks and vice versa.

Here's what I have that's not working:

\define nullr(testname)
<$action-setfield $tiddler=<> $field="$testname$.right" 
$value="0" />
\end
\define nulll(testname)
<$action-setfield $tiddler=<> $field="$testname$.left" 
$value="0" />
\end


\define rorlcheck(testname)
R<$checkbox tiddler="""$(currentTiddler)$""" field="$testname$.right" 
checked="1" unchecked="0" actions="<>" >L<$checkbox 
tiddler="""$(currentTiddler)$""" field="$testname$.left"  checked="1" 
unchecked="0" actions="<>">
\end

<>


Can anyone tell me how to make this work?

Thank you,
Dave


P.S. I've also tried it with """$(currentTiddler)$""" in the null macros

-- 
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/78dfc32e-f0cd-4152-a5b1-1040c3045d2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to debug my unload-able Wiki

2018-06-24 Thread TonyM

>
> Post script:
>

On refresh a stray pre is appearing on the Browser address 
bar TiddlyWiki5.html#%2Fpre> and in my side bar /pre> 

 
 

-- 
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/c38d6b19-7416-4711-bd44-60748fe45011%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] How to debug my unload-able Wiki

2018-06-24 Thread TonyM
Folks,

My Key TiddlyWiki for researching TiddlyWiki is failing to load and I would 
appreciate some suggestions on how to identify the problem.

On opening the wiki I get the errors
Internal JavaScript Error
Well, this is embarrassing. It is recommended that you restart TiddlyWiki 
by refreshing your browser
*too much recursion*

*I can no longer open tiddlers or sidebar tabs, and can see the odd popup 
menu I have, but no more.*

I suspect it is something I did recently, but I am not sure what, because 
it occurred late at night and I decided to leave it lest I do more damage.

I have tried opening in safe mode, no luck,

I have removed an Item in default tiddlers (using a text editor), removed a 
recent rawmarkup tag to no effect

*Moving forward?*

Can anyone share some tips for debugging this. I would love to see where 
this recursion is Occurring so I can disable it. Firefox and chrome are 
available with Firefox my favourite.

Thanks in advance
Tony


-- 
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/3273b694-9a04-421e-a3a9-7c24c48e048d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: List sorting hierarchy syntax help

2018-06-24 Thread TonyM
Scott,

You can see in marks example that lists within lists are quite simple. 
indentations are helpful to make it obviouse

Example 3 levels of nesting
<$list
   <$list
  <$list

  
   


In this we see one list wrapping two lists, in this case one "inner list" 
list may respond to "has a field or tag value" and the other "NOT has a 
field or tag value"
<$list
   <$list filter="[is[current]has[fieldname]]"

   
   <$list filter="[is[current]*!*has[fieldname]]"

   


So you can see there are possibly infinite variations of nesting lists. All 
you need to do is keep track of the open and close of each list.

Of course the content of any lists filter can be very sophisticated so the 
selective logic is often contained in the filter. 

A couple of other key features of using lists include


   - By default the filter will generate a list of (tiddler) titles, and 
   the content inside the list widget will step through each tiddler in that 
   set, basically changing the "current tiddler value for each item.
   - However if on a list widget you specify <$list filter="filter" 
   "variable="myvar"> inside the list widget the current tiddler title changes 
   in <>, and the current tiddler remains the same.
   - You can write list filter that have no result, in which case you can 
   use EmptyMessage to return a value in this no result case.

Enjoy
Tony


On Monday, June 25, 2018 at 5:55:25 AM UTC+10, Scott Kingery wrote:
>
> Thanks Mark I'll see what I can do with this.
>
> On Sun, Jun 24, 2018 at 9:03 AM 'Mark S.' via TiddlyWiki <
> tiddl...@googlegroups.com > wrote:
>
>> This is a start. You'll need to weave back in the classes you want. I've 
>> changed some filter names.
>>
>> \define locationfilter()
>> [blurb[$(blurb)$]location[$(location)$]sort[title]]
>> \end
>> \define blurbfilter()
>> [location[$(location)$]each[blurb]get[blurb]sort[]]
>> \end
>>
>>
>> <$set name="location" value={{!!title}}>
>>
>> <$list filter=<> variable="blurb">
>>
>> 
>> <> 
>> 
>>
>> 
>> <$list filter=<>>
>>
>> <$transclude field="subtopic"/>
>>
>>
>> <$link to={{!!title}}><$view field="title"/>
>>
>> <$transclude field="location-help"/>
>> 
>> 
>>
>> 
>> 
>>
>> General advice -- give fields, filters and other objects meaningful 
>> names. This will make things a lot easier as your application gets bigger. 
>> In this case I've changed the variable passed from "MyTag" to "location" 
>> and given the filters corresponding names. If it was me, I would also 
>> change "blurb" to "vendortype" or something that designates what it does.
>>
>> HTH!
>>
>> -- Mark 
>>
>> On Saturday, June 23, 2018 at 9:58:00 PM UTC-7, Scott Kingery wrote:
>>>
>>> Here's what I want to do...
>>>
>>> I have a tiddlers that represent restaurants and stores. So those 
>>> tiddlers will be like:
>>>
>>> Title: name of restaurant or store
>>> Location is a field that indicates where the restaurant is located
>>> Blurb is a field that is some info about the place
>>>
>>> There is a subtopic field that is either Restaurant or Store.
>>>
>>> My goal is to have another tiddler that had a title of a location and 
>>> lists all the restaurants or stores in that location.
>>>
>>> I want it to group the restaurants and stores together. Like this:
>>>
>>> Restaurant
>>>Joes Bar
>>>Mikes Burgers
>>> Shops
>>>Toys n More
>>>Wizard of Books
>>>
>>>
>>>
>>> I'm almost there. I know I need a filter with in a filter but I cant get 
>>> that syntax right.
>>>
>>> Here is what I have:
>>>
>>> \define MyFilter()
>>> [location[$(MyTag)$]sort[title]]
>>> \end
>>>
>>>
>>> <$set name="MyTag" value={{!!title}}>
>>> <$list filter=<>>
>>> 
>>> <$transclude field="subtopic"/>
>>> 
>>> 
>>> <$link to={{!!title}}><$view field="title"/>
>>> 
>>> <$transclude field="blurb"/>
>>> 
>>> <$transclude field="location-help"/>
>>> 
>>>
>>>
>>> And that gives me more like:
>>>
>>> Restaurant
>>>Joes Bar
>>> Restaurant
>>>Mikes Burgers
>>> Shops
>>>Toy n More
>>> Shops
>>>Wizard of Books
>>>
>>>
>>>
>>> -- 
>> 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/gEWSkUL-l1M/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddlywiki+...@googlegroups.com .
>> To post to this group, send email to tiddl...@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/19a58ff3-ee44-4a48-8ee3-3db7c7c70f32%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 

[tw5] Re: Tiddler as Field Value of Another Tiddler

2018-06-24 Thread TonyM
T J,

In your question you use an alternative jargon to describe tiddlywiki, then 
say "I've found that one dictionary can be set as the value of a 
key/attribute/field on another dictionary." Could you please spell this out 
a but more, and as mark suggests explain your objectives better.

As a platform I do not believe there is any database model that can not be 
represented in tiddlywiki, although some such as one that 
demands"referential integrity" as Mark mentions would be a little 
convoluted.

Could you explain this further?, but first let me try and answer the 
question.

Any Field can be use to store lists of tiddlers, just as the tags field 
already is doing, and there is a convention that uses the list field of a 
given tiddler  to list the tiddlers tagged with that tiddler, allowing 
drag-able reordering, and the listops operators etc.. are there to 
manipulate such lists.

"Set[ing] one tiddler or a Title List  of 
tiddlers as the value of a custom field on another tiddler." Is possible 
using the above mechanism, and set-field messages, list ops widget and more.

However I believe if we could see your objectives we may even be able to 
give more detailed or alternative options.

Regrads
Tony


On Monday, June 25, 2018 at 6:38:54 AM UTC+10, TJ Walker wrote:
>
> TiddlerFields are name:value pairs that make up a tiddler 
>> 
>>
>
> So, tiddlers're more or less dictionaries/associative arrays/maps as db 
> records, right? Within many contexts that offer such constructs, I've found 
> that one dictionary can be set as the value of a key/attribute/field on 
> another dictionary. I was hoping to be able to do this in TiddlyWiki; 
> though, in poring over the docs, I wasn't able to determine how to set one 
> tiddler or a Title List  of 
> tiddlers as the value of a custom field on another tiddler. Is this 
> possible?
>
> ...
>
> ...
>
> ...
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To 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/044d6067-0d34-455f-8dab-3a240974020d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Request for help with new filter operator and new tutorial.

2018-06-24 Thread TonyM
D\iego,

You may get help here but the TiddlyWiki dev group is more suited to this 
kind of request

https://groups.google.com/forum/?hl=en#!forum/tiddlywikidev

Regards
Tony

On Monday, June 25, 2018 at 8:28:34 AM UTC+10, Diego Mesa wrote:
>
> I would like to make a new filter operator: fuzzysearch which makes use of 
> this library:
>
> http://fusejs.io/
>
> in the hopes of submitting something to:
>
> https://github.com/Jermolene/TiddlyWiki5/issues/3233
>
> The problem is, I'm not at all sure how to do it! I know I can make a new 
> tiddler with:
>
> https://cdnjs.cloudflare.com/ajax/libs/fuse.js/3.0.4/fuse.min.js
>
> but thats about it. What I would like to do is ask the community for help! 
> Not just to make the filter operator, but to make it a 
> *full-fledged tutorial!* We can then add it to the tiddlywiki.com/dev 
> site! 
>
> What do you all think? Kill two birds with one stone! 
>
>
>
>

-- 
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/65ed3f19-f7c5-4341-b10c-7a04bd673d81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Google Fonts - again?

2018-06-24 Thread TonyM
Shay,

I believe in documentation, and self documentation myself. I tend to use 
the description field in a given tiddler to do this as it has less 
likelyhood of interfering with the tiddler itself.

Regards
Tony

On Monday, June 25, 2018 at 4:02:26 AM UTC+10, Shay Shaked wrote:
>
> OK so after testing and re-testing, I think I understand what the issue 
> is. 
>
> The good news is that *$:/tags/RawMarkup *works. 
>
> Just create a tiddler, put the code from Google Fonts in it, for example:
>  https://fonts.googleapis.com/css?family=Markazi+Text; rel=
> "stylesheet">
> In the tiddler tagged with *$:/tags/RawMarkup*, save it, save your wiki, 
> reload wiki. 
>
> Then you have to specify you want to USE the font. You can do this in CSS 
> in the wiki, or the newer version has this in the wiki settings. Just 
> specify the font face, as you see it in Google fonts. This should work. 
>
> The thing I did, wrongly, is to try to play around with the tiddler I 
> created *$:/tags/RawMarkup*. I wanted to include a comment to tell myself 
> what I did. As soon as I did that, it broke stuff. So... ok I guess I can't 
> explain in that tiddler, I'll explain in a tiddler leading to it. A bit 
> messy, but no big deal. $ tiddlers are not meant to be self-explanatory 
> anyway, they are code. 
>
> On Sunday, June 24, 2018 at 7:51:24 AM UTC-4, @TiddlyTweeter wrote:
>>
>> It might well be. It sounds likely its a bug.
>>
>> IF something that worked with the $*:/tags/RawMarkup* tag in versions 
>> prior to 5.1.17 stopped working then most likely it is. The best way to be 
>> sure is to clone the same wiki content to 5.1.17 & 5.1.16 and see. If it 
>> doesn't work in 5.1.17 then maybe open an issue at: 
>> https://github.com/Jermolene/TiddlyWiki5/issues
>>
>> UPDATE: Or comment here: https://groups.google.com/d/ 
>> 
>> msg/tiddlywiki/bSwzQSrExMg/ 
>> 
>> https://groups.google.com/d/msg/tiddlywiki/bSwzQSrExMg/OcKiFvhyBQAJ
>>
>> JD wrote:
>>>
>>> yeah, this definitely was how I did it in previous versions, using 
>>> *$:/tags/RawMarkup*
>>> Is this maybe a bug in 5.1.17 ?
>>>
>>

-- 
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/07f11e75-6307-49d1-8205-0cc4233faf97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Request for help with new filter operator and new tutorial.

2018-06-24 Thread Diego Mesa
I would like to make a new filter operator: fuzzysearch which makes use of 
this library:

http://fusejs.io/

in the hopes of submitting something to:

https://github.com/Jermolene/TiddlyWiki5/issues/3233

The problem is, I'm not at all sure how to do it! I know I can make a new 
tiddler with:

https://cdnjs.cloudflare.com/ajax/libs/fuse.js/3.0.4/fuse.min.js

but thats about it. What I would like to do is ask the community for help! 
Not just to make the filter operator, but to make it a 
*full-fledged tutorial!* We can then add it to the tiddlywiki.com/dev site! 

What do you all think? Kill two birds with one stone! 



-- 
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/9d72ec12-52f7-4e7f-ae4e-3f43e8f006cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Tiddler as Field Value of Another Tiddler

2018-06-24 Thread 'Mark S.' via TiddlyWiki
You can easily add a field to a tiddler that references another tiddler. Or 
add a field that has a list of tiddlers. But there's nothing to enforce 
those relationships like in full-blown relational database.

Generally you could use these relations via some mix of (possibly nested) 
list widgets, filters, and other widgets to create the kind of "reports" 
you want.

It's better to talk in terms of what your objectives are. 

Good luck!
-- Mark

On Sunday, June 24, 2018 at 1:38:54 PM UTC-7, TJ Walker wrote:
>
> TiddlerFields are name:value pairs that make up a tiddler 
>> 
>>
>
> So, tiddlers're more or less dictionaries/associative arrays/maps as db 
> records, right? Within many contexts that offer such constructs, I've found 
> that one dictionary can be set as the value of a key/attribute/field on 
> another dictionary. I was hoping to be able to do this in TiddlyWiki; 
> though, in poring over the docs, I wasn't able to determine how to set one 
> tiddler or a Title List  of 
> tiddlers as the value of a custom field on another tiddler. Is this 
> possible?
>
> ...
>
> ...
>
> ...
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To 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/0cfa955d-46ef-490d-b4ec-b4f5a98dfd5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Tiddler as Field Value of Another Tiddler

2018-06-24 Thread TJ Walker

>
> "TiddlerFields are name:value pairs that make up a tiddler" 
> 
>

So, tiddlers're more or less dictionaries/associative arrays/maps as db 
records, right? Within many contexts that offer such constructs, I've found 
that one dictionary can be set as the value of a key/attribute/field on 
another dictionary. I was hoping to be able to do this in TiddlyWiki; 
though, in poring over the docs, I wasn't able to determine how to set one 
tiddler or a Title List of tiddlers as the value of a custom field on 
another tiddler. Is this possible?

...

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To 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/53c8349c-e331-4ddf-a370-be03a0a39c53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: List sorting hierarchy syntax help

2018-06-24 Thread Scott Kingery
Thanks Mark I'll see what I can do with this.

On Sun, Jun 24, 2018 at 9:03 AM 'Mark S.' via TiddlyWiki <
tiddlywiki@googlegroups.com> wrote:

> This is a start. You'll need to weave back in the classes you want. I've
> changed some filter names.
>
> \define locationfilter()
> [blurb[$(blurb)$]location[$(location)$]sort[title]]
> \end
> \define blurbfilter()
> [location[$(location)$]each[blurb]get[blurb]sort[]]
> \end
>
>
> <$set name="location" value={{!!title}}>
>
> <$list filter=<> variable="blurb">
>
> 
> <>
> 
>
> 
> <$list filter=<>>
>
> <$transclude field="subtopic"/>
>
>
> <$link to={{!!title}}><$view field="title"/>
>
> <$transclude field="location-help"/>
> 
> 
>
> 
> 
>
> General advice -- give fields, filters and other objects meaningful names.
> This will make things a lot easier as your application gets bigger. In this
> case I've changed the variable passed from "MyTag" to "location" and given
> the filters corresponding names. If it was me, I would also change "blurb"
> to "vendortype" or something that designates what it does.
>
> HTH!
>
> -- Mark
>
> On Saturday, June 23, 2018 at 9:58:00 PM UTC-7, Scott Kingery wrote:
>>
>> Here's what I want to do...
>>
>> I have a tiddlers that represent restaurants and stores. So those
>> tiddlers will be like:
>>
>> Title: name of restaurant or store
>> Location is a field that indicates where the restaurant is located
>> Blurb is a field that is some info about the place
>>
>> There is a subtopic field that is either Restaurant or Store.
>>
>> My goal is to have another tiddler that had a title of a location and
>> lists all the restaurants or stores in that location.
>>
>> I want it to group the restaurants and stores together. Like this:
>>
>> Restaurant
>>Joes Bar
>>Mikes Burgers
>> Shops
>>Toys n More
>>Wizard of Books
>>
>>
>>
>> I'm almost there. I know I need a filter with in a filter but I cant get
>> that syntax right.
>>
>> Here is what I have:
>>
>> \define MyFilter()
>> [location[$(MyTag)$]sort[title]]
>> \end
>>
>>
>> <$set name="MyTag" value={{!!title}}>
>> <$list filter=<>>
>> 
>> <$transclude field="subtopic"/>
>> 
>> 
>> <$link to={{!!title}}><$view field="title"/>
>> 
>> <$transclude field="blurb"/>
>> 
>> <$transclude field="location-help"/>
>> 
>>
>>
>> And that gives me more like:
>>
>> Restaurant
>>Joes Bar
>> Restaurant
>>Mikes Burgers
>> Shops
>>Toy n More
>> Shops
>>Wizard of Books
>>
>>
>>
>> --
> 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/gEWSkUL-l1M/unsubscribe.
> To unsubscribe from this group and all its topics, 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/19a58ff3-ee44-4a48-8ee3-3db7c7c70f32%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/CAGUDtYGDiECdc1uf%2BOb6Neqo_KiH3-cAj2sJ-f8zhnN9LU3vGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Google Fonts - again?

2018-06-24 Thread Shay Shaked
OK so after testing and re-testing, I think I understand what the issue is. 

The good news is that *$:/tags/RawMarkup *works. 

Just create a tiddler, put the code from Google Fonts in it, for example:
 https://fonts.googleapis.com/css?family=Markazi+Text; rel=
"stylesheet">
In the tiddler tagged with *$:/tags/RawMarkup*, save it, save your wiki, 
reload wiki. 

Then you have to specify you want to USE the font. You can do this in CSS 
in the wiki, or the newer version has this in the wiki settings. Just 
specify the font face, as you see it in Google fonts. This should work. 

The thing I did, wrongly, is to try to play around with the tiddler I 
created *$:/tags/RawMarkup*. I wanted to include a comment to tell myself 
what I did. As soon as I did that, it broke stuff. So... ok I guess I can't 
explain in that tiddler, I'll explain in a tiddler leading to it. A bit 
messy, but no big deal. $ tiddlers are not meant to be self-explanatory 
anyway, they are code. 

On Sunday, June 24, 2018 at 7:51:24 AM UTC-4, @TiddlyTweeter wrote:
>
> It might well be. It sounds likely its a bug.
>
> IF something that worked with the $*:/tags/RawMarkup* tag in versions 
> prior to 5.1.17 stopped working then most likely it is. The best way to be 
> sure is to clone the same wiki content to 5.1.17 & 5.1.16 and see. If it 
> doesn't work in 5.1.17 then maybe open an issue at: 
> https://github.com/Jermolene/TiddlyWiki5/issues
>
> UPDATE: Or comment here: https://groups.google.com/d/ 
> 
> msg/tiddlywiki/bSwzQSrExMg/ 
> 
> https://groups.google.com/d/msg/tiddlywiki/bSwzQSrExMg/OcKiFvhyBQAJ
>
> JD wrote:
>>
>> yeah, this definitely was how I did it in previous versions, using 
>> *$:/tags/RawMarkup*
>> Is this maybe a bug in 5.1.17 ?
>>
>

-- 
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/b7057587-b270-463e-9879-15ffdf1a6016%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: List sorting hierarchy syntax help

2018-06-24 Thread 'Mark S.' via TiddlyWiki
This is a start. You'll need to weave back in the classes you want. I've 
changed some filter names.

\define locationfilter()
[blurb[$(blurb)$]location[$(location)$]sort[title]]
\end
\define blurbfilter()
[location[$(location)$]each[blurb]get[blurb]sort[]]
\end


<$set name="location" value={{!!title}}>

<$list filter=<> variable="blurb">


<> 



<$list filter=<>>

<$transclude field="subtopic"/>

<$link to={{!!title}}><$view field="title"/>

<$transclude field="location-help"/>






General advice -- give fields, filters and other objects meaningful names. 
This will make things a lot easier as your application gets bigger. In this 
case I've changed the variable passed from "MyTag" to "location" and given 
the filters corresponding names. If it was me, I would also change "blurb" 
to "vendortype" or something that designates what it does.

HTH!

-- Mark 

On Saturday, June 23, 2018 at 9:58:00 PM UTC-7, Scott Kingery wrote:
>
> Here's what I want to do...
>
> I have a tiddlers that represent restaurants and stores. So those tiddlers 
> will be like:
>
> Title: name of restaurant or store
> Location is a field that indicates where the restaurant is located
> Blurb is a field that is some info about the place
>
> There is a subtopic field that is either Restaurant or Store.
>
> My goal is to have another tiddler that had a title of a location and 
> lists all the restaurants or stores in that location.
>
> I want it to group the restaurants and stores together. Like this:
>
> Restaurant
>Joes Bar
>Mikes Burgers
> Shops
>Toys n More
>Wizard of Books
>
>
>
> I'm almost there. I know I need a filter with in a filter but I cant get 
> that syntax right.
>
> Here is what I have:
>
> \define MyFilter()
> [location[$(MyTag)$]sort[title]]
> \end
>
>
> <$set name="MyTag" value={{!!title}}>
> <$list filter=<>>
> 
> <$transclude field="subtopic"/>
> 
> 
> <$link to={{!!title}}><$view field="title"/>
> 
> <$transclude field="blurb"/>
> 
> <$transclude field="location-help"/>
> 
>
>
> And that gives me more like:
>
> Restaurant
>Joes Bar
> Restaurant
>Mikes Burgers
> Shops
>Toy n More
> Shops
>Wizard of Books
>
>
>
>

-- 
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/19a58ff3-ee44-4a48-8ee3-3db7c7c70f32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: List sorting hierarchy syntax help

2018-06-24 Thread Scott Kingery
Tony,
There is one list because I cant figure out the syntax for the one that 
should be inside that.

Let me see if I can explain more...

I have a tiddler called, let say, West Mall. That would be the name of a 
location.
In the location field on other tiddlers I type West Mall or other names of 
*locations*.
Also on other tiddlers I have a filed called *subtopic *and I type 
Restaurant or Shop depending on which it is

Now when I open the West Mall tiddler I expect to see all the things with 
"West Mall" in their location field. That part works in the example. I have 
a filter and I set the variable with the title of the current tiddler.

\define MyFilter()
[location[$(MyTag)$]sort[title]]
\end


<$set name="MyTag" value={{!!title}}>


I need help trying to group those together by subtopic like in my example.

Hope that helps explain further.

Scott

On Saturday, June 23, 2018 at 11:43:48 PM UTC-7, TonyM wrote:
>
> Scott,
>
> To help us understand please show how location relates to your test data. 
> Are you suggesting all in your above data are in the same location.
>
> Because if you do there would be a filter to select the current location 
> then two lists one after the other to show all restaurants and all shops in 
> the current location.
>
> Or perhaps this would be a list of locations with two list restarraunts 
> and shops one after inside the location list.
>
> Here I see only one <$list 
> Regards
> Tony
>
>

-- 
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/f3fa4df9-f861-408d-8a94-420cb2b8f316%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] [TW5] Announcing Single Executable version using Bob 1.0.2 Sourdough Biscuits

2018-06-24 Thread Jed Carty
I just uploaded the new versions of Bob as a single executable tiddlywiki. 
The updates to Bob as a plugin have actually been up for about 3 weeks but 
I forgot to announce it.

The single executable version is 
here https://github.com/OokTech/TW5-SingleExecutable/releases/tag/1.0.2

The plugin version is here https://github.com/OokTech/TW5-Bob

Let me know if you run into any bugs.

Here is the changelog for version 1.0.2:

- Fixed/Updated documentation
- for the getSetting macro (fixed typo)
- for the buildHTMLWiki message (added excludeList info)
- fixed the message about shutting down the server in the server 
actions tab
- Fixed a bug where output single file html wikis would always be 
called `index.html`
- Added an optional excludeFilter attribute to the buildHTMLWiki message 
that lists tiddlers that shouldn't be added to the exported wiki.
- Added the option to set the location of external editions using the 
editionsPath setting.
- This shouldn't affect the environment variable method of setting the 
location.
- Fixed a bug that would let the server try and load a wiki that didn't 
exist
- Updated instructions to point to TiddlyWiki version 5.1.17






























-- 
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/5e9ffe35-ea51-4d6d-9526-d28d2f9268c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Google Fonts - again?

2018-06-24 Thread @TiddlyTweeter
It might well be. It sounds likely its a bug.

IF something that worked with the $*:/tags/RawMarkup* tag in versions prior 
to 5.1.17 stopped working then most likely it is. The best way to be sure 
is to clone the same wiki content to 5.1.17 & 5.1.16 and see. If it doesn't 
work in 5.1.17 then maybe open an issue at: 
https://github.com/Jermolene/TiddlyWiki5/issues

JD wrote:
>
> yeah, this definitely was how I did it in previous versions, using 
> *$:/tags/RawMarkup*
> Is this maybe a bug in 5.1.17 ?
>

-- 
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/f5ced871-6ea3-48f5-8de0-c752283978bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: KeeBoord - global keyboard shortcuts

2018-06-24 Thread BurningTreeC
edit @JD - in my previous post I was talking about your *spartan* theme, 
not "shadow" ... where did shadow come from? I don't know... 

BTC

-- 
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/343aabf0-cf1b-4880-ae76-6f6d557cefbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Google Fonts - again?

2018-06-24 Thread JD
yeah, this definitely was how I did it in previous versions, using 
*$:/tags/RawMarkup*
Is this maybe a bug in 5.1.17 ?

On Sunday, June 24, 2018 at 6:15:49 PM UTC+9, Ste Wilson wrote:
>
> I'm still running on 5.1.16 on my front example. 
>
> https://fonts.googleapis.com/css?family=Permanent+Marker|Zeyada 
> " 
> rel="stylesheet">
>
> And that's the content of my rawmarkup tagged tiddler. (fonts have been 
> deleted from the above for brevity). 
>
>

-- 
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/2f2a32c4-1e82-4a5f-887e-dd5ffef05e48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Google Fonts - again?

2018-06-24 Thread Ste Wilson
I'm still running on 5.1.16 on my front example. 

https://fonts.googleapis.com/css?family=Permanent+Marker|Zeyada" 
rel="stylesheet">

And that's the content of my rawmarkup tagged tiddler.. 

-- 
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/3206a93f-2bc1-4a9f-b7bf-816eb468ddac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: sending email from a tiddler

2018-06-24 Thread sini-Kit
you can use google form for sending emails. 

понедельник, 18 июня 2018 г., 18:23:27 UTC+3 пользователь Joe Armstrong 
написал:
>
> I find myself more and more composing emails in TW5.
>
> Having composed an email I then go into gmail
> start composing a new email then cut-and-paste the
> tiddler text into the email (not the rendered text - the
> raw tiddler text)
>
> It would be nice to automate this -
> is this possible?
>
> /Joe
>

-- 
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/dddc7281-aa55-4ca6-a1e2-5749c93edf4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] List sorting hierarchy syntax help

2018-06-24 Thread TonyM
Scott,

To help us understand please show how location relates to your test data. Are 
you suggesting all in your above data are in the same location.

Because if you do there would be a filter to select the current location then 
two lists one after the other to show all restaurants and all shops in the 
current location.

Or perhaps this would be a list of locations with two list restarraunts and 
shops one after inside the location list.

Here I see only one <$list https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dd4ac0c3-5194-44a2-9efe-eac133c9c95e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.