[tw5] List ops and tiddlers with multi-word titles

2020-04-12 Thread David Allen
Hey, so I'm trying to create a list from the items in a field and I'm 
trying to add a button to each item that will remove that item and only 
that item.  So far, it's working with single-worded tiddlers, but tiddlers 
with more than one word in the title are not being removed.

Here's the code I have so far:
<$list variable="the_list" filter="[enlist{!!faction_list}]">
<$button class="icon_button">{{Constants!!image_trash}}
<$action-listops $field="faction_list" 
$subfilter="+[remove]"/><>


faction_list:
[[United Federation of Planets]] [[Ascendant Star]] [[Chodak Empire]] 
Dominion



Anyone know why this isn't working?

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


[tw5] Re: Filter comparison operators

2020-03-08 Thread David Allen
That worked, though I needed to add a list to make sure the count wasn't 
zero.

On Wednesday, March 4, 2020 at 12:01:40 AM UTC-6, Mat wrote:
>
> Comparison operators is/has been discussed 
> . Contribute or 
> merely express liking to it.
>
> For now, this more cumbersome approach might work:
>
> <$set name=amount
>   filter="[tag[mytag]get[modified]]
>   20180403221852352
>   +[sort[]allbefore[20180403221852352]count[]]">
> <$list filter="[tag[mytag]sort[modified]first]" >
>
> 
> 
>
> So, the idea is to extract all modified dates from the relevant tids. Then 
> add your magic cutoff date. Sort them and cut the sorted list before your 
> magic date. Count how many.
> Then sort all relevant tids by modified date and cut out as many as was 
> counted before.
>
> ...yeah, would be simpler with "less than"...
>
> <:-)
>

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


[tw5] Re: Filter to look for a string inside a tiddler field?

2020-03-08 Thread David Allen
I'm not sure about putting it into list-links, but a filter along these 
lines should work:

filter="[[bluegill]listed[fish]]"

On Sunday, March 8, 2020 at 12:43:04 PM UTC-5, Beckstrom wrote:
>
> Ah, so close...
>
> This works great:
> <>
>
> Now I'm trying to grab the title of a tiddler and insert it into that 
> filter (eg the tiddler is named "bluegill" and I want the filter to show me 
> every tiddler that has the field "fish" that contains the word "bluegill"
>
> I've tried:
>
> <>
>
> <>]]">>
>
> <]]">>
>
> and various attempts with <$var> and <$set> (I don't really understand 
> those yet)
>
> Any ideas? thanks!
>
> On Sunday, March 8, 2020 at 12:42:45 PM UTC-4, Mat wrote:
>>
>> I think this filter should work
>>
>> [all[tiddlers]search:fish[goldfish]]
>>
>> <:-)
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4107461f-5c4b-46c0-8e60-61d301e160c9%40googlegroups.com.


[tw5] Re: Filter comparison operators

2020-03-03 Thread David Allen
I'm trying to store a list of tiddlers that has a "months" value.  The only 
relation this number has to built-in tiddlywiki date/time handling is in 
deciding which tiddlers to include, and I already know how to get the 
current date.  It is not related in any way to the creation/modification 
date of the tiddler, so any built-in date stuff in TiddlyWiki will not 
work.  For the same reason, the reveal widget is useless in this case.

I'm trying to get a filter operator that can compare numbers in a greater 
than/less than fashion.  Using the prefix method requires a degree of 
specificity I cannot provide in this case, so the prefix method is also 
useless.

To be specific, *I am looking for a filter operator that can help me store 
a list of tiddlers whose months value is less than a specified value*.

On Tuesday, March 3, 2020 at 5:38:49 PM UTC-6, TonyM wrote:
>
> David,
>
> There are always so many ways to ask the same question
>
> `[!prefix[2020]]`
>
> <$list filter="tag[blah]get[date-field]!prefix[2020]]">
>
> 
>
> When you say compare numbers is a string comparison enough?
>
> Recent improvements to tiddlywiki has introduced simple maths and 
> additional string operators that make what you ask possible.
>
> Traditionally the comparison less than and greater than is done with the 
> reveal 
> widget <https://tiddlywiki.com/#RevealWidget>
>
> Regards
> Tony
>
> On Tuesday, March 3, 2020 at 11:51:47 PM UTC+11, David Allen wrote:
>>
>> Looking for a filter operator that will let me compare numbers in fields.
>>
>> <$list filter="[tag[blah]has[year](somehow)year<19]">
>>
>> 
>>
>> Just kind of as an example
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e39bc841-af7f-48c9-a2ac-92bf7de0e575%40googlegroups.com.


[tw5] Filter comparison operators

2020-03-03 Thread David Allen
Looking for a filter operator that will let me compare numbers in fields.

<$list filter="[tag[blah]has[year](somehow)year<19]">



Just kind of as an example

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/269be16a-1500-4758-ac2b-2d621584257e%40googlegroups.com.


[tw5] Re: Two-dimensional list/array?

2019-12-31 Thread David Allen
The problem is what I'm doing is a little more in-depth.  I'm tracking 
macronutrients and calories for each of the ingredients, then totaling 
those for the overall nutrition facts for the recipe.  Most of the 
ingredient titles are more than one word, so I'm not sure the solution 
you've shown would work.

On Tuesday, December 31, 2019 at 9:47:12 AM UTC-6, Mark S. wrote:
>
>
> I'm trying to remember how I did it for my own recipe program ;-)
>
> You could have ingredient amount fields, each with a prefix
>
> ing-quinoa
> ing-chives
> ing-
>
> where  is the name of a tiddler with a more detailed 
> description of the ingredient.
>
>
>
> On Tuesday, December 31, 2019 at 7:10:33 AM UTC-8, David Allen wrote:
>>
>> I'm trying to create a wiki for meal tracking, and I'd like to store a 
>> list of ingredients and their proportions into recipe tiddlers.  The only 
>> way I know to do so right now is by having two lists, one for ingredients, 
>> the other for amounts.  Problem is, I'm afraid of doing something to sort 
>> one of these lists and disrupt the order between both of these lists.  Does 
>> anyone know of a way to create pairs of tiddlers and then store those in a 
>> list, or something that will keep these pairs together in a list?  Thanks!
>>
>

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


[tw5] Two-dimensional list/array?

2019-12-31 Thread David Allen
I'm trying to create a wiki for meal tracking, and I'd like to store a list 
of ingredients and their proportions into recipe tiddlers.  The only way I 
know to do so right now is by having two lists, one for ingredients, the 
other for amounts.  Problem is, I'm afraid of doing something to sort one 
of these lists and disrupt the order between both of these lists.  Does 
anyone know of a way to create pairs of tiddlers and then store those in a 
list, or something that will keep these pairs together in a list?  Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3c90d7f7-505d-476e-aa28-ef70f5dde242%40googlegroups.com.


[tw5] Div width based on variable?

2019-12-26 Thread David Allen
How do I style a div so that its width as well as its left and right 
margins are set by variables?

<$set name="span_percent" value="50">








-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/34e4fdf0-91f9-436b-b179-70e3cec406b0%40googlegroups.com.


[tw5] Open multiple tiddlers with one button

2019-12-23 Thread David Allen
Hey everyone, I'm looking for a way to open multiple tiddlers with one 
button.  Anyone know of some way 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/77b69747-10fc-4488-a486-6cefd772b665%40googlegroups.com.


Re: [tw5] Re: listed operator slowing down my wiki

2019-12-23 Thread David Allen
I've learned things since about the listed[] operator.  It doesn't help at 
all when I do the following:

filter="[listed[]]"

On Monday, December 23, 2019 at 8:11:06 AM UTC-6, Hubert wrote:
>
>
> I think, the best way is, to provide us with a test-case wiki, if you have 
>> performance problems. That's the only way, we have the chance to do 
>> something about it. 
>>
>
> Again, I'm not the original poster here and it is not me who has reported 
> issues. I only posted here to suggest an extension to the listed[] 
> operator, which my was attempt as suggesting a solution to David's problem 
> (please see his post).
>
> Many thanks,
> Hubert
>
> On Monday, 23 December 2019 14:00:45 UTC, PMario wrote:
>>
>> On Monday, December 23, 2019 at 2:25:54 PM UTC+1, Hubert wrote:
>> ... 
>>
>>> .. I'm personally "deprecating" tags in my own wiki.
>>>
>>
>> I wouldn't deprecate tags. They are still the easiest way for users to 
>> create "structure" in TW and it's the mechanism that, most likely, gets 
>> performance improvements, like the last one in TW 5.1.20 
>>
>> see: https://github.com/Jermolene/TiddlyWiki5/pull/3951
>>
>> I think, the best way is, to provide us with a test-case wiki, if you 
>> have performance problems. That's the only way, we have the chance to do 
>> something about it. 
>>
>> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9d25596f-65c4-4cef-9c4e-bcdce3e92b85%40googlegroups.com.


[tw5] Find missing links in fields of tiddlers

2019-12-22 Thread David Allen
Pretty self-explanatory.  I'd like to find some way to find missing links 
in all fields of all tiddlers.  Most of what I'm finding only searches in 
the text field.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b3ad8afe-c236-4b26-b3b3-6b96945ab4d5%40googlegroups.com.


[tw5] Change tiddler's text field to {{||View_Template}} where View_Template is defined in a field

2019-12-22 Thread David Allen
I only recently discovered transclusion with templates and I'm trying to 
create a form that will replace each tiddler's text field with a template 
transclusion.  Problem is, the view template I use for various tiddlers 
varies depending on the tag of the tiddler.  To fix this, I have a form 
that stores the value of the view template in the view_template field of a 
tiddler called Scratch_Pad.  Problem is, when I try to apply this to the 
text field of a tiddler using an action-setfield widget, I get unexpected 
results.

<$wikify name="octopus" text="{{Scratch_Pad!!view_filter}}">
<$set name="squid" value="{{||<>}}">
<$action-setfield images=<> text=<>/>



As a test case, if Scratch_Pad!!view_filter is View_Species, then the text 
field of the item I'm modifying should be {{||View_Species}}.  The results 
I'm getting right now are {{||<>}}, but depending on what all I 
change sometimes the text field is blank, sometimes it's just <>.  
Does anyone see how I can get this to work?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7fa0e6c7-bd9b-44c2-866b-17e9bed44336%40googlegroups.com.


[tw5] Re: Alternative to listed[] operator that checks if a field value matches input

2019-12-22 Thread David Allen
<$list variable="filter_field" filter="[enlist]">
<$wikify name="search_string" 
text="[<>[<>]!prefix[View]!prefix[Template]first[]]">
<$wikify name="display_string" 
text="[<>[<>]!prefix[View]!prefix[Template]]">
<$list variable="search_confirm" filter=<> >
<$set name="display_tag" filter="[tags[]] -stub">



@@text-transform: capitalize;<>@@


<$list filter=<> >








This is the code I have (and it is working now, thanks to the suggestion I 
saw earlier), but it's nasty.

The problem with the macro solution you mentioned is I needed a more 
general, flexible solution to use as a list filter.  In the code above, the 
field I'm checking is stored in a variable.  "[[]]" 
doesn't work, so I had to wikify it to make it work.  I was hoping for 
something with a syntax similar to listed, since it's 
a simpler piece of code than the mess of wikifying I have above.


On Sunday, December 22, 2019 at 2:22:21 PM UTC-6, Eric Shulman wrote:
>
> What I want is some way to find all tiddlers that contain a field where 
>> the field's entire value matches "Constitution Class" (or whatever other 
>> string I throw at it), rather than enlisting every fields' contents to find 
>> the value.
>>
>
> Based on the above statement... and using the example values you 
> indicated, this should do what you want:
> <$list filter="[craft_class[Constitution Class]]">
><>
> 
>
> More generically, you could write a macro like this:
> \define getAllMatches(fieldname,fieldvalue)
> <$list filter="[$fieldname$[$fieldvalue$]]">
><>
> 
> \end
>
> which you would invoke as:
> <>
>
>
>> *I do not want any more plugins.  Please do not suggest one.*
>>
>
> This little message seems quite harsh... especially repeated twice,
> and in bold text, on every message you post.
>
> If you don't want plugins, you could just say:
> "I'm looking for a native TW5 way to solve this without using a plugin"
>
> The people in this group are a helpful bunch and are generally willing
> to put in quite a bit of effort to solve other people's problems.
>
> Rather than telling them what kind of solutions you will accept,
> just ask for help finding ANY solution to your problem.
>
> Then, if someone offers a solution that involves a plugin,
> and you don't want plugins, just politely ignore that solution.
>
> -e
> Eric Shulman
> TiddlyTools.com: "Small Tools for Big Ideas! (tm) - 
> http://www.TiddlyTools.com (TWClassic)
> InsideTiddlywiki - http://www.TiddlyTools.com/InsideTW (TW5)
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a937cd6e-7632-4192-813e-acc00db6681a%40googlegroups.com.


[tw5] Alternative to listed[] operator that checks if a field value matches input

2019-12-22 Thread David Allen
*I do not want any more plugins.  Please do not suggest one.*
So I've been having some trouble with the listed[] operator and have 
finally figured out why.

This is a boiled-down version of my code: 
<$tiddler tiddler="Constitution Class">
<$list filter="[listed[craft_class]]">




The problem is in the USS Enterprise tiddler, I have the field craft_class 
set to Constitution Class.  This does not work with the listed[] operator.  
It works if I change the field value to [[Constitution Class]].

The problem with the listed[] operator is it enlists the values of a field, 
so when it checks the craft_class field, it checks it against the strings 
"Constitution" and "Class" separately.

What I want is some way to find all tiddlers that contain a field where the 
field's entire value matches "Constitution Class" (or whatever other string 
I throw at it), rather than enlisting every fields' contents to find the 
value.

It sounds simple but I can't seem to figure out how to do so.  Does anyone 
know of a way to do this.

*I do not want any more plugins.  Please do not suggest one.*

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c53d5e05-42c7-4291-90e8-d2e28f947564%40googlegroups.com.


[tw5] Am I not using the listed[] operator right?

2019-12-22 Thread David Allen
<$set name="flfields" filter="[enlist{Constants!!flfields_$template$}]">
<$list variable="placeholder_2" filter="[enlist]">
<>
<$list filter="[listed]">
Look: <>


<$list variable="mouse" 
filter="[has!prefix[Template]!prefix[View]first[]tags[]first[]]">

@@text-transform: 
capitalize;<>@@
<$list variable="moosefish" 
filter="[has!prefix[Template]!prefix[View]]">
<$list variable="kiba" 
filter="[getprefixsuffix]">
<$list filter="[]">








I'm trying to figure out why this is not working.  The area that says 
"Look" should be working, but I can't seem to figure out why the filter is 
empty.  The code below that was my workaround to get a result somewhat 
similar to the first part of the code.  Does anyone see what I'm doing 
wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/727d1778-47da-4dbc-8d07-3368523abfd8%40googlegroups.com.


[tw5] listed operator slowing down my wiki

2019-12-22 Thread David Allen
Is anyone else having serious performance issues when using the listed[] 
operator in a filter?  Does anyone know of a more efficient way to 
accomplish the same thing?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bddb4fce-7559-4926-86a0-e3b34a350ab6%40googlegroups.com.


[tw5] Re: CSS Wikitext in macro issue

2019-12-21 Thread David Allen
Found something that works and lets me use multiple such instances of this 
macro:

\define color_picker(label,field)


$label$


<$edit-text field="$field$" type="number" class="custom_select"/>


.style_$field$ {background-color: rgb({{!!$field$}}, 
{{!!$field$}}, {{!!$field$}}); padding: 10px;}



\end



On Saturday, December 21, 2019 at 8:03:10 PM UTC-6, David Allen wrote:
>
> I did and it didn't work
>
> On Saturday, December 21, 2019 at 7:59:27 PM UTC-6, A Gloom wrote:
>>
>> the field value transclusion may need a template to apply styling if I'm 
>> understanding correctly
>>
>> have you tried wikitext styling markup?
>>
>> Eric summed it up well here-- 
>> https://groups.google.com/d/msg/tiddlywiki/NDASkeP2oMA/Bfr9tID2AwAJ
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e7d25991-ba02-455e-afe5-4f2fdaec8f06%40googlegroups.com.


[tw5] Re: CSS Wikitext in macro issue

2019-12-21 Thread David Allen
I did and it didn't work

On Saturday, December 21, 2019 at 7:59:27 PM UTC-6, A Gloom wrote:
>
> the field value transclusion may need a template to apply styling if I'm 
> understanding correctly
>
> have you tried wikitext styling markup?
>
> Eric summed it up well here-- 
> https://groups.google.com/d/msg/tiddlywiki/NDASkeP2oMA/Bfr9tID2AwAJ
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5a613b68-44ff-4d0b-8d8d-098e91960ef7%40googlegroups.com.


[tw5] CSS Wikitext in macro issue

2019-12-21 Thread David Allen
\define color_picker(label,field)


$label$


<$edit-text field="$field$" type="number" class="custom_select"/>


{{!!$field$}}



\end

I've finally discovered wikifying CSS, and I think I love it.  I'm trying 
to make a tiddler that contains some CSS controlling forms and the code 
above is one of the macros I use.  I'm trying to get a segment of the table 
to turn the same color (grayscale) as the value in the $field$ parameter.  
For some reason, it is not working as I have it typed out here, but it 
looks (to me) like it should.

Does anyone know if I'm doing something wrong, or a better method of doing 
so?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ef4122ee-0a70-49ef-87b5-37b07fe4beba%40googlegroups.com.


[tw5] Re: Change currentTiddler within macro based on macro input

2019-12-21 Thread David Allen
Thank you! This is working now.  I didn't know the exact syntax for doing 
<<__parameter__>> inside a filter, so that helped.

Also, why is the ~ in front of the title again?

On Saturday, December 21, 2019 at 2:20:06 PM UTC-6, Mark S. wrote:
>
> Try
>
> \define img_gallery2(target_tiddler)
> <$list filter="[<__target_tiddler__>!is[missing]] 
> ~[title]">
> 
> <>
> <>
> 
> 
> \end
>
>
>
> On Saturday, December 21, 2019 at 11:32:31 AM UTC-8, David Allen wrote:
>>
>> *I do not want a new plugin, so please don't suggest one!*
>> I have a macro as follows:
>>
>> \define img_gallery2(target_tiddler)
>> 
>> <>
>> <>
>> 
>> \end
>>
>> Right now, target_tiddler is not used.  single_image3 and add_gallery2 
>> both use text references for the currentTiddler variable (such as 
>> {{!!images}} ).
>>
>> I want to expand this macro to set currentTiddler to the value of 
>> target_tiddler only if target_tiddler is defined, but leave it alone 
>> otherwise.
>>
>> Anyone have any suggestions?
>> *I do not want a new plugin, so please don't suggest one!*
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e1a14a6d-804e-49da-ad8f-f4a7a20fb3ea%40googlegroups.com.


[tw5] Change currentTiddler within macro based on macro input

2019-12-21 Thread David Allen
*I do not want a new plugin, so please don't suggest one!*
I have a macro as follows:

\define img_gallery2(target_tiddler)

<>
<>

\end

Right now, target_tiddler is not used.  single_image3 and add_gallery2 both 
use text references for the currentTiddler variable (such as {{!!images}} ).

I want to expand this macro to set currentTiddler to the value of 
target_tiddler only if target_tiddler is defined, but leave it alone 
otherwise.

Anyone have any suggestions?
*I do not want a new plugin, so please don't suggest one!*

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/590d0bf4-862a-44b6-a460-075f684cdf7d%40googlegroups.com.


[tw5] How do I use JSON in Tiddlywiki?

2019-11-20 Thread David Allen
I'm trying to get information using Tumblr's API.  The API returns a JSON 
object.  I tried copying the JSON text into the text field of a tiddler, 
then set its data type to application/json.  Now I don't know how to access 
the information in that tiddler.  Does anyone have any examples of 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a8e06e1f-0a7b-4782-a4ad-c8e467c70b73%40googlegroups.com.


[tw5] Re: Making navigation buttons using system images

2019-11-12 Thread David Allen
On Tuesday, November 12, 2019 at 1:13:10 AM UTC-6, A Gloom wrote:
>
> <$button class="tc-btn-invisible"  style="padding:0px 5px; 
> font-size:2em;"> X 
>

This seems to have worked for me.  Here is my current code:

\define scroll_buttons2(filterlimit: 1)

.scroll_button {
padding: 0px 5px;
font-size: 1.5em;
vertical-align: middle;
text-align: center;
}
.scroll_button_div {
display: table-cell;
width: 5%;
}

<$set name="fivelessthanlimit" filter="[[]eval[$filterlimit$-5]]">




<$button class="scroll_button">
{{$:/core/images/left-arrow}}

<$set name="max_prev_index"filter="[{Draft of 
'Scratch_Pad'!!scroll_index}eval[min(title, <>)]]">
<$set name="prev_index" filter="[[]eval[max(<>-5,0)]]">
<$action-setfield $tiddler="Scratch_Pad" scroll_index=<>/>
<$action-setfield $tiddler="Draft of 'Scratch_Pad'" 
scroll_index=<>/>






<$range class="custom_range" tiddler="Draft of 'Scratch_Pad'" 
field="scroll_index" min="0" max=<> 
default={{Scratch_Pad!!scroll_index}}/>



<$button class="scroll_button">{{$:/core/images/right-arrow}}
<$set name="next_index" filter="[{Draft of 
'Scratch_Pad'!!scroll_index}eval[min(title + 5, <>)]]">
<$action-setfield $tiddler="Scratch_Pad" scroll_index=<>/>
<$action-setfield $tiddler="Draft of 'Scratch_Pad'" 
scroll_index=<>/>






<>
\end

I added a border to demonstrate the current problem.  I can't seem to 
correctly align the images.  I don't wanna do a "button svg" css line since 
I wanna have the freedom to do other stuff with SVG's inside a button later 
on.  Setting the vertical-align and text-align didn't seem to do the 
trick.  Am I missing or forgetting something CSS related?  Thanks!

[image: New Screenie.png]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/551ad8a9-4aa0-4724-95f5-d660ffa2def8%40googlegroups.com.


[tw5] Re: Shared, synced collection of macros between multiple wikis?

2019-11-12 Thread David Allen
The documentation on this is a mess/difficult to find.  I'm hesitant to 
install anything into my wiki if I can't read what it's supposed to do or 
have any good examples to use.

On Tuesday, November 12, 2019 at 12:17:29 AM UTC-6, TonyM wrote:
>
> The is an option provided if you use wikilabs bundler - marios
>
>
> https://wikilabs.github.io/editions/bundler/#%24%3A%2Fplugins%2Fwikilabs%2Fbundler
>
> This adds Enable Overwrite Check
>
> *By default, the import mechanism overwrites existing tiddlers. By 
> enabling this option, you can activate a mechanism, that creates a new 
> tiddler name. By default this option is off. *
>
> Regards
> Tony
>
>
> On Monday, November 11, 2019 at 12:00:33 PM UTC+11, David Allen wrote:
>>
>> I have two wikis which both have a large number of macros that are common 
>> between them.  Both are hosted on tiddlyspot.  I'd like to be able to 
>> modify one of these common macros in one wiki, then have it automatically 
>> update in the other wiki without having to worry about which ones I've 
>> re-imported or overwriting newer versions of macros I forgot I wrote.  Is 
>> it possible to do this within TiddlyWiki on Tiddlyspot?
>>
>

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


Re: [tw5] Re: Make range widget update according to given field

2019-11-11 Thread David Allen
Sorry it's taken me a while to respond. I've posted an unrelated question 
regarding the same code here: 
https://groups.google.com/forum/?hl=en#!topic/tiddlywiki/RSecD3M6Vio,
 
so the code that solved this should be visible there.

On Tuesday, October 15, 2019 at 3:36:32 PM UTC-5, Jeremy Ruston wrote:
>
> Hi David
>
> Please could you post the code you referred to in your original post? I 
> have a feeling that the draft thing might be a red herring, and that this 
> may be about avoiding refresh cycles that destroy and recreate the range 
> widget while it is being used (which is a version of a classic TW5 gotcha: 
> that one cannot use an edit widget to edit a field of the tiddler in which 
> the edit widget appears).
>
> Best wishes
>
> Jeremy
>
> On 15 Oct 2019, at 19:42, David Allen > 
> wrote:
>
> So I came up with an inelegant solution that solves the problem.
>
> To clarify the situation I had, I had a list of tiddlers that would only 
> show five at a time, and would scroll using a range widget and a left/right 
> button combination.  The range widget scrolls by 1, the left/right buttons 
> scroll by five.  The issue I had was the list and buttons were working 
> correctly, but the range widget was not updating according to the input of 
> the buttons.
>
> The first solution I had was to move the field being modified to another 
> tiddler, which I called Scratch_Pad.  This did not work, but it was 
> convenient for me for later on.
>
> Second solution I had was to change the default value of the range widget 
> to equal Scratch_Pad!!scroll_index, which is the same value the widget and 
> the buttons modified.  It worked, but the slider was very difficult to use 
> as it would de-select itself every time I moved the slider, requiring me to 
> re-click the slider and move it one-by-one every time I wanted to change 
> the value.
>
> The solution that finally worked is a bit wonky.  I read in another thread 
> that modifying a draft of a tiddler works smoothly for the range widget.  
> The problem I had was having the default value of the range widget be the 
> same field as the value the range widget was trying to modify.  Here's what 
> I did instead:
>
> Set the tiddler the range widget modifies to be Draft of 'Scratch_Pad', 
> keeping the field as scroll_index
> Set the default it pulls from to be Scratch_Pad!!scroll_index, NOT the 
> draft
> Set the value the buttons base their calculations on to Draft of 
> 'Scratch_Pad'!!scroll_index.  This makes sure the buttons will move the 
> value last updated by the range widget.
> When the buttons calculate the new values, make sure they update the 
> scroll_index fields in both the Scratch_Pad AND Draft of 'Scratch_Pad' 
> tiddlers to update the range widget's position and make sure the value it 
> next calculates is accurate
> Base the horizontal list's position on the Draft of 'Scratch_Pad' value.
>
> On Thursday, October 10, 2019 at 7:10:40 PM UTC-5, David Allen wrote:
>>
>> Right now I have a range widget that controls a scroll_index field.  It 
>> increments by 1.  I also have two buttons that increment and decrement the 
>> same scroll_index by 5.  Problem is, when I use the buttons, the range 
>> widget does not update to reflect the modified scroll_index value, and I'd 
>> like it to do so.  Is there a way to force the range widget to reflect the 
>> scroll_index value?
>>
>
> -- 
> 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 tiddl...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/840e4f1b-55e2-4151-8eb5-376bb9199c0d%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/840e4f1b-55e2-4151-8eb5-376bb9199c0d%40googlegroups.com?utm_medium=email_source=footer>
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/563d25e5-d2d5-469b-97a0-3e42590550f0%40googlegroups.com.


[tw5] Making navigation buttons using system images

2019-11-11 Thread David Allen
I like the built-in images used for navigation in vanilla TiddlyWiki, so I 
decided I'd like to reuse them for some custom navigation applications.  
I've run into some problems when trying to resize images.

Here is my code for a button and slider combo for a list of tiddlers:
\define scroll_buttons2(filterlimit: 1)
<$set name="fivelessthanlimit" filter="[[]eval[$filterlimit$-5]]">




<$button class="custom_navbutton">
{{$:/core/images/left-arrow}}

<$set name="max_prev_index"filter="[{Draft of 
'Scratch_Pad'!!scroll_index}eval[min(title, <>)]]">
<$set name="prev_index" filter="[[]eval[max(<>-5,0)]]">
<$action-setfield $tiddler="Scratch_Pad" scroll_index=<>/>
<$action-setfield $tiddler="Draft of 'Scratch_Pad'" 
scroll_index=<>/>






<$range class="custom_range" tiddler="Draft of 'Scratch_Pad'" 
field="scroll_index" min="0" max=<> 
default={{Scratch_Pad!!scroll_index}}/>



<$button class="custom_navbutton">{{$:/core/images/right-arrow}}
<$set name="next_index" filter="[{Draft of 
'Scratch_Pad'!!scroll_index}eval[min(title + 5, <>)]]">
<$action-setfield $tiddler="Scratch_Pad" scroll_index=<>/>
<$action-setfield $tiddler="Draft of 'Scratch_Pad'" 
scroll_index=<>/>






<>
\end
Right now, this is the result:

[image: Screenshot.jpg]
The red and blue backgrounds are there to make it easier to see the bounds 
of the div's.

I'd like to increase the size of the arrow buttons, and I tried following 
the Image Gallery example on the TiddlyWiki site, but that didn't seem to 
work for me.  I'm not sure if the problem is that the images are in the 
button widget or if I'm not understanding CSS all that well.

I tried this previously with regular HTML tables instead of CSS, and could 
not increase the size of the arrow buttons to be what I wanted.  If anyone 
can guide me toward something that'll let me increase the arrow size, 
that'd be great!

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


[tw5] Shared, synced collection of macros between multiple wikis?

2019-11-10 Thread David Allen
I have two wikis which both have a large number of macros that are common 
between them.  Both are hosted on tiddlyspot.  I'd like to be able to 
modify one of these common macros in one wiki, then have it automatically 
update in the other wiki without having to worry about which ones I've 
re-imported or overwriting newer versions of macros I forgot I wrote.  Is 
it possible to do this within TiddlyWiki on Tiddlyspot?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/49a85d53-39ea-4343-b915-e3f263c425e9%40googlegroups.com.


[tw5] Re: Make range widget update according to given field

2019-10-15 Thread David Allen
So I came up with an inelegant solution that solves the problem.

To clarify the situation I had, I had a list of tiddlers that would only 
show five at a time, and would scroll using a range widget and a left/right 
button combination.  The range widget scrolls by 1, the left/right buttons 
scroll by five.  The issue I had was the list and buttons were working 
correctly, but the range widget was not updating according to the input of 
the buttons.

The first solution I had was to move the field being modified to another 
tiddler, which I called Scratch_Pad.  This did not work, but it was 
convenient for me for later on.

Second solution I had was to change the default value of the range widget 
to equal Scratch_Pad!!scroll_index, which is the same value the widget and 
the buttons modified.  It worked, but the slider was very difficult to use 
as it would de-select itself every time I moved the slider, requiring me to 
re-click the slider and move it one-by-one every time I wanted to change 
the value.

The solution that finally worked is a bit wonky.  I read in another thread 
that modifying a draft of a tiddler works smoothly for the range widget.  
The problem I had was having the default value of the range widget be the 
same field as the value the range widget was trying to modify.  Here's what 
I did instead:

Set the tiddler the range widget modifies to be Draft of 'Scratch_Pad', 
keeping the field as scroll_index
Set the default it pulls from to be Scratch_Pad!!scroll_index, NOT the draft
Set the value the buttons base their calculations on to Draft of 
'Scratch_Pad'!!scroll_index.  This makes sure the buttons will move the 
value last updated by the range widget.
When the buttons calculate the new values, make sure they update the 
scroll_index fields in both the Scratch_Pad AND Draft of 'Scratch_Pad' 
tiddlers to update the range widget's position and make sure the value it 
next calculates is accurate
Base the horizontal list's position on the Draft of 'Scratch_Pad' value.

On Thursday, October 10, 2019 at 7:10:40 PM UTC-5, David Allen wrote:
>
> Right now I have a range widget that controls a scroll_index field.  It 
> increments by 1.  I also have two buttons that increment and decrement the 
> same scroll_index by 5.  Problem is, when I use the buttons, the range 
> widget does not update to reflect the modified scroll_index value, and I'd 
> like it to do so.  Is there a way to force the range widget to reflect the 
> scroll_index value?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/840e4f1b-55e2-4151-8eb5-376bb9199c0d%40googlegroups.com.


[tw5] Make range widget update according to given field

2019-10-10 Thread David Allen
Right now I have a range widget that controls a scroll_index field.  It 
increments by 1.  I also have two buttons that increment and decrement the 
same scroll_index by 5.  Problem is, when I use the buttons, the range 
widget does not update to reflect the modified scroll_index value, and I'd 
like it to do so.  Is there a way to force the range widget to reflect the 
scroll_index value?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a10d3356-d4f9-487c-be60-5dd0f1062040%40googlegroups.com.


[tw5] Perform task x number of times

2019-10-09 Thread David Allen
I'm wanting to create a button a specific number of times.  This number is 
calculated using values passed in to a macro, so I don't know what the 
exact value will be every time.

I'm thinking something along these lines:

x=4
<$list filter="limit of x">
thing_to_do


output should be: 

thing_to_do
thing_to_do
thing_to_do
thing_to_do

I've seen this done somewhere before and I think it was blindingly easy but 
I don't remember how it was done or where it was done and I can't seem to 
google this problem right.  Anyone heard of 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d3f9d314-9d56-4313-8dda-ee46fdbc0f9a%40googlegroups.com.


Re: [tw5] Re: Automatic prefix tiddler titles

2019-06-23 Thread David Allen
I *think* I figured out a way for it to work either way.  It requires using 
something like tobibeer's eval plugin or another plugin that lets you do 
mathematical operations in a filter.  I'm using tobibeer's eval for my 
example.

First make a list of your tags.  Within that list widget, do the following:

1) Use a set widget to get a count of the tiddlers with that tag and store 
it in a variable

2) Use a list widget that uses the range[] list operator to generate a 
range of numbers, making sure you use the variable from step 1 as the 
argument for the range[] operator

3) Use a set widget to contain a modified index number.  We'll modify this 
number by adding 1000 to the number generated by the range[] operator.  
Then we'll remove the 1 prefix from the result.  This is what should happen:

1 ---> 1001 ---> 001
  37 ---> 1037 ---> 037
837 ---> 1837 ---> 837

4) Next, use either a set or list widget with a filter that gets all of 
your tiddlers with the specified tag, then use the nth[] operator with the 
value we got from the range[] operator in step 2 (not the one we got from 
step 3, idk if it will work).  That should get you the corresponding item.

I can't guarantee this will work as I don't have a comparable set of 
tiddlers to work with to test this.

On Sunday, June 23, 2019 at 12:26:03 AM UTC-5, Andrei Teodorescu wrote:
>
> Hi,
>
> After hitting a button will be great but it has to take into consideration 
> that incrementin should be based per tag - nextvalue might be different per 
> each application tag (e.g. 5 articles with tagA, next one will be 006 - 
> ..., 2 articles with tagB, next one will be 003).
>
> Regards,
> Andrei
>
> On Sun, 23 Jun 2019, 8:09 am David Allen,  > wrote:
>
>> Will this list be displayed/generated after hitting a button or when the 
>> tiddlywiki loads?  I ask because I think I know how to do the first one but 
>> not the second one
>>
>> On Saturday, June 22, 2019 at 3:51:51 PM UTC-5, Andrei Teodorescu wrote:
>>>
>>> Hi,
>>>
>>> We just started customizing tiddlywiki in a team of 6 and we have the 
>>> following knowledge management scenario:
>>> - we are creating a knowledge base for several applications (each having 
>>> its own tag)
>>> - for each application, there will be one tiddler in the Table of 
>>> Contents containing all tiddlers with its specific application tag
>>> We would like to have a list for each tag, with number prefix of 3 
>>> digits for each tiddler. 
>>>
>>> How can we achieve this?
>>>
>>> E.g.
>>> How to cleanup logs --> 001 How to cleanup logs
>>> How to build an index --> 002 How to build an index
>>> Error 504 received while login --> 003 Error 504 received while login
>>>
>>> Regards,
>>> Andrei
>>>
>> -- 
>> 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 tiddl...@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/a261229f-b292-4a11-999f-cc4e810a0547%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/a261229f-b292-4a11-999f-cc4e810a0547%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> 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/e377faf4-b88d-4552-bd3e-cada464fdc61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Automatic prefix tiddler titles

2019-06-22 Thread David Allen
Will this list be displayed/generated after hitting a button or when the 
tiddlywiki loads?  I ask because I think I know how to do the first one but 
not the second one

On Saturday, June 22, 2019 at 3:51:51 PM UTC-5, Andrei Teodorescu wrote:
>
> Hi,
>
> We just started customizing tiddlywiki in a team of 6 and we have the 
> following knowledge management scenario:
> - we are creating a knowledge base for several applications (each having 
> its own tag)
> - for each application, there will be one tiddler in the Table of Contents 
> containing all tiddlers with its specific application tag
> We would like to have a list for each tag, with number prefix of 3 digits 
> for each tiddler. 
>
> How can we achieve this?
>
> E.g.
> How to cleanup logs --> 001 How to cleanup logs
> How to build an index --> 002 How to build an index
> Error 504 received while login --> 003 Error 504 received while login
>
> Regards,
> Andrei
>

-- 
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/a261229f-b292-4a11-999f-cc4e810a0547%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Reveal widget and wikitext tables

2019-06-22 Thread David Allen
I've recently discovered that the wikitext tables (defined using vertical 
bars) are awesome, but I'm having an issue.  I want two rows of a table to 
appear only when a check box is checked.  This is what I'm doing (the 
macros are simply an edit-text and a select widget, it just makes the code 
cleaner):

<$reveal state="ScratchPad!same_address" state="nomatch" text="yes">
|Address: | <>|
|City: | <>|


The problem with this is the content of the reveal widget displays as a 
separate table, where I want these two lines to be part of the original 
table.  I'd rather not have to encompass all four cells in separate reveal 
widgets if I don't have to.  Does anyone know if there is a decent way to 
do this using the vertical bar tables?

-- 
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/d3251d03-b768-4eaa-8107-b544292ec05b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Filter to get tiddlers whose numerical field value is within a range

2019-05-26 Thread David Allen
The wiki I'm working with is designed to help me go through the archives of 
Tumblr pages I follow.  Each tumblr is represented by a tiddler tagged 
"tumblr", and each has fields called 'month' and 'year', to keep track of 
my place in a tumblr's archive.  What I'm trying to do is get a selection 
of tiddlers whose current progress date (using the 'month' and 'year' 
fields) is within three months of the current date.

One possible way of simplifying the process of getting this value is to 
calculate a 'total_months' value, based on the 'month' and 'year' fields.  
The problem is trying to use this value in a filter where my tiddlers have 
'year' and 'month' fields instead of a 'total_months' field.

*I am not looking for when the tiddler was last modified.* I know how to 
use this already so please don't suggest it.

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


Re: [tw5] Re: [TW5] Edit Tiddly Wiki files straight on Google Drive

2018-05-03 Thread David Allen
It might not be just you, but it's working fine for me.

On Thu, May 3, 2018 at 2:40 PM, Alfonso Arciniega <aaac1...@gmail.com>
wrote:

> After some time, I tried out Tiddly Drive today. Tried it once before and
> it was fine the first time. Now it does not work anymore. Chrome latest
> version on Windows 7. Would it be just me?
>
> Cheers,
>
> Alfonso
>
> --
> 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/7pNJizR57e8/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/a4479425-3ec2-4783-8eed-36027dd460f7%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/a4479425-3ec2-4783-8eed-36027dd460f7%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLiTDs6gnYSfJkmkJ8whB3o6A4vr2ZFZe%3DRi9qS708hJUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] rest[0] problem

2018-03-23 Thread David Allen
I have about five hundred tiddlers that all display a decently-sized 
image.  To reduce the impact on my machine, I've implemented a slider 
system that keeps track of a slider index using two simple buttons, then 
displays a list of five items starting at the slider index.

Filter code is as follows: 
"[tag[alien]!prefix[Template]sort[]rest{!!scroll_index}limit[5]]"

When the scroll_index field is supposed to start at zero and increment or 
decrement by five according to the button I press.

*rest[0] and rest[1] have the same output. * Is this a bug or by design?

-- 
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/72ba456a-c337-4f45-86c4-81671bf9ae3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Image storage suggestions

2018-01-26 Thread David Allen
I've done this two ways now and neither worked.

The first is using an  tag, as follows: 

The second is with a tiddler, whose content type is set to jpg, with a
_canonical_uri field with the following: "blah.jpg"

In both instances, I can retrieve the file on my windows computer, but not
on chrome.  Both the tiddlywiki file and the blah file are being synced
using google drive.

On Sun, Jan 21, 2018 at 11:31 AM, 'Mark S.' via TiddlyWiki <
tiddlywiki@googlegroups.com> wrote:

> As they say in school, "Show your work." It would really be helpful to see
> how you are referring to your image.
>
> Oh, and be sure that you can view the image in a separate browser tab. If
> you can't view it in a tab, then you can't view it in TW either. Possible
> problems include user rights, corrupted files, wrong extension, or (maybe)
> non-latin character names.
>
> Good luck
> -- Mark
>
> On Sunday, January 21, 2018 at 8:45:48 AM UTC-8, David Allen wrote:
>>
>> This is what I had before and it did not work on my chromebook.
>>
>>
>> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=icon>
>>  Virus-free.
>> www.avast.com
>> <https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=link>
>> <#m_203566251867227416_CALaYjLgM5FEQCSwT9Gkf2Hb-kOcDd3Gv61ex94TVS0Mwd7mU=w@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> On Sun, Jan 21, 2018 at 8:36 AM, 'Mark S.' via TiddlyWiki <
>> tiddl...@googlegroups.com> wrote:
>>
>>> If the image is in the same directory as the TW, all the img src
>>> attribute (or the _canonical_uri field) should need is the image name (no
>>> path).
>>>
>>> -- Mark
>>>
>>> On Sunday, January 21, 2018 at 3:56:45 AM UTC-8, @TiddlyTweeter wrote:
>>>>
>>>>
>>>> Mark S. wrote:Re #2 -- can you show an example of the paths you're
>>>>> using? If you use a relative path name they should work the same on all
>>>>> platforms.
>>>>>
>>>>
>>>> IMO image linking in TW needs its documentation improving and
>>>> clarifying. Issues with it come up again and again.
>>>>
>>>> Its NOT from lack of methods to do it. If anything TWs image methods
>>>> are liberating, NOT restrictive.
>>>>
>>>> I do think that the footpath gets sometimes fouled by users being more
>>>> concerned with cheap image hosting than how TW works.
>>>>
>>>> Issues get blurred and we often having discussions that confuse final
>>>> outcome with methods.
>>>>
>>>> Best wishes
>>>> Josiah
>>>>
>>>> --
>>> 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/to
>>> pic/tiddlywiki/ZFvg5ssm294/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/ms
>>> gid/tiddlywiki/1a4f6996-e0ff-477b-a0f8-84266ccb5340%40googlegroups.com
>>> <https://groups.google.com/d/msgid/tiddlywiki/1a4f6996-e0ff-477b-a0f8-84266ccb5340%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> David Allen
>>
> --
> 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/ZFvg5ssm294/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/c0cd909e-3e8a-495f-a7a9-14de694ea609%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/c0cd909e-3e8a-495f-a7a9-14de694ea609%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLiGo75%3Dxvkm9rJ-BG_J%3DMyLW5CLUe0d_8b9_ZuJoZMZ5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Image storage suggestions

2018-01-21 Thread David Allen
This is what I had before and it did not work on my chromebook.

<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sun, Jan 21, 2018 at 8:36 AM, 'Mark S.' via TiddlyWiki <
tiddlywiki@googlegroups.com> wrote:

> If the image is in the same directory as the TW, all the img src attribute
> (or the _canonical_uri field) should need is the image name (no path).
>
> -- Mark
>
> On Sunday, January 21, 2018 at 3:56:45 AM UTC-8, @TiddlyTweeter wrote:
>>
>>
>> Mark S. wrote:Re #2 -- can you show an example of the paths you're
>>> using? If you use a relative path name they should work the same on all
>>> platforms.
>>>
>>
>> IMO image linking in TW needs its documentation improving and clarifying.
>> Issues with it come up again and again.
>>
>> Its NOT from lack of methods to do it. If anything TWs image methods are
>> liberating, NOT restrictive.
>>
>> I do think that the footpath gets sometimes fouled by users being more
>> concerned with cheap image hosting than how TW works.
>>
>> Issues get blurred and we often having discussions that confuse final
>> outcome with methods.
>>
>> Best wishes
>> Josiah
>>
>> --
> 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/ZFvg5ssm294/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/1a4f6996-e0ff-477b-a0f8-84266ccb5340%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/1a4f6996-e0ff-477b-a0f8-84266ccb5340%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLgM5FEQCSwT9Gkf2Hb-kOcDd3Gv61ex94TVS0Mwd7mU%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Image storage suggestions

2018-01-18 Thread David Allen
Hey all!  I've got an image-heavy wiki and I'm trying to figure out how 
best to include these images.

I've tried the following:

   - Imported directly into the wiki.  This makes the wiki impossible to 
   load on my chromebook.
   - External to the wiki in the same directory: Keeps the images private 
   but does not work between Windows and Chromebook.
   - Online image hosting: I'm using Google Photos, but the URL for the 
   images changes occasionally, making it difficult to use

Does anyone have any reliable solution that would be cross-platform and 
preferably private?

-- 
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/c6dc8d21-afed-4727-9d17-c8472b35c210%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Button and Filter Inefficiencies

2017-12-25 Thread David Allen
So I figured out a way to get this to work.

/define some_macro()
<>
<$set . >
<$action-setfield .>
/end

<$button actions=<> to="destination" class="blah">
Button Title

By shoving the costly set code into a macro, I prevented it from being 
rendered until the button is actually clicked.  So much faster now!


On Sunday, December 24, 2017 at 11:18:00 PM UTC-6, David Allen wrote:
>
> Hey everyone!  I have buttons that, when clicked, set a field in a tiddler 
> using a filter that sorts through six thousand tiddlers.  The buttons 
> responsible for this are slowing down my wiki considerably.
>
> Here's the code for the buttons I use
> <$button to="Good Tumblr" class="tab_button">Good
> <>
>
> <$set name="goods" filter="[tag[tumblr]!year{Sandbox_Retrieve!!year}] 
> [tag[tumblr]year{Sandbox_Retrieve!!year}!month{Sandbox_Retrieve!!month}]+[category[good]!prefix[Template]sort[modified]!has[format]!has[improve]limit[5]]">
>
> <$action-setfield $tiddler="Sandbox_Retrieve" $field="goods" 
> $value=<> />
>
> 
>
> 
>
>
>
>
> I have some pages that have several of these buttons on a page at one 
> time, and these slow the wiki more than others.  Can anyone tell me if 
> there's something I can do to speed up my wiki? Thanks!
>

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


[tw] Re: Button and Filter Inefficiencies

2017-12-25 Thread David Allen
That's helped to a degree, but I'm wondering if I could modify the code 
somehow to prevent the filter from being evaluated until the button is 
pressed?

On Sunday, December 24, 2017 at 11:18:00 PM UTC-6, David Allen wrote:
>
> Hey everyone!  I have buttons that, when clicked, set a field in a tiddler 
> using a filter that sorts through six thousand tiddlers.  The buttons 
> responsible for this are slowing down my wiki considerably.
>
> Here's the code for the buttons I use
> <$button to="Good Tumblr" class="tab_button">Good
> <>
>
> <$set name="goods" filter="[tag[tumblr]!year{Sandbox_Retrieve!!year}] 
> [tag[tumblr]year{Sandbox_Retrieve!!year}!month{Sandbox_Retrieve!!month}]+[category[good]!prefix[Template]sort[modified]!has[format]!has[improve]limit[5]]">
>
> <$action-setfield $tiddler="Sandbox_Retrieve" $field="goods" 
> $value=<> />
>
> 
>
> 
>
>
>
>
> I have some pages that have several of these buttons on a page at one 
> time, and these slow the wiki more than others.  Can anyone tell me if 
> there's something I can do to speed up my wiki? Thanks!
>

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


[tw] Re: Button and Filter Inefficiencies

2017-12-25 Thread David Allen
So here's what I've tried so far:

<$select tiddler="Sandbox_Retrieve" field="current_mode">
add
good
bad
new
reverse


<$reveal state={{!!Sandbox_Retrieve!!current_mode}} type="match" 
text="good">
<$button to="Good Tumblr" class="tab_button">Good
<>

<$set name="goods" filter="[tag[tumblr]!year{Sandbox_Retrieve!!year}] 
[tag[tumblr]year{Sandbox_Retrieve!!year}!month{Sandbox_Retrieve!!month}]+[category[good]!prefix[Template]sort[modified]!has[format]!has[improve]limit[5]]">

<$action-setfield $tiddler="Sandbox_Retrieve" $field="goods" 
$value=<> />





For whatever reason this isn't working.  I think I've got something wrong 
with the reveal widget but I'm not sure what.


On Sunday, December 24, 2017 at 11:18:00 PM UTC-6, David Allen wrote:
>
> Hey everyone!  I have buttons that, when clicked, set a field in a tiddler 
> using a filter that sorts through six thousand tiddlers.  The buttons 
> responsible for this are slowing down my wiki considerably.
>
> Here's the code for the buttons I use
> <$button to="Good Tumblr" class="tab_button">Good
> <>
>
> <$set name="goods" filter="[tag[tumblr]!year{Sandbox_Retrieve!!year}] 
> [tag[tumblr]year{Sandbox_Retrieve!!year}!month{Sandbox_Retrieve!!month}]+[category[good]!prefix[Template]sort[modified]!has[format]!has[improve]limit[5]]">
>
> <$action-setfield $tiddler="Sandbox_Retrieve" $field="goods" 
> $value=<> />
>
> 
>
> 
>
>
>
>
> I have some pages that have several of these buttons on a page at one 
> time, and these slow the wiki more than others.  Can anyone tell me if 
> there's something I can do to speed up my wiki? Thanks!
>

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


[tw] Re: [TW5] Edit Tiddly Wiki files straight on Google Drive

2017-12-15 Thread David Allen
I seem to be having trouble using this.  I can't save on Opera.

On Saturday, October 21, 2017 at 10:35:10 AM UTC-5, Joshua Stubbs wrote:
>
> Hi, all.
>
> I made an app that lets one edit TiddlyWiki files saved in your Google 
> drive and then saving them back automagically. The page is here 
> https://chrome.google.com/webstore/detail/tiddly-drive/oaphhjhbbabdjnpjpiliepphpmnioolo
>  
> but I think you need to add it from the Google Drive web interface.
>
> I even added an optional ability to save with ctrl + s hotkeys.
>
> I hope you all find it useful. It's open source so all feedback and 
> contributions are welcome. I still have to set up some contribution 
> guidelines but we'll get there!
>
> Kind regards. Joshua.
>
>

-- 
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/98f85226-6ae7-4540-83e8-911c514c5b34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Transclusion Confusion

2017-11-09 Thread David Allen
I'm having some trouble with multiple transclusions in tiddlywiki causing 
unwanted behavior.

Here's my setup:

I have a number of image tiddlers that are formatted as follows:

Title: Image_Blah_1
Tags: image
Text: 
category: Blah
img_url: theimageurl

I have a second tiddler in which I'm trying to transclude the previous 
image tiddlers as follows:

Title: TemplateModal
Text: <$transclude tiddler={{!!theImage}}/>
theImage: Image_Blah_1
img_url: donotdisplaythis

What's happening is the transclusion of Image_Blah_1 into TemplateModal 
happens before the img_url reference is resolved in Image_Blah_1, so that 
the <$transclude> widget inserts the following into TemplateModal:



Which then becomes



What I'm trying to do is get it to display as the following:



Does anyone know how to get this to work?

-- 
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/97c9fb44-54e6-4c27-8638-686f8bda2a5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Apply link label and redirection based on input

2017-07-15 Thread David Allen
That seems to have worked, thanks

On Saturday, July 15, 2017 at 5:41:51 PM UTC-5, Eric Shulman wrote:
>
> On Saturday, July 15, 2017 at 3:11:38 PM UTC-7, David Allen wrote:
>>
>> Here's what's strange about this.  If the tiddler fetched by 
>> listed[redirect] has a space in it, the <$list> widget uses it just fine, 
>> but the <$set> widget adds double square brackets around the title.  I've 
>> been unable to find a reliable way to strip the double brackets, and it 
>> makes the process of applying a label to a link impossible.
>>
> I've tried using Tobias's setvars widget, same results as the set widget.
>> If anyone knows of some way to fix this, please let me know!
>>
>
> if you pass your result through the <$wikify> widget, it will render the 
> "plain text" of the link, without any surrounding brackets.  Something like 
> this:
>
> <$wikify name="moose" text=<>>
><$link to=<> >
>   <$macrocall $name="get_clean" input=<>/>
>
>  
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools.com: "Small Tools for Big Ideas" (tm)
> InsideTiddlyWiki: The Missing Manuals
>

-- 
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/e4460ad5-93ca-453c-816a-b6710a6ea1bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Apply link label and redirection based on input

2017-07-15 Thread David Allen
I'm trying to create a macro that will format links based on an input 
string.  The label for the link, as well as its target, may or may not be 
different from the input string itself.

This is my current attempt at such a macro:
\define current_assign(name, target)
<$list 
filter="[tag[info_assignment]name[$name$]sort[begin]last[]get[$target$]]">
<$list filter="[listed[redirect]]" 
emptyMessage="<>" variable="moose">
<$link to=<> >
<$macrocall $name="get_clean" input=<>/>



\end

\define get_clean(input)
{{Dict_Clean!!$input$}}
\end

Works fine if I want to redirect the link and apply a new label, but if I 
don't want to do one of those, or neither, this solution doesn't work.

I figured that the redirection problem was due to emptyMessage containing 
only <>, so I tried changing the second list widget to a 
set widget, as follows:

\define current_assign(name, target)
<$list 
filter="[tag[info_assignment]name[$name$]sort[begin]last[]get[$target$]]">
<$set name="moose" filter="[listed[redirect]]" 
emptyValue="<>">
<$link to=<> >
<$macrocall $name="get_clean" input=<>/>



\end

Here's what's strange about this.  If the tiddler fetched by 
listed[redirect] has a space in it, the <$list> widget uses it just fine, 
but the <$set> widget adds double square brackets around the title.  I've 
been unable to find a reliable way to strip the double brackets, and it 
makes the process of applying a label to a link impossible.

I've tried using Tobias's setvars widget, same results as the set widget.

If anyone knows of some way to fix this, please let me know!

-- 
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/ec133d9d-8700-4c54-834b-a46569874265%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: image-picker subfilter is not working

2017-07-15 Thread David Allen
Thanks!

Also, do you know if there's a way to remove the "Include System Tiddlers" 
checkbox?

On Saturday, July 15, 2017 at 10:37:21 AM UTC-5, Mark S. wrote:
>
> It looks like the image picker code was changed, and the subfilter option 
> was dropped without a corresponding change in the documentation. I imagine 
> this was by accident. There's no subfilter, but there's a filter option. 
> For the filter option you'll need to roll your own long filter. For 
> instance, this does what you want to limit the image by prefix:
>
> filter="[all[shadows+tiddlers]is[image]prefix[Image_A]!has[draft.of]] 
> -[type[application/pdf]] +[sort[title]]"
>
>
> Meanwhile, I've made an issue report 
> #2939
>
>
> Have fun,
>
> Mark
>
> On Saturday, July 15, 2017 at 8:03:27 AM UTC-7, David Allen wrote:
>>
>> No, they do not all have category fields.  This problem persists even 
>> with something as simple as the prefix filter.
>>
>> I've attached a wiki that is demonstrating the problem.
>>
>> On Saturday, July 15, 2017 at 2:13:48 AM UTC-5, David Allen wrote:
>>>
>>> For some reason, I can't seem to get the subfilter parameter of the 
>>> image-picker macro to work.
>>>
>>> Here's my code:
>>>
>>> <$set name=fish filter="[title{!!theImage}get[category]first[]]">
>>> 
>>>
>>> <>
>>>
>>> <$image class="modal_image" source={{!!theImage}}/>
>>>
>>>
>>> 
>>> <$macrocall $name='image-picker' actions="
>>> <$action-setfield $field=theImage $value=<>/>
>>> " subfilter="has[category]"/>
>>> 
>>>
>>> The thing with the variable fish is something I'll mess with later.
>>>
>>> Right now, I should only be seeing three images in the image picker, but 
>>> I'm seeing all of them.  I'm fairly certain I'm using the image-picker 
>>> macro as shown in the tiddlywiki site, I'm just not sure what I'm doing 
>>> wrong.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To 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/738d67bb-a6ef-426c-9e94-cb8ffdfddc0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] image-picker subfilter is not working

2017-07-15 Thread David Allen
For some reason, I can't seem to get the subfilter parameter of the 
image-picker macro to work.

Here's my code:

<$set name=fish filter="[title{!!theImage}get[category]first[]]">


<>

<$image class="modal_image" source={{!!theImage}}/>



<$macrocall $name='image-picker' actions="
<$action-setfield $field=theImage $value=<>/>
" subfilter="has[category]"/>


The thing with the variable fish is something I'll mess with later.

Right now, I should only be seeing three images in the image picker, but 
I'm seeing all of them.  I'm fairly certain I'm using the image-picker 
macro as shown in the tiddlywiki site, I'm just not sure what I'm doing 
wrong.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To 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/2fbe9f92-dfd9-4486-a8f6-5e379cae006c%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: Moving all instances of specific macro into a field

2017-05-16 Thread David Allen
The problem I'm having with that (as well as the built-in splitbefore) is 
in both instances, if the text contains any spaces, the block of text I 
wanted isolated is surrounded in double square brackets, which I do not 
want.  How would I fix this?

On Monday, May 15, 2017 at 1:20:00 AM UTC-5, Mat wrote:
>
> Should be doable.A good start is to check out Grand TWizard Tobias Beer's 
> split 
> filter operator . 
>
> The overall strategy could perhaps be something like
>
> make a button
> with some list filter inside it to...
> ...get the text (the "get" filter operator) and
> ...split out the macrocall(s) and save them as variables
> ...but also save the remainder of the text which is sent into the list 
> filter again
> and use setfield widgets for the relocation
>
> <:-)
>

-- 
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/b8924ae1-5045-49ea-bc2e-1d5338d05738%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Moving all instances of specific macro into a field

2017-05-14 Thread David Allen
Here's what I'm wanting to do:

   1. Find all tiddlers that contain a specific macro call in their main 
   body
   2. Isolate the text of the macro call
   3. Copy the macro call text into a new field
   4. Replace the text of the macro call with a reference to the new field

Steps 1 and 3 seem easy enough, but I'm not sure how to approach 2 and 4.

An example of what I want to do:

*Title: Whatever*
*Tags: Whatever*
*Text:*

*<>*

*other text in the main body*

*Fields: None*

The above should become the below:

*Title: Whatever*
*Tags: Whatever*
*Text:*

*{{!!image}}*

*other text in the main body*

*Fields:*
*image: <>*

-- 
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/9551551d-94e4-44ce-b702-966e98fb7d92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Fallback Image File Extensions

2016-03-08 Thread David Allen
More basic version of the problem: Is there some way I can use a fallback
image if the source for an external image is missing?

On Sun, Mar 6, 2016 at 12:56 AM, David Allen <dvainwebbc...@gmail.com>
wrote:

> Well, I thought that worked.  It's now causing a different problem.
>
> I have individual image tiddlers that contain an  tag, pointing to an
> external image and specifying a CSS class.  I then have a series of macros
> that transclude said tiddler within divs that are modified by other CSS
> classes.  Since I wanted the image tiddler to show an image without knowing
> its file extension, I did the following to make an image fallback:
>
> Example Image Tiddler:
> 
> 
> 
> 
> 
>
> I have the following macros that I use with the image tiddler:
>
> \define single_image(target_image)
> 
> <>
> 
> \end
>
> \define basic_image(target_image)
> <$button message="tm-modal" param="$target_image$" class="button_image">
> 
> {{$target_image$}}
> 
> 
> \end
>
> I use the following CSS styles:
>
> .basic_image {
> min-width: 150px;
> }
>
> html .image_container {
> background: #44;
> border-radius: 5px;
> padding: 5px;
> }
>
> .button_image{
> padding: 0px;
> margin: 0px;
> background-color: #44;
> border: none;
> }
>
> .single_image {
> float:right;
> width: 150px;
> margin: 5px;
> }
>
> If both of the object tags are pointing to non-existent files but the
> image tag is pointing to an existent one, this is the result:
>
> https://goo.gl/photos/nyvmxDc2zEaX9sov8
>
> However, if one of the object tags is pointing to an existent file, this
> is the result:
>
> https://goo.gl/photos/bUamzuVp4sAkAYpa8
>
> The first situation is the intended result.  It looks like the 
> tag isn't inheriting the width of the div with the single_image class, and
> I'm not sure how to rectify this problem.
>
>
> On Sat, Mar 5, 2016 at 11:43 PM, David Allen <dvainwebbc...@gmail.com>
> wrote:
>
>> Nevermind, solved it using HTML like this:
>>
>> 
>> 
>> 
>>
>> On Sat, Mar 5, 2016 at 9:57 PM, David Allen <dvainwebbc...@gmail.com>
>> wrote:
>>
>>> I have multiple images that I'm using that are of various types, and I'd
>>> like to create a macro that can easily create the image code I need without
>>> having to switch over to my containing folder and find the image
>>> individually (I use TiddlyDesktop).  Is there some way I can determine if a
>>> file exists from TiddlyWiki before I try to use it as an image's path?
>>>
>>> For example, I wanna generate the following:
>>>
>>> 
>>>
>>> I can generate the line as-is with a macro easily, but I'd like the
>>> macro to change the extension of the filename if the file doesn't exist.
>>> That way, all I have to type is <> and it will
>>> generate the first  line if a file called Race_Vulcan.jpg exists, or
>>> fall back to Race_Vulcan.png, .bmp. etc if it does not.
>>>
>>> --
>>> 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/5CzIAf9hJI4/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/b43ef77e-18ed-49fd-ba69-6fa616178fc0%40googlegroups.com
>>> <https://groups.google.com/d/msgid/tiddlywiki/b43ef77e-18ed-49fd-ba69-6fa616178fc0%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> David Allen
>>
>
>
>
> --
> David Allen
>



-- 
David Allen

-- 
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/CALaYjLgJqER%2BWVbD8qFOCJaLbR4Ab4HEJiT%2BTd7hgEFJy7EZsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Fallback Image File Extensions

2016-03-05 Thread David Allen
Well, I thought that worked.  It's now causing a different problem.

I have individual image tiddlers that contain an  tag, pointing to an
external image and specifying a CSS class.  I then have a series of macros
that transclude said tiddler within divs that are modified by other CSS
classes.  Since I wanted the image tiddler to show an image without knowing
its file extension, I did the following to make an image fallback:

Example Image Tiddler:






I have the following macros that I use with the image tiddler:

\define single_image(target_image)

<>

\end

\define basic_image(target_image)
<$button message="tm-modal" param="$target_image$" class="button_image">

{{$target_image$}}


\end

I use the following CSS styles:

.basic_image {
min-width: 150px;
}

html .image_container {
background: #44;
border-radius: 5px;
padding: 5px;
}

.button_image{
padding: 0px;
margin: 0px;
background-color: #44;
border: none;
}

.single_image {
float:right;
width: 150px;
margin: 5px;
}

If both of the object tags are pointing to non-existent files but the image
tag is pointing to an existent one, this is the result:

https://goo.gl/photos/nyvmxDc2zEaX9sov8

However, if one of the object tags is pointing to an existent file, this is
the result:

https://goo.gl/photos/bUamzuVp4sAkAYpa8

The first situation is the intended result.  It looks like the  tag
isn't inheriting the width of the div with the single_image class, and I'm
not sure how to rectify this problem.


On Sat, Mar 5, 2016 at 11:43 PM, David Allen <dvainwebbc...@gmail.com>
wrote:

> Nevermind, solved it using HTML like this:
>
> 
> 
> 
>
> On Sat, Mar 5, 2016 at 9:57 PM, David Allen <dvainwebbc...@gmail.com>
> wrote:
>
>> I have multiple images that I'm using that are of various types, and I'd
>> like to create a macro that can easily create the image code I need without
>> having to switch over to my containing folder and find the image
>> individually (I use TiddlyDesktop).  Is there some way I can determine if a
>> file exists from TiddlyWiki before I try to use it as an image's path?
>>
>> For example, I wanna generate the following:
>>
>> 
>>
>> I can generate the line as-is with a macro easily, but I'd like the macro
>> to change the extension of the filename if the file doesn't exist.  That
>> way, all I have to type is <> and it will generate
>> the first  line if a file called Race_Vulcan.jpg exists, or fall back
>> to Race_Vulcan.png, .bmp. etc if it does not.
>>
>> --
>> 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/5CzIAf9hJI4/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/b43ef77e-18ed-49fd-ba69-6fa616178fc0%40googlegroups.com
>> <https://groups.google.com/d/msgid/tiddlywiki/b43ef77e-18ed-49fd-ba69-6fa616178fc0%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Allen
>



-- 
David Allen

-- 
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/CALaYjLj1OFZJ9fOLG_FG5chyo-VvfpKzeTtiGepqhjgtMB%3DJXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Fallback Image File Extensions

2016-03-05 Thread David Allen
Nevermind, solved it using HTML like this:





On Sat, Mar 5, 2016 at 9:57 PM, David Allen <dvainwebbc...@gmail.com> wrote:

> I have multiple images that I'm using that are of various types, and I'd
> like to create a macro that can easily create the image code I need without
> having to switch over to my containing folder and find the image
> individually (I use TiddlyDesktop).  Is there some way I can determine if a
> file exists from TiddlyWiki before I try to use it as an image's path?
>
> For example, I wanna generate the following:
>
> 
>
> I can generate the line as-is with a macro easily, but I'd like the macro
> to change the extension of the filename if the file doesn't exist.  That
> way, all I have to type is <> and it will generate
> the first  line if a file called Race_Vulcan.jpg exists, or fall back
> to Race_Vulcan.png, .bmp. etc if it does not.
>
> --
> 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/5CzIAf9hJI4/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/b43ef77e-18ed-49fd-ba69-6fa616178fc0%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/b43ef77e-18ed-49fd-ba69-6fa616178fc0%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLg66k4DgFPTpKR5ziV_J0a0T04PnjsSsQeMy-V-637d4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Fallback Image File Extensions

2016-03-05 Thread David Allen
I have multiple images that I'm using that are of various types, and I'd 
like to create a macro that can easily create the image code I need without 
having to switch over to my containing folder and find the image 
individually (I use TiddlyDesktop).  Is there some way I can determine if a 
file exists from TiddlyWiki before I try to use it as an image's path?

For example, I wanna generate the following:



I can generate the line as-is with a macro easily, but I'd like the macro 
to change the extension of the filename if the file doesn't exist.  That 
way, all I have to type is <> and it will generate 
the first  line if a file called Race_Vulcan.jpg exists, or fall back 
to Race_Vulcan.png, .bmp. etc if it does not.

-- 
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/b43ef77e-18ed-49fd-ba69-6fa616178fc0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] TiddlyDesktop running slow

2016-02-10 Thread David Allen
I don't know if this problem's been solved or not, but occasionally 
TiddlyDesktop is running very slowly on my computer.  Specifically, it lags 
when I try to save a tiddler, however it is not always slow.  I had task 
manager running while using TiddlyWiki when I first opened it and monitored 
its memory allocation as I used TiddlyDesktop and found an odd pattern.  
After saving a tiddler, the memory usage will increase a little, as 
expected when saving a file, but won't drop back down for a while.  When it 
does, it only drops by (on average) 200,000K, and this drop only occurs 
when saving tiddlers.  However, the point at which this drop occurs keeps 
increasing, to where the amount of memory in use after the 200,000 drop 
keeps increasing.  The lower bound of the memory usage after the drops 
occurred started at around 200,000, but is now near 600,000.  It looks to 
me like a memory leak, but I don't know enough about TiddlyDesktop to be 
sure.

-- 
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/b5709c06-0af8-4361-bc12-6c04bdae9d3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Passing a value with spaces into a macro

2016-02-05 Thread David Allen
That worked for that situation, but now isn't working for another.  When I
pass a text reference, say {{!!faction}}, it links to a tiddler called
{{!!faction}}, instead of a tiddler whose title matches the faction field.
<https://www.avast.com/sig-email> This email has been sent from a
virus-free computer protected by Avast.
www.avast.com <https://www.avast.com/sig-email>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Thu, Feb 4, 2016 at 7:34 PM, Eric Shulman <elsdes...@gmail.com> wrote:

> On Thursday, February 4, 2016 at 2:58:35 PM UTC-8, David Allen wrote:
>>
>> Actually, let me correct that.  What I showed is actually working fine.
>> What's not working is when I try to pass a variable created by a list
>> widget into a macro when the tiddler stored in currentTiddler contains
>> spaces in its title.  I'm doing the following:
>>
>> <$macrocall $name="ezlink" input=<>/>
>>
>> \define ezlink(input)
>>> <$link to=$input$>$input$
>>> \end
>>>
>>
> summary:
>you need to add quotes around $input$ when used as a parameter in a
> widget...
> details:
>
> In the $macrocall, you correctly set input=<> ... where
> the <<...>> syntax retrieves the value from the variable.  However, when
> the macro is invoked, any embedded variables (e.g., $input$) are replaced
> by the corresponding value passed to the macro.  Thus, in your macro, if
> value of the input param is FOO, then the macro output is
> <$link to=FOO>FOO
>
> In contrast, if the input value is FOO BAR, then the macro output is
> <$link to=FOO BAR>FOO BAR
>
> Notice that, although the *text* of the link is FOO BAR, the parameter in
> the $link widget only recognizes the value FOO (i.e., up to the first
> space).  The remainder of the value is simply treated as another widget
> param -- one that is badly formed, as it doesn't follow the name="value"
> (or name=<>... or name={{reference}}) syntax.
>
> As noted above, the fix is to add quotes when assembling the $link widget
> params, like this:
> <$link to="""$input$""">$input$
>
> This ensures that the resulting output encloses the parameter so it is
> treated as a single value that contains quotes, rather than two separate
> params; i.e.,
> <$link to="""FOO BAR""">FOO BAR
>
> Note that I've used the *tripled* quotes syntax around the param value (a
> TW5 extension to the HTML syntax).  This ensures that if the param value
> contains a regular quote ("), it won't be treated as the ending delimiter
> for the value.  i.e., the following syntax:
> <$link to="$input$">$input$
>
> would result in an invalid result when passed FOO"BAR:
> <$link to="FOO"BAR">FOO"BAR
>
> Notice how the embedded quote following FOO *ends* the parameter value,
> leaving BAR" as invalid junk, but when triple-quoting, the result would be
> <$link to="""FOO"BAR""">FOO"BAR
>
> which allows the TW5 core to treat the embedded quote as just a regular
> character.  QED.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools  / ELS Design Studios
> InsideTiddlyWiki: The Missing Manuals
>
> --
> 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/5xeFXiAMVZE/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/7120e4ff-2be2-42c0-b04c-a0a8b78d8783%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/7120e4ff-2be2-42c0-b04c-a0a8b78d8783%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLhMeBAvUQec0sCfXxJoPgbX0EQ9z_1HDazBO9jyWyfBCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Passing a value with spaces into a macro

2016-02-04 Thread David Allen
This is an issue I seem to be having a lot, so I'm trying to find a 
solution.
I have the following macro:

\define ezlink(input)
<$link to=$input$>$input$
\end

If I were to do this:

<>

and the tiddler it's used in has spaces in the title, (e.g. Hello World), 
the result would be a link to the tiddler Hello, using the text Hello World.

Anyone know what's going on with this or how to fix it so the ezlink macro 
goes to Hello World instead of just Hello?

-- 
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/ee526984-f4ab-4a6e-ad69-610d5133d22a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Passing a value with spaces into a macro

2016-02-04 Thread David Allen
Actually, let me correct that.  What I showed is actually working fine.  
What's not working is when I try to pass a variable created by a list 
widget into a macro when the tiddler stored in currentTiddler contains 
spaces in its title.  I'm doing the following:

<$macrocall $name="ezlink" input=<>/>

On Thursday, February 4, 2016 at 4:42:43 PM UTC-6, David Allen wrote:
>
> This is an issue I seem to be having a lot, so I'm trying to find a 
> solution.
> I have the following macro:
>
> \define ezlink(input)
> <$link to=$input$>$input$
> \end
>
> If I were to do this:
>
> <>
>
> and the tiddler it's used in has spaces in the title, (e.g. Hello World), 
> the result would be a link to the tiddler Hello, using the text Hello World.
>
> Anyone know what's going on with this or how to fix it so the ezlink macro 
> goes to Hello World instead of just Hello?
>

-- 
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/3592a464-d622-4b58-8520-9d6f90c438dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Remove tag from a list of tiddlers without listops

2016-01-23 Thread David Allen
The reason I ask for this is because I'm using the desktop application and 
it doesn't seem to have action-listops as a widget and I don't know where 
to go to install said widget.  I'm trying to remove a specific tag from a 
list of tiddlers that have said tag but I don't have listops so I'm not 
sure 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/6e407357-0973-47db-b3e7-d6e901b8ccd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Remove tag from a list of tiddlers without listops

2016-01-23 Thread David Allen
Do I have to update TiddlyDesktop and TiddlyWIki separately? I have
TiddlyDesktop 0.0.8 and it's the most recent version of TiddlyDesktop I can
find
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sat, Jan 23, 2016 at 9:10 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
> The reason I ask for this is because I'm using the desktop application and
>> it doesn't seem to have action-listops as a widget and I don't know where
>> to go to install said widget.  I'm trying to remove a specific tag from a
>> list of tiddlers that have said tag but I don't have listops so I'm not
>> sure how to do this.
>>
>
> Be sure to update TiddlyWiki to 5.1.10.
>
> Best wishes,
>
> Tobias.
>
> --
> 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/cLJ3Ecf_j1E/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/6b44fc81-feba-465d-af6a-3cfcb0ea76cb%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/6b44fc81-feba-465d-af6a-3cfcb0ea76cb%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLi5gGyNEFJ1d-mBTPdaGZgP0PihqYpAAiyU47RvzTF9mw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Sorting a list of tiddlers by the output of a macro contained in a field

2016-01-14 Thread David Allen
Thanks for that.  Worked well once I figured out what you were saying
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Jan 12, 2016 at 1:20 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
>
>> ...let me try to make sense of that.  I have some character tiddlers with
>> a caption field. Said caption field contains a macro call that returns the
>> characters name, albeit rearranged.  I'd like to sort a list of character
>> tiddlers by the rearranged name, a.k.a. the caption field *after* the
>> macro it contains is run.  Is there any way to do this?
>>
>
> I'd think not. What you can do is:
>
>1. create a button that contains a list widget
>2. iterates through all characters
>3. storing a computed name in an actual field
>   - rather than using the macro as the field-value
>
> Best wishes, Tobias.
>
> --
> 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/x9hORQSiIpc/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/d87f94aa-2b88-4f3e-9f77-7b767d13d049%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/d87f94aa-2b88-4f3e-9f77-7b767d13d049%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLijRCYmxQFxwsK_ggFP%3DT2-DXQGq6kYWmg20KtSsiW0hw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Random ordering of tiddlers

2016-01-14 Thread David Allen
 Thanks for the plugin, works great!
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Jan 12, 2016 at 2:31 AM, Alex Hough <r.a.ho...@gmail.com> wrote:

> @Tobias,
>
> I was thinking about random plugin when I read about a comosition aid used
> by David Bowie
>
>
> https://gnoetrydaily.wordpress.com/2010/09/15/other-tools-more-about-verbasizer/
>
> Alex
>
> On 12 January 2016 at 07:25, Tobias Beer <beertob...@gmail.com> wrote:
>
>> Hi David,
>>
>>
>>> Is there a way to take a selection of tiddlers and shuffle them so they
>>> appear to be in a random order?
>>>
>>
>> Take a look at tobibeer/random
>> <http://tobibeer.github.io/tw5-plugins/#random>:
>>
>> http://tobibeer.github.io/tw5-plugins/#random
>>
>> Best wishes,
>>
>> Tobias.
>>
>> --
>> 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/89df1acf-5d63-4735-849a-8241bbda6dd6%40googlegroups.com
>> <https://groups.google.com/d/msgid/tiddlywiki/89df1acf-5d63-4735-849a-8241bbda6dd6%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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/2AbQhgpi7ks/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/CALc1hYeedrwVTy3qymjbtvSUHtJ_6ab4aM%3Dn2v6mVaKTaNOGYQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/tiddlywiki/CALc1hYeedrwVTy3qymjbtvSUHtJ_6ab4aM%3Dn2v6mVaKTaNOGYQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLjesnF1F-aiJszY9XRfY%3DKPx%3D13Nx5-a7QKVouopx2PNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Escape characters in setvars

2016-01-14 Thread David Allen
<$setvars
 _dq='"'
 _nameoutputprefix="<$macrocall $name="
 _nameoutputspecies={{Doff_Species!!species}}
 _nameoutputname={{$:/temp/genericname}}
 _nameoutputsuffix="/>"
 nameone="nameoutputname[1]"
 nametwo="nameoutputname[2]"
 namethree="nameoutputname[3]"
 nameoutputline="nameoutputprefix dq \name_output\ dq \ species=\
nameoutputspecies \ first=\ dq nameone dq \ second=\ dq nametwo dq \
third=\ dq namethree dq nameoutputsuffix">
<>


This builds a macrocall widget that can contain, if needed, both single and
double quotes.  _dq is defined as a double-quote inside single quotes.
nameone, nametwo, and namethree are surrounded with the dq variable to
allow single quotes inside the name if present.  Otherwise, both the macro
widget and the << >> way of calling a macro would not work.
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Jan 12, 2016 at 1:18 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
> Would you mind posting an example to play around with?
>>
>>
> Best wishes,
>
> Tobias.
>
> --
> 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/-Fw2LzCs5MM/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/d8fe290c-fa3a-4dca-b25b-de6537723614%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/d8fe290c-fa3a-4dca-b25b-de6537723614%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLj5w8vMBz5LKfxKVGTJF3dfZdbO1eCWu64gwtmFJQJ%3DFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Name formatting using caption field

2016-01-11 Thread David Allen
I was wondering about the order in which those kinds of things are run.
For example, are widgets evaluated before or after macro calls?  I'm trying
to figure this out so I know what I can use where and in what order
TiddlyWiki will evaluate them.
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, Jan 11, 2016 at 2:42 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
>
>> Out of curiosity, in what order are macros, text references, widgets, etc
>> used?
>>
>
> How do you mean "used"? Used where?
>
> One thing's for sure, you *cannot* have a widget be an attribute to a
> widget.
> So, you can have macros be an attribute to a widget,
> but you *cannot* have a macrocall widget be an attribute to another widget
> and thus dynamically evaluate macro parameters via other variables or
> text-references
> unless your macro actually parses those themselves, e.g.
>
> \define macro:(macro,1,2,3,4,5,6,7,8,9,10) <<$macro$ """$1$""" """$2$"""
> """$3$""" """$4$""" """$5$""" """$6$""" """$7$""" """$8$""" """$9$"""
> """$10$""">>
> \define text:(reference) {{$reference$}}
>
> <>
>
> <>
>
> <>
>
> <>
>
> Macros really are text-substitution patterns,
> the wikification is handled elsewhere
>
>- by some widget(s) it creates
>- or by the widget where a macro is used as an attribute
>
> Also, Javascript or Wikitext macros have different refresh behavior hinted
> at:
>
>- here
><https://github.com/Jermolene/TiddlyWiki5/pull/1379#issuecomment-159906299>
>- and considered here: setvars-Refresh
><http://tobibeer.github.io/tw5-plugins/#setvars-Refresh>
>
> Best wishes,
>
> Tobias.
>
> --
> 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/NwaJdnB_yTU/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/f5ac5407-c51b-4034-a002-b1aca693f70b%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/f5ac5407-c51b-4034-a002-b1aca693f70b%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLig3zEFuzs_%2B9tz-GfbCbjFD5YhPRvC68CS1kaHNcrA%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Escape characters in setvars

2016-01-11 Thread David Allen
Never mind, figured out a work around.  I did _dq='"' (that's one double
quote in two single quotes) and used that where I needed double quotes in
the variables.
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, Jan 11, 2016 at 5:07 PM, David Allen <dvainwebbc...@gmail.com>
wrote:

> So I have a frustrating situation where I'm trying to make a variable
> using setvars but said variable, to work correctly, requires both single
> and double quotes to be contained in the variable.  Is there some way I can
> escape some of the  contained quotation marks to get this working?
>
> --
> 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/-Fw2LzCs5MM/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/4b2b32e3-d041-484c-bfb4-591b1bdf11d4%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/4b2b32e3-d041-484c-bfb4-591b1bdf11d4%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLjx1amO3v9R9360VgRmtRY7p5uh0oi1ZfoDEv3ovwZFBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Random ordering of tiddlers

2016-01-11 Thread David Allen
Is there a way to take a selection of tiddlers and shuffle them so they 
appear to be in a random order?

-- 
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/e95e4322-01c7-47cf-be63-18d71733fe13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Escape characters in setvars

2016-01-11 Thread David Allen
So I have a frustrating situation where I'm trying to make a variable using 
setvars but said variable, to work correctly, requires both single and 
double quotes to be contained in the variable.  Is there some way I can 
escape some of the  contained quotation marks to get this working?

-- 
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/4b2b32e3-d041-484c-bfb4-591b1bdf11d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Sorting a list of tiddlers by the output of a macro contained in a field

2016-01-11 Thread David Allen
...let me try to make sense of that.  I have some character tiddlers with a 
caption field. Said caption field contains a macro call that returns the 
characters name, albeit rearranged.  I'd like to sort a list of character 
tiddlers by the rearranged name, a.k.a. the caption field *after* the macro 
it contains is run.  Is there any way 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/400baf6b-93cc-4601-a4c5-ea76178a087d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Name formatting using caption field

2016-01-10 Thread David Allen
The white space part of the setvars works fine.  Thanks for that tip,
should make it easier to add to later.

Out of curiosity, in what order are macros, text references, widgets, etc
used?  I ask because I'm extremely close to getting a tiddler that can
modify the large number of already-made character tiddlers to add a working
caption field.
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sun, Jan 10, 2016 at 3:54 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
> I'm a quite amazed to find you using *setvars* at that level of
> complexity. *bows down*
> As for long expressions like yours, I'd possibly use plenty line-breaks
> and white-space for readability, e.g.:
>
> \define name_output(species,first,second,third)
> <$setvars
> twothreename="""
>   (\$third$\ ? \$third$, $first$ $second$\) ||
>   \$second$, $first$\
> """
> formatted_name="""
>   (\$species$\ == \Human\ ? twothreename ) ||
>   (\$species$\ == \Bajoran\ ? \$first$ $second$\) ||
>   (\$species$\ == \Garbrini\ ? \$second$, $first$ $third$\) ||
>   \$first$\
> """>
> <>
> 
> \end
>
> Can you test and confirm that the above works? I think it should.
>
> Here are the fields in an example character tiddler:
>>
>> caption: <>
>> species: Human
>>
>
> As for using wikitext in fields. Be mindful that transcluding and reusing
> that at other places, e.g. in macros may have unexpected results in that
> the field value is not wikified before using. So, you're actually passing
> the string <>.
>
> Therefore, I think what you need to do is:
>
> Instead of using wikitext (macros) in fields directly,
> have as many fields as are needed to create the proper output where you
> need it, elsewhere.
> In other words, you should have fields like *name-1st*, *name-2nd*,
> *name-3rd*
> and then have a macro *outside* of your field contents
> that does your desired handling where ever you need it,
> but not as the field value.
>
> Does that make sense?
>
> Best wishes,
>
> Tobias.
>
> --
> 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/NwaJdnB_yTU/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/73772a65-a91b-4112-8795-cfbaa90a0ac6%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/73772a65-a91b-4112-8795-cfbaa90a0ac6%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLjLUF6E0kpv1%3DM7QeiF%3D%3DiEwdV5ALPDCPrEGUA%3DA6XdCw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Temp Tiddlers and Form Updating Question

2016-01-09 Thread David Allen
I have a few forms I'm using that have basic text boxes where you can enter 
a string of text and the form saves the string somewhere.  If I have the 
text box store its contents in a field in the containing tiddler, I have to 
type the string I want to input one character at a time, as any change in 
the fields of the tiddler causes the screen to de-focus from the text box.  
The only workaround I've found so far is to store the string in a temp 
tiddler:

<$edit-text tiddler="$:/temp/genericname" tag="input" default="name"/>

This works fine in most situations.  Here is one where it does not.

I have a form where I can quickly and easily add a tiddler for a character 
(person, not text).  One of the fields in this form is the character's 
name.  What I'm trying to do is make the form show a button that would 
allow me to add the new character tiddler if said tiddler doesn't exist, 
and the string "Already Exists" if it does, but not both at the same time.  
This prevents me from accidentally overwriting an existing character if I 
put a name that's already been used.  It's close to working, but I have a 
major problem.

Let's say I made a character named John Doe using the form, and he didn't 
exist before I used the form.  Let's also say I have a character named Jane 
Doe already made.  At the moment, the form has the name John Doe in its 
name input and, since John Doe didn't exist before-hand, the button 
allowing me to add him is visible.  If I change the name to Jane Doe, the 
button isn't updated and, if pressed, overwrites Jane Doe.

I think the problem is that the form isn't updating the containing tiddler 
when I type a string into the name input.  I say this because the form has 
two selection boxes that modify fields in the containing tiddler, and when 
those are modified, the button updates correctly.

*I think what I need is a way to update a field in the containing tiddler 
using a text box that doesn't require me typing the input 
character-by-character.*  If I can find that, this problem should be fixed.

Here's the relevant code:

Name: <$edit-text tiddler="$:/temp/genericname" tag="input" default="name" 
/>

<$setvars _moo="<

<$set name=thebutton value='
<$button> Add Character
<$action-setfield $tiddler="Template: Generic Character" 
title={{$:/temp/genericname}}/>
<$action-setfield $tiddler={{$:/temp/genericname}} text=<>/>
'>

<$set name=addifsafe 
filter="[prefix{$:/temp/genericname}suffix{$:/temp/genericname}tag[character]]" 
value="Already Exists" emptyValue=<>>

<>






The image field that's used in the setvars widget is set using a selection 
box.  It works fine.
The first set widget sets the value of a variable named thebutton to code 
that makes a button.  This part works fine.
The second set widget that sets addifsafe is the problem.

Doing both prefix and suffix was the only workaround I found to get a 
tiddler with a specific title without returning a link to a missing tiddler 
if said title wasn't found (this is what title[] and putting the tiddler 
name in directly seem to do).  If there's a better way to do this, please 
let me know.

Since the prefix and suffix parameters both use the temp tiddler, rather 
than a field in the containing tiddler, the second set widget doesn't get 
updated when the name text-box does.  This creates the aforementioned 
problem.

Does anyone have any ideas on how to fix 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/8c19ee43-cb44-4a52-b1ba-d15d1b122d7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Temp Tiddlers and Form Updating Question

2016-01-09 Thread David Allen
Didn't need the reveal widgets, but using a list widget instead of a set
widget worked beautifully.  Thanks!
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email_source=link_campaign=sig-email_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sat, Jan 9, 2016 at 3:59 PM, Jed Carty <inmyso...@gmail.com> wrote:

> I have an example in my new post form on my site here
> <http://ooktech.com/jed/externalbrain/#New%20Blog%20Post>.
> You use reveal widgets. It comes up a lot in forms in what I make. The
> general form is like this:
>
> <$edit-text tiddler='$:/temp/Some Tiddler' field='some_field'
> class='tc-edit-texteditor'/>
>
> <$reveal type=match state='$:/temp/Some Tiddler!!some_field' text=''>
> Enter a name first
> 
>
> <$reveal type=nomatch state='$:/temp/Some Tiddler!!some_field' text=''>
> <$list filter='[{$:/temp/Some Tiddler!!some_field}!has[title]]'
> emptyMessage='Already Exists'>
> <>
> 
> 
>
> --
> 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/boSj9Z1h_X0/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/231bf264-e504-4f1a-81e6-dfcc894304f3%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/231bf264-e504-4f1a-81e6-dfcc894304f3%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLgDHy6cLHNJZTjsfG38cEeCvOFLs39H0qzCXv_W7sx4%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Name formatting using caption field

2016-01-09 Thread David Allen
So I've got various different characters of various different species and 
various different ways in which a character's name is displayed.  I'd like 
to format how a character's name is displayed by using the caption field of 
a character tiddler.  I'm using a macro that uses Tobias's setvars widget, 
and it works when I put the macro call into the caption field and manually 
enter the parameters for the species and names for the characters.

Here's how it's working (Other species will be added eventually):

\define name_output(species,first,second,third)
<$setvars twothreename="""(\$third$\ ? \$third$, $first$ $second$\) || 
\$second$, $first$\""" formatted_name="""(\$species$\ == \Human\ ? 
twothreename ) || (\$species$\ == \Bajoran\ ? \$first$ $second$\) || 
(\$species$\ == \Garbrini\ ? \$second$, $first$ $third$\) || \$first$\""">
<>

\end

Here are the fields in an example character tiddler:

caption: <>
species: Human

This works fine so far.  Here's what I'd like it to do.

   1. Pass the title of the character tiddler into a macro, parse the title 
   as a list, then pass the list to the name_output macro so I don't have to 
   manually add the name fields to a bunch of already made character tiddlers.
   2. Use the species field in the caption field.  <> doesn't seem to work as it interprets the 
   species parameter as {{!!species}} rather than the value of the species 
   field, although <> doesn't have this problem.

Does anyone know how I can 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/6b112b6c-8037-4806-bb13-8cca370eba18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-06 Thread David Allen
I think I figured it out using the set widget.

<$set name=redoneplanet filter="[prefix[{!!planet}]]" value="<$link
to={{!!planet}}>{{!!planet}}" emptyValue={{!!planet}}>
<>


This way, when the planet field does not have square brackets, a link is
created to the tiddler of the same name.  If it does have brackets (and as
a tiddler title doesn't exist), then it is simply transcluded as-is.

On Wed, Jan 6, 2016 at 10:27 AM, David Allen <dvainwebbc...@gmail.com>
wrote:

> Your suggestion is having the same problem as the solution I came up with,
> unless I'm not understanding what you're doing.
>
> Here's what I've got:
>
> <$setvars _aplanet={{!!planet}} theplanet="aplanet[1]">
> >><>
> 
>
>
>
> On Mon, Jan 4, 2016 at 12:27 AM, Tobias Beer <beertob...@gmail.com> wrote:
>
>> Hi David,
>>
>>
>>> I just need a way to override the link widget's formatting now.
>>> Otherwise Eric Shulman's solution works beautifully.
>>>
>>
>> Unfortunately, that is not true. Although you may feel like you can avoid
>> retrieving the title using a variable, you do need a proper reference and 
>> *[[Some
>> Title]]* is not while *Some Title* is.
>>
>> The one thing I could think is to not use any link widget at all but to
>> transclude the planet field as is, since it already does contain the link
>> notation, e.g. *[[Some Title]]*... so simply inserting that via
>> *{{!!planet}}* should produce a link, e.g.:
>>
>> title: any title
>> planet: [[Some Planet]]
>>
>> {{!!planet}} <= this will be a link!
>>
>> However, using an editor equivalent to the tags editor, any values that
>> do *not* contain spaces will be saved without double square brackets,
>> so...
>>
>> title: any other title
>> planet: Earth
>>
>> {{!!planet}} <= this will NOT be a link!
>>
>> So, as I or Eric suggested, you do need to retrieve the given item from a
>> list-field and store it in a variable ...to be able to properly construct
>> the link using the link widget.
>>
>> Ergo: It is not simply a matter of styles / formatting.
>>
>> Best wishes,
>>
>> Tobias.
>>
>> --
>> 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/YpM4Jw8nkdU/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/0f3612fd-9210-4b26-b931-73de3c358caa%40googlegroups.com
>> <https://groups.google.com/d/msgid/tiddlywiki/0f3612fd-9210-4b26-b931-73de3c358caa%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Allen
>



-- 
David Allen

-- 
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/CALaYjLjMmTuVpi7s5BFVTuecO_TZOW13t1BBgjEnExri4qROcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-06 Thread David Allen
Your suggestion is having the same problem as the solution I came up with,
unless I'm not understanding what you're doing.

Here's what I've got:

<$setvars _aplanet={{!!planet}} theplanet="aplanet[1]">
>><>




On Mon, Jan 4, 2016 at 12:27 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
>
>> I just need a way to override the link widget's formatting now.
>> Otherwise Eric Shulman's solution works beautifully.
>>
>
> Unfortunately, that is not true. Although you may feel like you can avoid
> retrieving the title using a variable, you do need a proper reference and 
> *[[Some
> Title]]* is not while *Some Title* is.
>
> The one thing I could think is to not use any link widget at all but to
> transclude the planet field as is, since it already does contain the link
> notation, e.g. *[[Some Title]]*... so simply inserting that via
> *{{!!planet}}* should produce a link, e.g.:
>
> title: any title
> planet: [[Some Planet]]
>
> {{!!planet}} <= this will be a link!
>
> However, using an editor equivalent to the tags editor, any values that do
> *not* contain spaces will be saved without double square brackets, so...
>
> title: any other title
> planet: Earth
>
> {{!!planet}} <= this will NOT be a link!
>
> So, as I or Eric suggested, you do need to retrieve the given item from a
> list-field and store it in a variable ...to be able to properly construct
> the link using the link widget.
>
> Ergo: It is not simply a matter of styles / formatting.
>
> Best wishes,
>
> Tobias.
>
> --
> 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/YpM4Jw8nkdU/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/0f3612fd-9210-4b26-b931-73de3c358caa%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/0f3612fd-9210-4b26-b931-73de3c358caa%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLjcACFHy4-WGc5Wt38zm6YiyH7btEQUohipSr6F8wAL8w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-03 Thread David Allen
Really, the only thing I need now is a way to override the formatting used
with the <$link> widget, so that the link doesn't appear to be missing.
Since the link widget I'm using is linking to {{!!planet}} and the planet
field is the planet name surrounded by dual square brackets, what its
trying to link to doesn't exist, but I'm using {{!!planet}} as the text for
the link, and the inner text works fine.

I just need a way to override the link widget's formatting now.  Otherwise
Eric Shulman's solution works beautifully.

On Sun, Jan 3, 2016 at 10:47 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
> I believe you can use my plugin tobibeer/setvars
> <http://tobibeer.github.io/tw5-plugins/#setvars> to properly store a list
> item in a variable <http://tobibeer.github.io/tw5-plugins/#setvars-Syntax>,
> e.g.
>
> <$setvars _planet={{!!planet}} planet="planet[1]">
> <$link to=<>><>
> 
>
> Best wishes,
>
> Tobias.
>
>
> --
> 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/YpM4Jw8nkdU/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/d8ea46b5-8fc2-4a8c-bf32-a443ae42973d%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/d8ea46b5-8fc2-4a8c-bf32-a443ae42973d%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLhmLehyYX7JnzBjeFpS2M-qJQPixHfhHHH9PVHRtZj6jw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Square brackets, transclusion, and widget problem

2016-01-02 Thread David Allen
That mostly worked.  The only problem now is with the template tiddler I
used to create the new event tiddlers.

Here's the body of the tiddler:

\define empire_lookup()
{{EmpireEventLookupTable##$(thejointype)$}}
\end
<$set name=thejointype value={{!!jointype}}>
{{!!planet}} <> <$link to={{!!faction}}><$view
field=faction>



With planet names that contain spaces, there's no problem.  With ones that
don't, the name doesn't show up as a link

My solution was to replace the {{!!planet}} part with <$link
to={{!!planet}}>{{!!planet}}.  Functionally, this works, but
planets with a space in the name have the link show up as a missing tiddler
link, because it's trying to find a tiddler whose title contains square
brackets.  I can click on the part that {{!!planet}} renders as and bring
up the planet tiddler, but I'd like it so it doesn't look like I have a
bunch of missing tiddlers where I do not.

On Sat, Jan 2, 2016 at 11:08 PM, Eric Shulman <elsdes...@gmail.com> wrote:

> On Saturday, January 2, 2016 at 8:32:51 PM UTC-8, David Allen wrote:
>>
>> The problem is, the value that shows up in the new event tiddler does not
>> contain the square brackets, which makes it not work with the filter
>> above.  What I'd like is some way to construct a string that has square
>> brackets along with the field value and can be passed into a widget and
>> work correctly.
>>
>
>> When I do [[{{!!planet}}]], the result is exactly that string,
>> [[{{!!planet}}]].  When I try to put it into a widget, it comes up as
>> [[$parameter$]].  I'd like to find a way to construct a string literal, but
>> I'm not sure how to do so.
>>
>> Can anyone help me with this?
>>
>
> You can use the <$set> widget with the title filter.  This will add
> brackets to the field value if it contains spaces.  The result can be
> passed into a widget param.  For example:
> <$set name="result" filter="""[title{!!somefield}]""">
> <$text text=<>/>
> 
>
> let me know if this helps
>
> enjoy,
> -e
>
> --
> 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/YpM4Jw8nkdU/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/2b161ac9-b96d-492c-a651-716d499a7ace%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/2b161ac9-b96d-492c-a651-716d499a7ace%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLi6%2BGE8s1FWUhBhNhyh93nd3k72-nG93ma6r0RN4DexSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Square brackets, transclusion, and widget problem

2016-01-02 Thread David Allen
In my setup, I use the following filter:

[tag[star_system]quadrant[$quadrant$]listed[solar_system]listed[planet]tag[species]sort[title]]

What this does is gets all solar systems whose quadrant value matches the 
value passed into the macro this filter is in, then goes through two listed 
parts to get tiddlers whose planet values are in the solar systems, select 
only the species tiddlers, then sort them by title.  Since all solar 
systems and some planets have spaces in their names, *all solar_system and 
planet field values must be surrounded in [[ ]] for the listed part of the 
filter to work.*  If this is wrong, please let me know.

Since the square brackets must be around the planet and solar system names, 
I need to be able to set the solar system and planet fields in certain 
tiddlers with names surrounded by two pairs of square brackets ( 
[[Cardassia Prime]] instead of Cardassia Prime, for example).  Using a link 
widget will not work in this circumstance.

I have a form that lets me create new tiddlers based on a template empire 
event tiddler, and one of the fields that I manipulate is a planet field.  *The 
values of the planet field in these empire event tiddlers and the species 
tiddlers must be able to match up, meaning they need a pair of square 
brackets.*  The problem is, when I set the value of these form elements, a 
planet name comes up as simple text rather than a bracketed link (Rura 
Penthe instead of [[Rura Penthe]]).  I pass the value of the form into an 
action-setfield widget by using a targetField={{!!formField}} format 
(planet={{!!planet}}, for example).

The problem is, the value that shows up in the new event tiddler does not 
contain the square brackets, which makes it not work with the filter 
above.  What I'd like is some way to construct a string that has square 
brackets along with the field value and can be passed into a widget and 
work correctly.

When I do [[{{!!planet}}]], the result is exactly that string, 
[[{{!!planet}}]].  When I try to put it into a widget, it comes up as 
[[$parameter$]].  I'd like to find a way to construct a string literal, but 
I'm not sure how to do so.

Can anyone help me with 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/c577311f-01c1-41b2-91b4-1e5b310eb340%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Macro is showing both tiddlers without a field and tiddlers whose field matches input

2016-01-02 Thread David Allen
The first list widget, which gets empire events with the given faction
value, works fine.  The problem is the inner list widget.

On Sat, Jan 2, 2016 at 9:02 PM, Matabele <matabele.b...@gmail.com> wrote:

> Hi
>
> Try adding the filter as a separate run:
>
> <$list filter="[tag[empire_event]] +[faction[$faction$]sort[year]]">
> <$set name=theyear value={{!!year}}>
> <$list filter="[tag[species]] +[planet{!!planet}]" >
>
> regards
>
> On Sunday, 3 January 2016 04:16:15 UTC+2, David Allen wrote:
>>
>> Hi. I'm having trouble with one of my macros, and I'm not sure why.
>>
>> Here is the code:
>> \define empire_species(faction)
>> !!Species
>>
>> <$list filter="[tag[empire_event]faction[$faction$]sort[year]]">
>> <$set name=theyear value={{!!year}}>
>> <$list filter="[tag[species]planet{!!planet}]" >
>> *<$link to=<> >
>> <>
>>  (<>)
>>
>> 
>> 
>> 
>> \end
>>
>> This is supposed to get a list of tiddlers tagged empire_event whose
>> faction field matches the input, then get a list of species whose planet
>> field matches the planet field of the empire event.  What it's actually
>> doing is grabbing a list of species that don't have a planet field defined
>> yet and appending the desired result of this macro to that list.
>>
>> Does anyone know what I need to change to keep this from grabbing species
>> that don't have the planet field?
>>
> --
> 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/NHN3h62TOz0/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/3dade6f1-62a5-4a27-8fb2-29b7008d3a93%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/3dade6f1-62a5-4a27-8fb2-29b7008d3a93%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLijF2bGpgK7dSRrAwGet%3DHmqtEnjQP9Uj6qJvm_XYQBYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Macro is showing both tiddlers without a field and tiddlers whose field matches input

2016-01-02 Thread David Allen
Hi. I'm having trouble with one of my macros, and I'm not sure why.

Here is the code:
\define empire_species(faction)
!!Species

<$list filter="[tag[empire_event]faction[$faction$]sort[year]]">
<$set name=theyear value={{!!year}}>
<$list filter="[tag[species]planet{!!planet}]" >
*<$link to=<> >
<>
 (<>)




\end

This is supposed to get a list of tiddlers tagged empire_event whose 
faction field matches the input, then get a list of species whose planet 
field matches the planet field of the empire event.  What it's actually 
doing is grabbing a list of species that don't have a planet field defined 
yet and appending the desired result of this macro to that list.

Does anyone know what I need to change to keep this from grabbing species 
that don't have the planet field?

-- 
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/f026c677-4834-493a-a3a0-a9ed390816f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Macro is showing both tiddlers without a field and tiddlers whose field matches input

2016-01-02 Thread David Allen
Never mind, figured it out.  I had some events that didn't get formatted
correctly, so the value for planet that was passed into the loop was empty,
resulting in every species that didn't have a planet field being shown.

On Sat, Jan 2, 2016 at 10:02 PM, David Allen <dvainwebbc...@gmail.com>
wrote:

> The first list widget, which gets empire events with the given faction
> value, works fine.  The problem is the inner list widget.
>
> On Sat, Jan 2, 2016 at 9:02 PM, Matabele <matabele.b...@gmail.com> wrote:
>
>> Hi
>>
>> Try adding the filter as a separate run:
>>
>> <$list filter="[tag[empire_event]] +[faction[$faction$]sort[year]]">
>> <$set name=theyear value={{!!year}}>
>> <$list filter="[tag[species]] +[planet{!!planet}]" >
>>
>> regards
>>
>> On Sunday, 3 January 2016 04:16:15 UTC+2, David Allen wrote:
>>>
>>> Hi. I'm having trouble with one of my macros, and I'm not sure why.
>>>
>>> Here is the code:
>>> \define empire_species(faction)
>>> !!Species
>>>
>>> <$list filter="[tag[empire_event]faction[$faction$]sort[year]]">
>>> <$set name=theyear value={{!!year}}>
>>> <$list filter="[tag[species]planet{!!planet}]" >
>>> *<$link to=<> >
>>> <>
>>>  (<>)
>>>
>>> 
>>> 
>>> 
>>> \end
>>>
>>> This is supposed to get a list of tiddlers tagged empire_event whose
>>> faction field matches the input, then get a list of species whose planet
>>> field matches the planet field of the empire event.  What it's actually
>>> doing is grabbing a list of species that don't have a planet field defined
>>> yet and appending the desired result of this macro to that list.
>>>
>>> Does anyone know what I need to change to keep this from grabbing
>>> species that don't have the planet field?
>>>
>> --
>> 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/NHN3h62TOz0/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/3dade6f1-62a5-4a27-8fb2-29b7008d3a93%40googlegroups.com
>> <https://groups.google.com/d/msgid/tiddlywiki/3dade6f1-62a5-4a27-8fb2-29b7008d3a93%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Allen
>



-- 
David Allen

-- 
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/CALaYjLhYi_RNipJKe7SCccMYr0Yojh7SUdVAFZTdps9eUaf%3Deg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Dictionary tiddler and macro funkiness

2015-12-31 Thread David Allen
Was the make plugin recently updated?  The pad part isn't working for me.

On Thu, Dec 31, 2015 at 9:18 AM, Felix Küppers <felixkuepp...@hotmail.de>
wrote:

> Sweet!
>
> On 12/31/2015 04:00 PM, Tobias Beer wrote:
>
> Hi Felix,
>
> You can use Tobias' make plugin to iterate over numbers till 31 using
>> count and max variables
>>
>
> Haven't thought of that. ;-)
>
> Zero-padding the *count* sounds like a good option.
> I went ahead and implemented it as announced here
> <https://groups.google.com/d/msg/tiddlywiki/ebha1ktI22U/3CyoORYtCwAJ>.
>
> As for *David*, to generate the zero-padded 31 digits you could use:
>
> <$list filter="[[]make[%count%\max:31\pad:2]]"/>
>
> instead of:
>
> <$list filter="01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20
> 21 22 23 24 25 26 27 28 29 30 31"/>
>
> Best wishes,
>
> Tobias.
> --
> 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/9d3abc24-fd06-4ba1-a477-1091d26b8969%40googlegroups.com?utm_medium=email_source=footer>
> https://groups.google.com/d/msgid/tiddlywiki/9d3abc24-fd06-4ba1-a477-1091d26b8969%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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/1NbjFgAAUkU/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/BLU436-SMTP54204614A66CD86046E0A6CEFE0%40phx.gbl
> <https://groups.google.com/d/msgid/tiddlywiki/BLU436-SMTP54204614A66CD86046E0A6CEFE0%40phx.gbl?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLgLeLbehY1qYd0yuXr4SnVOcPepZZF2eHRgcZBRk8SOpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Dictionary tiddler and macro funkiness

2015-12-31 Thread David Allen
I also have two small problems.  I need the planet field that's passed in
the second action widget to be the name of the planet surrounded in dual
square brackets, but whatever I try doesn't work.  Is there a way I can
escape the square brackets or concatenate strings to get them to be
constructed into a string correctly?

On Thu, Dec 31, 2015 at 9:40 AM, David Allen <dvainwebbc...@gmail.com>
wrote:

> Was the make plugin recently updated?  The pad part isn't working for me.
>
> On Thu, Dec 31, 2015 at 9:18 AM, Felix Küppers <felixkuepp...@hotmail.de>
> wrote:
>
>> Sweet!
>>
>> On 12/31/2015 04:00 PM, Tobias Beer wrote:
>>
>> Hi Felix,
>>
>> You can use Tobias' make plugin to iterate over numbers till 31 using
>>> count and max variables
>>>
>>
>> Haven't thought of that. ;-)
>>
>> Zero-padding the *count* sounds like a good option.
>> I went ahead and implemented it as announced here
>> <https://groups.google.com/d/msg/tiddlywiki/ebha1ktI22U/3CyoORYtCwAJ>.
>>
>> As for *David*, to generate the zero-padded 31 digits you could use:
>>
>> <$list filter="[[]make[%count%\max:31\pad:2]]"/>
>>
>> instead of:
>>
>> <$list filter="01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19
>> 20 21 22 23 24 25 26 27 28 29 30 31"/>
>>
>> Best wishes,
>>
>> Tobias.
>> --
>> 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/9d3abc24-fd06-4ba1-a477-1091d26b8969%40googlegroups.com?utm_medium=email_source=footer>
>> https://groups.google.com/d/msgid/tiddlywiki/9d3abc24-fd06-4ba1-a477-1091d26b8969%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> 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/1NbjFgAAUkU/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/BLU436-SMTP54204614A66CD86046E0A6CEFE0%40phx.gbl
>> <https://groups.google.com/d/msgid/tiddlywiki/BLU436-SMTP54204614A66CD86046E0A6CEFE0%40phx.gbl?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Allen
>



-- 
David Allen

-- 
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/CALaYjLjgLndOKqTbK0oLiHixEM8zuAsYXhzuCQWozeKHo4e-sw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Dictionary tiddler and macro funkiness

2015-12-30 Thread David Allen
 creates a button which performs two actions.
The first is where it duplicates the tiddler named Template: Empire Event
and sets the title of the duplicate to the eventtitle variable I made
earlier.
The second is where it sets the fields of the new tiddler to match the
values in the form.

This form allows me to select a planet, an action, and a government, then
specify the date, and create a new tiddler that fits in well with other
things I have going on in my workspace.


On Wed, Dec 30, 2015 at 1:29 PM, David Allen <dvainwebbc...@gmail.com>
wrote:

> Well, that worked, but I'm still having the problem where I can't get the
> planet name to be stored correctly.
>
> On Wed, Dec 30, 2015 at 12:38 AM, Tobias Beer <beertob...@gmail.com>
> wrote:
>
>> Hi David,
>>
>>
>>> What about doing something where, if a tiddler with a certain title
>>> exists, create one with an incremented number after it, similar to how the
>>> New Tiddler button works?  Does anyone know how I could do that?
>>>
>>
>> Take a look at tobibeer/make
>> <http://tobibeer.github.io/tw5-plugins/#make>.
>>
>> Best wishes,
>>
>> Tobias.
>>
>> --
>> 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/1NbjFgAAUkU/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/14e88f08-e77c-4693-b1a0-024223f7b072%40googlegroups.com
>> <https://groups.google.com/d/msgid/tiddlywiki/14e88f08-e77c-4693-b1a0-024223f7b072%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Allen
>



-- 
David Allen

-- 
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/CALaYjLhDj8wSq1ZeOY6NyK4eD%2B_M9HBP%2BLSw%3DsMxa%3DPkYBuzWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Dictionary tiddler and macro funkiness

2015-12-30 Thread David Allen
Well, that worked, but I'm still having the problem where I can't get the
planet name to be stored correctly.

On Wed, Dec 30, 2015 at 12:38 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
>
>> What about doing something where, if a tiddler with a certain title
>> exists, create one with an incremented number after it, similar to how the
>> New Tiddler button works?  Does anyone know how I could do that?
>>
>
> Take a look at tobibeer/make <http://tobibeer.github.io/tw5-plugins/#make>
> .
>
> Best wishes,
>
> Tobias.
>
> --
> 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/1NbjFgAAUkU/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/14e88f08-e77c-4693-b1a0-024223f7b072%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/14e88f08-e77c-4693-b1a0-024223f7b072%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLjZkOHKmvKnQHgisn8Dqt%3D_YU3aqxbN29p_6wtTj68xQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Dictionary tiddler and macro funkiness

2015-12-29 Thread David Allen
So this is the solution I have to this problem:

\define empire_lookup()
{{EmpireEventLookupTable##$(thejointype)$}}
\end

<$set name=thejointype value={{!!jointype}}>
{{!!planet}} <> <$link to={{!!faction}}><$view
field=faction>


Fields:
faction: United Federation of Planets
jointype: join
planet: [[Mars]]
year: 2162

The result is:
Mars joined the United Federation of Planets


The idea behind using this format is so I can put the body of the text into
a template tiddler and use a form to create new empire event tiddlers
quickly and easily.  It works for the most part.

I still have two issues with this:

In the form tiddler I have this:
Planet: <$select field='planet'>
<$list filter="[tag[planet]]">
<>





<$button>New Event
<$action-setfield $tiddler="Template: Empire Event"
title=Event_{{!!year}}_{{!!month}}_{{!!day}}/>
<$action-setfield $tiddler=Event_{{!!year}}_{{!!month}}_{{!!day}}
year={{!!year}} planet={{!!planet}} faction={{!!faction}}
jonitype={{!!jointype}}/>


year, month, day, faction, and jointype are defined with similar select
widgets and are working fine.

Here are the problems.
Planet is showing up in the resulting tiddler as text only and not as a
link to the associated tiddler.  For example, if I select Cardassia Prime
from the select widget, the planet field in the resulting tiddler will say
Cardassia Prime, when I need it to say [[Cardassia Prime]].  I'm not
entirely certain how to accomplish this.

Another problem is in the title of the new tiddler.  I want the values of
the year, month, and day fields to show up in the title of the new tiddler,
but instead the tiddler name is Event_{{!!year}}_{{!!month}}_{{!!day}},
rather than Event_2451_12_14, for example.

Does anyone know how I can fix these issues?


On Tue, Dec 29, 2015 at 10:27 AM, Tobias Beer <beertob...@gmail.com> wrote:

>  Hi David,
>
> I didn't actually add the parameter to the tiddler I was testing with so
>> it never showed.  Thanks!
>
>
> Happens to the best of us. Unlike the current release, the next release
> will always add any new field info entered into the editor ...so this
> problem should not pop up any more ...the problem where you create a new
> tiddler and at the bottom of it or in the tags-field find some already
> entered text hinting at the possibility that you recently forgot to hit
> some "add" button.
>
> For example, on prerelease <http://tiddlywiki.com/prerelease/>, try
> creating a new tiddler and...
>
>- enter some new tag value, but don't add it
>- enter some new field values, but don't add it
>- save the tiddler
>
> You should find that both the new tag and field values have been saved to
> the tiddler.
>
> Best wishes,
>
> Tobias.
>
> --
> 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/1NbjFgAAUkU/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/a78a30e8-2706-4a32-b69c-aff77ba834e4%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/a78a30e8-2706-4a32-b69c-aff77ba834e4%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLjv9JjjFNrqnT4Ymkq-yb%3D7%2B1crYKSQDK%3DK_X3TY9w-FQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Dictionary tiddler and macro funkiness

2015-12-29 Thread David Allen
Actually, as it stands, it doesn't do much.  Is there a way I can access a
tiddler's fields within the tiddler?  For example, if a tiddler has a
planet field, is there some way I can put the planet field into the
tiddler's text field?

On Tue, Dec 29, 2015 at 4:09 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
>
>> Nevermind, figured it out.  I had to use a set and widget thing and I had
>> a syntax problem, so I got it to work.
>>
>
> At your level of complexity it would really help to see a working example
> / demo... both to begin with and possibly also later. It's complex setups
> like yours people can learn the most from... if given some clues as to how
> to decipher it all.
>
> Best wishes,
>
> Tobias.
>
> --
> 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/1NbjFgAAUkU/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/97071f66-51f0-4fd6-8d8c-5f49e1c91555%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/97071f66-51f0-4fd6-8d8c-5f49e1c91555%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLh681nFcwO-BzrcbvDkA_%3DNCUOfNjd4STJTO1DTG1fnEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Dictionary tiddler and macro funkiness

2015-12-29 Thread David Allen
I'm dumb.  I didn't actually add the parameter to the tiddler I was testing
with so it never showed.  Thanks!

On Tue, Dec 29, 2015 at 10:15 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
>
>> Actually, as it stands, it doesn't do much.  Is there a way I can access
>> a tiddler's fields within the tiddler?  For example, if a tiddler has a
>> planet field, is there some way I can put the planet field into the
>> tiddler's text field?
>>
>
> Most certainly, it's called transclusion
> <http://tiddlywiki.com/#Transclusion> and in the simplest form it looks
> like:
>
> {{!!planet}}
>
> Best wishes,
>
> Tobias.
>
> --
> 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/1NbjFgAAUkU/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/b05b4fe9-dbe5-45d2-a008-b4270cacf0d4%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/b05b4fe9-dbe5-45d2-a008-b4270cacf0d4%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLg14eD0447xOikWwS6tJKxs2ekEu9dkfXhb-5JpL-jyVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Dictionary tiddler and macro funkiness

2015-12-29 Thread David Allen
What about doing something where, if a tiddler with a certain title exists,
create one with an incremented number after it, similar to how the New
Tiddler button works?  Does anyone know how I could do that?

On Tue, Dec 29, 2015 at 1:52 PM, David Allen <dvainwebbc...@gmail.com>
wrote:

> The planet field in the resulting event tiddler has to be a link because
> it has to match the planet fields of any species tiddlers which might have
> their planet field match the event's planet field.  Since I'm also doing
> stuff with the planet tiddlers and species tiddlers that uses the listed
> operator of a filter expression, and some of the planet names have spaces,
> I had to surround all the planet names with double square brackets for
> things to work.
>
> I'll take a closer look at the title building widget later.
>
> On Tue, Dec 29, 2015 at 1:40 PM, Tobias Beer <beertob...@gmail.com> wrote:
>
>> Hi David,
>>
>>
>>> Planet is showing up in the resulting tiddler as text only and not as a
>>> link to the associated tiddler.  For example, if I select Cardassia Prime
>>> from the select widget, the planet field in the resulting tiddler will say
>>> Cardassia Prime, when I need it to say [[Cardassia Prime]].  I'm not
>>> entirely certain how to accomplish this.
>>>
>>
>> At what point do you need it to be a "listified" value? As you already
>> do, instead of just {{!!planet}} you can always do <$link
>> to={{!!planet}}><$view field="planet"/>... or use a template /
>> macro to simplify this.
>>
>> Another problem is in the title of the new tiddler.  I want the values of
>>> the year, month, and day fields to show up in the title of the new tiddler,
>>> but instead the tiddler name is Event_{{!!year}}_{{!!month}}_{{!!day}},
>>> rather than Event_2451_12_14, for example.
>>>
>>
>> You need to call some helper macro(s) using the MacroCallWidget
>> <http://tiddlywiki.com/#MacroCallWidget> to properly construct the
>> desired attribute value, e.g.
>>
>> \define addJoinEvent(year,month,day)
>> <$some-widget some-title-attribute="Event_$year$_$month$_$day$"/>
>> \end
>>
>> <$macrocall $name="addJoinEvent" year={{!!year}} month={{!!month}} day
>> ={{!!day}}/>
>>
>> Best wishes,
>>
>> Tobias.
>>
>> --
>> 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/1NbjFgAAUkU/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/dcb87f55-bac1-47dd-9eb3-0a0498591c0a%40googlegroups.com
>> <https://groups.google.com/d/msgid/tiddlywiki/dcb87f55-bac1-47dd-9eb3-0a0498591c0a%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Allen
>



-- 
David Allen

-- 
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/CALaYjLgsOY9reRxF_8VbYSnNcFCCsDp7QcBac_e9vzjA-v%3DnhA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Dictionary tiddler and macro funkiness

2015-12-29 Thread David Allen
The planet field in the resulting event tiddler has to be a link because it
has to match the planet fields of any species tiddlers which might have
their planet field match the event's planet field.  Since I'm also doing
stuff with the planet tiddlers and species tiddlers that uses the listed
operator of a filter expression, and some of the planet names have spaces,
I had to surround all the planet names with double square brackets for
things to work.

I'll take a closer look at the title building widget later.

On Tue, Dec 29, 2015 at 1:40 PM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
>
>> Planet is showing up in the resulting tiddler as text only and not as a
>> link to the associated tiddler.  For example, if I select Cardassia Prime
>> from the select widget, the planet field in the resulting tiddler will say
>> Cardassia Prime, when I need it to say [[Cardassia Prime]].  I'm not
>> entirely certain how to accomplish this.
>>
>
> At what point do you need it to be a "listified" value? As you already do,
> instead of just {{!!planet}} you can always do <$link
> to={{!!planet}}><$view field="planet"/>... or use a template /
> macro to simplify this.
>
> Another problem is in the title of the new tiddler.  I want the values of
>> the year, month, and day fields to show up in the title of the new tiddler,
>> but instead the tiddler name is Event_{{!!year}}_{{!!month}}_{{!!day}},
>> rather than Event_2451_12_14, for example.
>>
>
> You need to call some helper macro(s) using the MacroCallWidget
> <http://tiddlywiki.com/#MacroCallWidget> to properly construct the
> desired attribute value, e.g.
>
> \define addJoinEvent(year,month,day)
> <$some-widget some-title-attribute="Event_$year$_$month$_$day$"/>
> \end
>
> <$macrocall $name="addJoinEvent" year={{!!year}} month={{!!month}} day
> ={{!!day}}/>
>
> Best wishes,
>
> Tobias.
>
> --
> 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/1NbjFgAAUkU/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/dcb87f55-bac1-47dd-9eb3-0a0498591c0a%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/dcb87f55-bac1-47dd-9eb3-0a0498591c0a%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLjkT-d76dOPbE3kvGcZ_yQ7qj6Mh%3DOPQ-322n-5t4yZ5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] List filter with field values question

2015-12-28 Thread David Allen
Anyone?

On Fri, Dec 4, 2015 at 4:40 PM, David Allen <dvainwebbc...@gmail.com> wrote:

> I'm not entirely certain how to describe what I'm trying to do, but here
> goes.
>
> I've got a Star Trek fanfic wiki and I'd like to list which planets belong
> to certain empires by when they joined said empire.  I'm doing this through
> a series of historical event tiddlers so I can do some further stuff with
> the events.  Here are how my event tiddlers are currently set up:
>
> *Example 1:*
>
> [[Denobula]] joins the [[United Federation of Planets]]
>
> Fields:
> planet: [[Denobula]]
> year: 2164
> jointype: join
>
> *Example 2:*
>
> [[Xizholia]] is conquered by the [[Romulan Star Empire]]
>
> Fields:
> planet: [[Xizholia]]
> year: 2329
> jointype: conquer
>
> What I'm doing so far is getting a list of planets that belonged to
> certain empires and compiling them in a list.
>
> For example:
> <$list filter="[tag[empire_event]tag[United Federation of Planets]]">
>
> *{{!!planet}} ({{!!year}})
> 
>
> This comes up as:
>
> * Earth (2161)
> * Denobula (2164)
>
> What I'd like to do now is get a list of species that belong to certain
> empires using the planets listed in the event tiddler's planet fields.  *Both
> the species tiddlers and the event tiddlers have planet fields, and I'd
> like to figure out how to return a list of species whose planet fields
> match the planet fields in a list of event tiddlers.*  Does anyone know
> how to do this?  Thanks!
>
> --
> 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/xMp01NywG8o/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 http://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/42f0ddc1-41fc-4f6f-a457-989f15a58ad5%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/42f0ddc1-41fc-4f6f-a457-989f15a58ad5%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLhJ6NHKCvBrJpoWE_gGsGwnHp0AGR1BbncvAyyzR%3DW0OQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Dictionary tiddler and macro funkiness

2015-12-28 Thread David Allen
Nevermind, figured it out.  I had to use a set and widget thing and I had a
syntax problem, so I got it to work.

On Mon, Dec 28, 2015 at 6:48 PM, David Allen <dvainwebbc...@gmail.com>
wrote:

> Here's my setup:
>
> I have some tiddlers that describe an event in which a planet, in some
> way, joins an interstellar power.  Said tiddlers have a user-friendly
> description, along with three fields:
>  - jointype: describes the method by which a planet joined an empire.
> Examples include join, conquer, colonize.
>  - planet: the tiddler of the associated planet.  [[Earth]], for example.
>  - year: the year it happened.
>  - faction: the power that now controls the planet.
>
> I also have a tiddler called EmpireEventLookupTable, which is a dicitonary
> tiddler with the following information:
>  - join: joined the
>  - conquer: was conquered by the
>  - colonize: was colonized by the
>
> The idea behind this tiddler is to use it to present information in a more
> user-friendly manner.
>
> Here's where I really use the stuff.
>
> I'm trying to collect information about which planets joined which empires
> and when.  I can limit the information down to specific empires, but
> haven't implemented that yet.
>
> Here's what I want to do:
>
>
>- In 2161, Earth joined the United Federation of Planets
>- In 2192, Regreea was conquered by the Nausicaan Empire
>- In 1961, Revanix II was conquered by the Interstellar Condordium
>- etc.
>
>
> Here's what I do have:
>
> \define empire_lookup(jointype)
> {{EmpireEventLookupTable##$jointype$}}
> \end
>
> <$list filter="">
>
> * In {{!!year}}, {{!!planet}} <>
> {{!!faction}}
>
> 
>
>
> This is the result:
>
>
>- In 2161, Earth {{EmpireEventLookupTable##join}} United Federation of
>Planets
>- In 2192, Regreea {{EmpireEventLookupTable##conquer}} Nausicaan Empire
>- etc.
>
> In the output, the EmpireEventLookupTable in the result is a link to the
> tiddler, whereas join, conquer, etc is just appearing as plain text.
>
>
> I think I'm really close to solving this, but I'm not sure how to solve
> this hiccup.  Anyone know what I should do?
>
> --
> 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/1NbjFgAAUkU/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/98b79ccc-7a76-48c6-9dc6-88835da7e849%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/98b79ccc-7a76-48c6-9dc6-88835da7e849%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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/CALaYjLhOOqvf69z5vie2ofrwtfCxHe-_4Tw3Y-hmET3CwEbMdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] List filter with field values question

2015-12-28 Thread David Allen
I've got this one mostly figured out now, except I can't figure out a way
to compile the results into a single list, but as stated before, that may
not be possible.

I've got the list that gets the events, then a list nested inside that that
gets species whose planet fields are the same as the event's planet field.

On Mon, Dec 28, 2015 at 9:44 PM, David Allen <dvainwebbc...@gmail.com>
wrote:

> Anyone?
>
> On Fri, Dec 4, 2015 at 4:40 PM, David Allen <dvainwebbc...@gmail.com>
> wrote:
>
>> I'm not entirely certain how to describe what I'm trying to do, but here
>> goes.
>>
>> I've got a Star Trek fanfic wiki and I'd like to list which planets
>> belong to certain empires by when they joined said empire.  I'm doing this
>> through a series of historical event tiddlers so I can do some further
>> stuff with the events.  Here are how my event tiddlers are currently set up:
>>
>> *Example 1:*
>>
>> [[Denobula]] joins the [[United Federation of Planets]]
>>
>> Fields:
>> planet: [[Denobula]]
>> year: 2164
>> jointype: join
>>
>> *Example 2:*
>>
>> [[Xizholia]] is conquered by the [[Romulan Star Empire]]
>>
>> Fields:
>> planet: [[Xizholia]]
>> year: 2329
>> jointype: conquer
>>
>> What I'm doing so far is getting a list of planets that belonged to
>> certain empires and compiling them in a list.
>>
>> For example:
>> <$list filter="[tag[empire_event]tag[United Federation of Planets]]">
>>
>> *{{!!planet}} ({{!!year}})
>> 
>>
>> This comes up as:
>>
>> * Earth (2161)
>> * Denobula (2164)
>>
>> What I'd like to do now is get a list of species that belong to certain
>> empires using the planets listed in the event tiddler's planet fields.  *Both
>> the species tiddlers and the event tiddlers have planet fields, and I'd
>> like to figure out how to return a list of species whose planet fields
>> match the planet fields in a list of event tiddlers.*  Does anyone know
>> how to do this?  Thanks!
>>
>> --
>> 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/xMp01NywG8o/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 http://groups.google.com/group/tiddlywiki.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/42f0ddc1-41fc-4f6f-a457-989f15a58ad5%40googlegroups.com
>> <https://groups.google.com/d/msgid/tiddlywiki/42f0ddc1-41fc-4f6f-a457-989f15a58ad5%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Allen
>



-- 
David Allen

-- 
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/CALaYjLj2qHc_tg2XXut3N0bAnGYfuM7Ag9rWstfsue%3D0_cKbQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Dictionary tiddler and macro funkiness

2015-12-28 Thread David Allen
Here's my setup:

I have some tiddlers that describe an event in which a planet, in some way, 
joins an interstellar power.  Said tiddlers have a user-friendly 
description, along with three fields:
 - jointype: describes the method by which a planet joined an empire.  
Examples include join, conquer, colonize.
 - planet: the tiddler of the associated planet.  [[Earth]], for example.
 - year: the year it happened.
 - faction: the power that now controls the planet.

I also have a tiddler called EmpireEventLookupTable, which is a dicitonary 
tiddler with the following information:
 - join: joined the
 - conquer: was conquered by the
 - colonize: was colonized by the

The idea behind this tiddler is to use it to present information in a more 
user-friendly manner.

Here's where I really use the stuff.

I'm trying to collect information about which planets joined which empires 
and when.  I can limit the information down to specific empires, but 
haven't implemented that yet.

Here's what I want to do:


   - In 2161, Earth joined the United Federation of Planets
   - In 2192, Regreea was conquered by the Nausicaan Empire
   - In 1961, Revanix II was conquered by the Interstellar Condordium
   - etc.
   

Here's what I do have:

\define empire_lookup(jointype)
{{EmpireEventLookupTable##$jointype$}}
\end

<$list filter="">

* In {{!!year}}, {{!!planet}} <> {{!!faction}}




This is the result:


   - In 2161, Earth {{EmpireEventLookupTable##join}} United Federation of 
   Planets
   - In 2192, Regreea {{EmpireEventLookupTable##conquer}} Nausicaan Empire
   - etc.

In the output, the EmpireEventLookupTable in the result is a link to the 
tiddler, whereas join, conquer, etc is just appearing as plain text.


I think I'm really close to solving this, but I'm not sure how to solve 
this hiccup.  Anyone know what I should do?

-- 
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/98b79ccc-7a76-48c6-9dc6-88835da7e849%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] List filter with field values question

2015-12-04 Thread David Allen
I'm not entirely certain how to describe what I'm trying to do, but here 
goes.

I've got a Star Trek fanfic wiki and I'd like to list which planets belong 
to certain empires by when they joined said empire.  I'm doing this through 
a series of historical event tiddlers so I can do some further stuff with 
the events.  Here are how my event tiddlers are currently set up:

*Example 1:*

[[Denobula]] joins the [[United Federation of Planets]]

Fields:
planet: [[Denobula]]
year: 2164
jointype: join

*Example 2:*

[[Xizholia]] is conquered by the [[Romulan Star Empire]]

Fields:
planet: [[Xizholia]]
year: 2329
jointype: conquer

What I'm doing so far is getting a list of planets that belonged to certain 
empires and compiling them in a list.

For example:
<$list filter="[tag[empire_event]tag[United Federation of Planets]]">

*{{!!planet}} ({{!!year}})


This comes up as:

* Earth (2161)
* Denobula (2164)

What I'd like to do now is get a list of species that belong to certain 
empires using the planets listed in the event tiddler's planet fields.  *Both 
the species tiddlers and the event tiddlers have planet fields, and I'd 
like to figure out how to return a list of species whose planet fields 
match the planet fields in a list of event tiddlers.*  Does anyone know how 
to do this?  Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/42f0ddc1-41fc-4f6f-a457-989f15a58ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: What is and how do I use a tiddler's list field?

2015-11-20 Thread David Allen
Are there any fairly good and basic examples of how to use this?

On Fri, Nov 20, 2015 at 1:38 AM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
>
>> So on TiddlyWiki.com, I've seen a tiddler field called list, which
>> apparently stores titles of related tiddlers.  I was wondering if I could
>> get a more in-depth description of what this field is and how to use it.
>>
>
> See: http://tiddlywiki.com/#ListField
>
> Best wishes,
>
> — tb
>
> --
> 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/S-7Ly675IUw/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 http://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/03dc0c83-23f2-493e-8896-703a50fb910d%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/03dc0c83-23f2-493e-8896-703a50fb910d%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CALaYjLi5kv_3DUXYnFkBnQvKGO2PyWSDjCRjamgyE0m_Zn5pew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] What is and how do I use a tiddler's list field?

2015-11-19 Thread David Allen
So on TiddlyWiki.com, I've seen a tiddler field called list, which 
apparently stores titles of related tiddlers.  I was wondering if I could 
get a more in-depth description of what this field is and how to use it.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/99748b61-de04-4193-b7c9-e076648c6800%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread David Allen
Wait, now I've got another problem.

The star system tiddlers have name such as Sol System or Qo'noS System,
where there is a space in the name.  To make the earlier stuff work, I had
to change the solar_system field in the various planets to a
double-bracketed form of the same value ( [[Sol System]] rather than Sol
System ).  While this works for what I was doing, it presents a new problem.

In each star system tiddler, I have a list of planets that belong to that
system.  I'm having trouble with both passing the title of the tiddler in
double brackets into the filter operator (something like
filter:"[tag[planet]solar_system[{{tiddler.title}}]]" and manually entering
the tiddler tile into the operator.  Does anyone know if I'm supposed to do
something different than [{{tiddler.title}}]?

On Thu, Nov 19, 2015 at 2:59 PM, David Allen <dvainwebbc...@gmail.com>
wrote:

> Got it to work!
>
> < Quadrant]listed[solar_system]listed[planet]]">>
>
> This gives me all of the species located in the Alpha Quadrant.  Thanks
> for posting the link that had the listed[] operator in it so I could learn
> how it works!
>
> On Thu, Nov 19, 2015 at 2:19 PM, Tobias Beer <beertob...@gmail.com> wrote:
>
>> Hi Erwan,
>>
>>
>>> I'm not sure but to me this problem looks similar to this one:
>>> https://groups.google.com/forum/#!msg/tiddlywiki/h0bBO54Qn7g/8xWaAYlXBAAJ,
>>> for which you proposed this:
>>> https://github.com/Jermolene/TiddlyWiki5/issues/2078.
>>>
>>> Assuming the new operator some-field:any-listitem exists,
>>> isn't it possible to write the condition using a single filter?
>>>
>>
>> In this case you are right. However, it approaches the problem the other
>> way around, e.g.:
>>
>> <$set name="systems-in-alpha"
>> filter="[tag[star_system]field:quadrant[Alpha Quadrant]">
>> {{{ [tag[planet]solar_system:any] }}}
>> 
>>
>> So much for many roads leading to Rome. ;-)
>>
>> Best wishes,
>>
>> — tb
>>
>> --
>> 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/ZijquE6uDUE/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 http://groups.google.com/group/tiddlywiki.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/4f32e8f6-b429-4a14-9777-55ba2daf4997%40googlegroups.com
>> <https://groups.google.com/d/msgid/tiddlywiki/4f32e8f6-b429-4a14-9777-55ba2daf4997%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> David Allen
>



-- 
David Allen

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CALaYjLiUpVtsVp3F%2BxhH1L491RRZ%3DthbaYw2Ugu3vgrC3uXsuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread David Allen
Got it to work!

<>

This gives me all of the species located in the Alpha Quadrant.  Thanks for
posting the link that had the listed[] operator in it so I could learn how
it works!

On Thu, Nov 19, 2015 at 2:19 PM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi Erwan,
>
>
>> I'm not sure but to me this problem looks similar to this one:
>> https://groups.google.com/forum/#!msg/tiddlywiki/h0bBO54Qn7g/8xWaAYlXBAAJ,
>> for which you proposed this:
>> https://github.com/Jermolene/TiddlyWiki5/issues/2078.
>>
>> Assuming the new operator some-field:any-listitem exists,
>> isn't it possible to write the condition using a single filter?
>>
>
> In this case you are right. However, it approaches the problem the other
> way around, e.g.:
>
> <$set name="systems-in-alpha"
> filter="[tag[star_system]field:quadrant[Alpha Quadrant]">
> {{{ [tag[planet]solar_system:any] }}}
> 
>
> So much for many roads leading to Rome. ;-)
>
> Best wishes,
>
> — tb
>
> --
> 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/ZijquE6uDUE/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 http://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/4f32e8f6-b429-4a14-9777-55ba2daf4997%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/4f32e8f6-b429-4a14-9777-55ba2daf4997%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CALaYjLhjxGRtqSLC3oheNp%2BdWjkOyFi6H3jKyECyXsdZ8gEq3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Nested List Problem

2015-11-19 Thread David Allen
I don't know how well I explained what I was trying to do.

I want to display a list of tiddlers whose solar_system field matches a
given input. The entries in the solar_system field all have spaces. I had
this working fine by passing in a solar system name with quotes around it,
such as "Qo'noS System".  Now, however, the solar_system field values also
have double-brackets around them, so what used to be Qo'noS System is now
[[Qo'noS System]].  I'm not sure what I should use instead of "Qo'noS
System" because it no longer works with the changed field values.  Does
anyone know what I should use instead?

On Thu, Nov 19, 2015 at 4:15 PM, Tobias Beer <beertob...@gmail.com> wrote:

> Hi David,
>
>
>> Got it to work!
>>
>
> Great stuff!
>
>
>> <> Quadrant]listed[solar_system]listed[planet]]">>
>>
>> This gives me all of the species located in the Alpha Quadrant.  Thanks
>> for posting the link that had the listed[] operator in it so I could learn
>> how it works!
>>
>
> This filter should probably be given the Filter Of The Month trophy. :D
>
> Best wishes,
>
> — tb
>
> --
> 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/ZijquE6uDUE/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 http://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/0e8107fd-aac1-4b54-999d-18f122c3927c%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/0e8107fd-aac1-4b54-999d-18f122c3927c%40googlegroups.com?utm_medium=email_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
David Allen

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CALaYjLjUhb%2BGXXFg-F%3DSkgY4WDaR%2BkMrEHBT16yi8W8CEV_9zg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   >