[tw] Re: TW5 Writing down multiple tables

2014-02-03 Thread BJ


On Friday, January 31, 2014 11:34:32 AM UTC+5:30, Danielo Rodríguez wrote:

 Hello

 I'm triying to do some kind of journal. So I wrote a macro that displays 
 every month as a table. I don't understand why every month is displayed 
 correctly except for June. In fact, June is only displayed incorrectly if 
 it has other month immediately above. If it is the first or stand alone, it 
 is displayed properly.

 If you want to check the code enter to  http://braintest.tiddlyspot.com/and 
 look for TestMonth.
 Thanks in advance.
 Kind regards.


Hi Danielo,



note that Calendar.getDay() returns 0-6 and that DAYS_OF_WEEK is 7.
your code should be more like this I think:

// loops for each day in the calendar
for(index=0; index  DAYS_OF_MONTH; index++)
{
if( Calendar.getDate()  index )
{
  // returns the next day to print
  var week_day =Calendar.getDay();
 
  // start the next new row for the first day of the week
  //if(week_day == 0)
  //cal += lf + col;
 
  //if(week_day != DAYS_OF_WEEK)
  {
 
  // set the variable which is inside the loop for incrementing
  var day  = Calendar.getDate();
 
  // highlight today's date
  if( today==Calendar.getDate() )
  cal += '!' + spa + day + makeLink(day) + spa +col;
 
  // prints day
  else
  cal += spa + day + makeLink(day) + spa +col;
  }
 
  // end row for last day of the week
  if(week_day == DAYS_OF_WEEK-1)
cal += lf + col;
  
}
 
  // increments until the end of the month
  Calendar.setDate(Calendar.getDate()+1);
 
}// end for loop

BJ

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Transclusion within a string

2014-02-03 Thread Mike
I'd like to have a field, e.g. email, and then use that field in a string:

a href=mailto:$view field=emailclick to email/a

But the resulting link just goes to mailto:$view field=email. Any 
ideas? I've also tried with the {{!!email}} notation, but it does the same 
thing as soon as it's inside quotes. I don't really want to use a macro, 
which seems much more heavy-weight than necessary. I also tried using

$view field=email template=mailto:$value$;

but (and maybe this is because I'm using 5.07beta) it seemed to completely 
ignore the template parameter.

Even if that last method could work it's syntactically heavy, so I'm hoping 
there's some quirk or escape sequence to let me use {{}} right inside the 
quoted string.

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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: Transclusion within a string

2014-02-03 Thread Stephan Hradek
Does this help?

\define mailto(email link)
a href=mailto:$email$;$link$/a
\end

$macrocall $name=mailto email={{!!email}} link=mail me/


-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] [twc] display and (re)calculate simple operations

2014-02-03 Thread julien23
Hi all

Is there a way to display and (re)calculate simple operations like 108.95 - 
84.72 = 24.23 without the need of an external calculator ?

Regards

Julien


-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: Transclusion within a string

2014-02-03 Thread Mike
That sort of works, but ... 

1) I'd have to include / define that macro in every tiddler where i wanted 
to use it, right? Is there an easy way to put all my macros in one tiddler 
and then just include that into other tiddlers?

2) This seems like an incredibly long way to go around for what amounts to 
string concatenation. Suppose I want to generate a URL with a field value 
in the middle of it (versus at the end of it). I could attempt something 
like the following (sorry, I'm not sure how to post code blocks):

\define cc(a:,b:)
$a$$b$
\end

a href=cc cc http://google.com/#q=; xyz {{!!x}} link/a

Where cc is for CONCATENATE, but even that doesn't work because it doesn't 
properly process the nested macros. I guess using the full macrocall widget 
might work, but it's so long! Is there not a good way to just do substring 
insertion in general?

The $view widget claims it supports templates, but I couldn't get it to 
work.

On Monday, February 3, 2014 8:56:34 AM UTC-5, Stephan Hradek wrote:

 Does this help?

 \define mailto(email link)
 a href=mailto:$email$;$link$/a
 \end

 $macrocall $name=mailto email={{!!email}} link=mail me/




-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: [TWC] Challenge: the ULTIMATE main menu

2014-02-03 Thread PMario
On Monday, February 3, 2014 6:15:42 AM UTC+1, cangaroo joe wrote:

 Does VanillaTiddlyDocs or TiddlyDocs work with TW5? 


no. The plugin mechanism is different. 
-m 

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: Transclusion within a string

2014-02-03 Thread Mike
Aaaah, this is maddening. It's so close. Suppose I create a tiddler with 
the fields:
x = mike
email = {{!!x}}

then, amazingly, 
{{!!email}} displays mike
and, weirdly,
a href={{!!emai}}link/a creates a link to {{!!x}}. hmm.

even weirder, changing the email field to be
email = mailto:{{!!x}}

then 
{{!!email}} displays mailto:{{!!x}};
and, weirdly,
a href={{!!email}}link/a creates a link to mailto:{{!!x}};.

There is some crazy stuff going on between the TW parser and the rendering 
engine that I'm not following.


On Monday, February 3, 2014 8:40:25 AM UTC-5, Mike wrote:

 I'd like to have a field, e.g. email, and then use that field in a 
 string:

 a href=mailto:$view field=emailclick to email/a

 But the resulting link just goes to mailto:$view field=email. Any 
 ideas? I've also tried with the {{!!email}} notation, but it does the same 
 thing as soon as it's inside quotes. I don't really want to use a macro, 
 which seems much more heavy-weight than necessary. I also tried using

 $view field=email template=mailto:$value$;

 but (and maybe this is because I'm using 5.07beta) it seemed to completely 
 ignore the template parameter.

 Even if that last method could work it's syntactically heavy, so I'm 
 hoping there's some quirk or escape sequence to let me use {{}} right 
 inside the quoted string.

 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: Transclusion within a string

2014-02-03 Thread Stephan Hradek


Am Montag, 3. Februar 2014 15:26:15 UTC+1 schrieb Mike:

 That sort of works, but ... 

 1) I'd have to include / define that macro in every tiddler where i wanted 
 to use it, right?


Right
 

 Is there an easy way to put all my macros in one tiddler and then just 
 include that into other tiddlers?


No

But you might want to create a javascript macro from it? Check 
http://tw5magick.tiddlyspot.com I show there the a simple example which 
might be sufficienent for you. I also have there a bookmarklet which can 
translate a normal TW5 macro to JavaScript. 


 2) This seems like an incredibly long way to go around for what amounts to 
 string concatenation



I agree 

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] TW5 Make a SVG button theme compliant

2014-02-03 Thread Danielo Rodríguez
Hello

I'm trying to add a new button in svg format. I would like to make it like 
the core ones. I mean, depending on the theme display the button in 
different colors. Also changing the color on mouse over.
Here is the SVG code.

svg xmlns=http://www.w3.org/2000/svgwidth=22pt; height=22pt
class=tw-image-button viewBox=0 0 100 100
polygon points=73.269,41.466 63.833,41.466 63.833,32.031 68.551,36.749 /
path 
d=M39.097,76.828V29.203h20.736v14.264c0,1.104,0.896,2,2,2h14.264v31.361H39.097z/
/svg


Thank you all!

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: [TW5] Linking to local files?

2014-02-03 Thread Danielo Rodríguez

El domingo, 2 de febrero de 2014 18:50:01 UTC+1, cangaroo joe escribió:

 Hi I use this way and it works:
 [[text|file://localhost\c:\Users\User_name\Downloads\text.pdf]]


That is not very portable. What if I want to have it on a usb drive? or 
what if I want to use it over multiple OS?

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: Transclusion within a string

2014-02-03 Thread Stephan Hradek


Am Montag, 3. Februar 2014 15:26:15 UTC+1 schrieb Mike:

 That sort of works, but ...

 Another idea (Can be seen on http://skeeve.tiddlyspot.com check Mike's 
mail and mailto)

tiddler: Mike's Mail
email: m...@do.main
text: {{!!title||mailto}}

tiddler: mailto
text:

\define mailto(email)
a href=mailto:$email$;click to email/a
\end

$macrocall $name=mailto email={{!!email}}/


-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Updating multiple tiddlers to TW5 format

2014-02-03 Thread Matthew Petty
I've imported an old TW to TW5. As expected, all 700 of the old tiddlers 
are in text/x-tiddlywiki format. Is there a way to set the format on 
multiple tiddlers to the new text/vnd.tiddlywiki format?

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: TW5 Make a SVG button theme compliant

2014-02-03 Thread Ton Gerner
Hi Danielo,

Have a look at the core images for the general structure, e.g. 
$:/core/images/new-button.

That contains the following (left out most of the numbers):

svg class=tw-image-new-button tw-image-button viewBox=83 81 50 50 width
=22pt height=22ptpath d=M 101.25 .. 112.5 Z//svg


The class tw-image-button is always there and there is a button specific 
class, here tw-image-new-button.
There is no color information (no stroke and fill attributes) in the images 
so the color can be controlled elesewhere (theme).

On Monday, February 3, 2014 6:41:02 PM UTC+1, Danielo Rodríguez wrote:

 Hello

 I'm trying to add a new button in svg format. I would like to make it like 
 the core ones. I mean, depending on the theme display the button in 
 different colors. Also changing the color on mouse over.
 Here is the SVG code.

 svg xmlns=http://www.w3.org/2000/svgwidth=22pt; height=22pt
 class=tw-image-button viewBox=0 0 100 100
 polygon points=73.269,41.466 63.833,41.466 63.833,32.031 68.551,36.749 
 /
 path 
 d=M39.097,76.828V29.203h20.736v14.264c0,1.104,0.896,2,2,2h14.264v31.361H39.097z/
 /svg


  
* TW5 does not like the xmlns part so take it out.
* Add an extra class if you want to style your button in some way.
* With the viewbox you can control the part of the button that will be 
shown (there is quite some 'white space' around the button as can be seen 
if you copy the code to the Google SVG editor 
http://svg-edit.googlecode.com/svn/branches/2.6/editor/svg-editor.html. I 
adjusted the values in the viewbox a little bit (still not optimal I think) 
as you can see.

svg class=tw-image-xxx-button tw-image-button width=22pt height=22pt 
viewBox=30 20 70 70
polygon points=73.269,41.466 63.833,41.466 63.833,32.031 68.551,36.749 /
path d=
M39.097,76.828V29.203h20.736v14.264c0,1.104,0.896,2,2,2h14.264v31.361H39.097z
/
/svg

Qua color this icon will follow the themes.

Cheers,

Ton

 

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: Transclusion within a string

2014-02-03 Thread Julie
Le lundi 3 février 2014 15:26:15 UTC+1, Mike a écrit :

 The $view widget claims it supports templates, but I couldn't get it to 
 work.


 Not really... the ViewWidget claims that it supports templates *with 
certain formats*, and in the formats list only the date format seems to 
work with a template.

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [tw] Re: Transclusion within a string

2014-02-03 Thread Jeremy Ruston
Hi Mike

Going back to your original question, consider the example you gave:

a href=mailto:$view field=emailclick to email/a

At the moment, that doesn't work because the double quotes on the href
attribute cause the value to be interpreted as a literal string. The docs
point out that we also support quoting attribute values with double curly
braces (for transclusion) and double angle brackets (for macro invocations).

We could also support a quote symbol that caused the attribute value to be
parsed as wikitext and rendered. For example, using quadruple round
brackets for illustration:

a href=mailto:$view field=emailclick to email/a

The reason originally that I didn't support something like that format is
because it felt like it led to overly complex symbol soup (which is a
frequent danger for TW5). I felt that the macro syntax offered a way to
simplify things by allowing the gobbledegook needed for the attribute value
to be packed up into a neat named macro definition.

Anyhow, supporting element attributes in wikitext remains an option.

Also, it's worth mentioning that TW5 will support global macros soon.

Aaaah, this is maddening. It's so close.


I'll try to work through the examples, but appreciate your feedback.


 Suppose I create a tiddler with the fields:
 x = mike
 email = {{!!x}}
 then, amazingly,
 {{!!email}} displays mike


Transclusion wikifies the transcluded tiddler field value.


 and, weirdly,
 a href={{!!emai}}link/a creates a link to {{!!x}}. hmm.


Transcluding an element attribute value currently does not wikify the
transcluded tiddler field value.


 even weirder, changing the email field to be
 email = mailto:{{!!x}}
 then
 {{!!email}} displays mailto:{{!!x}};
 and, weirdly,
 a href={{!!email}}link/a creates a link to mailto:{{!!x}};.


Subtly, what's going on here is that TW5 is wikifying the text
mailto:{{!!x}};,
and it sees the mailto:; part as the start of a mailto URI. It treats the
text up to the closing curly braces as part of the literal mailto URI, and
so never sees the transclusion.


 There is some crazy stuff going on between the TW parser and the rendering
 engine that I'm not following.


Hopefully that clarifies the present situation a little.

I think we need to add ways to explicitly specify whether the target text
of a transclusion or macro invocation is to be wikified or not. There are
situations where both are required.

Best wishes

Jeremy




On Mon, Feb 3, 2014 at 8:17 PM, Julie julie.strzele...@gmail.com wrote:

 Le lundi 3 février 2014 15:26:15 UTC+1, Mike a écrit :

 The $view widget claims it supports templates, but I couldn't get it to
 work.


  Not really... the ViewWidget claims that it supports templates *with
 certain formats*, and in the formats list only the date format seems to
 work with a template.

 --
 You received this message because you are subscribed to the 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.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [tw] Re: TW5 Make a SVG button theme compliant

2014-02-03 Thread Jeremy Ruston
Hi Danielo

The tiddler containing the SVG element should *not* have the type
image/svg+xml; give it the usual wikitext type of text/vnd.tiddlywiki.

The reason is that it is not a full SVG image document; it is a fragment of
an HTML document.

Best wishes

Jeremy



On Mon, Feb 3, 2014 at 8:38 PM, Danielo Rodríguez rdani...@gmail.comwrote:

 Thank you very much for your well explained answer TOM.

 I understand what you said, but if i remove the svg namespace xmlns=
 http://www.w3.org/2000/svg; the image is not displayed.
 Do you know how can I safely remove this line?
 Thank you very much!

 El lunes, 3 de febrero de 2014 20:03:14 UTC+1, Ton Gerner escribió:

 Hi Danielo,

 Have a look at the core images for the general structure, e.g.
 $:/core/images/new-button.

 That contains the following (left out most of the numbers):

 svg class=tw-image-new-button tw-image-button viewBox=83 81 50 50
 width=22pt height=22ptpath d=M 101.25 .. 112.5 Z//svg


 The class tw-image-button is always there and there is a button specific
 class, here tw-image-new-button.
 There is no color information (no stroke and fill attributes) in the
 images so the color can be controlled elesewhere (theme).

 On Monday, February 3, 2014 6:41:02 PM UTC+1, Danielo Rodríguez wrote:

 Hello

 I'm trying to add a new button in svg format. I would like to make it
 like the core ones. I mean, depending on the theme display the button in
 different colors. Also changing the color on mouse over.
 Here is the SVG code.

 svg xmlns=http://www.w3.org/2000/svgwidth=22pt; height=22pt
 class=tw-image-button viewBox=0 0 100 100
 polygon points=73.269,41.466 63.833,41.466 63.833,32.031 68.551,36.749
 /
 path d=M39.097,76.828V29.203h20.736v14.264c0,1.104,0.896,2,2,
 2h14.264v31.361H39.097z/
 /svg



 * TW5 does not like the xmlns part so take it out.
 * Add an extra class if you want to style your button in some way.
 * With the viewbox you can control the part of the button that will be
 shown (there is quite some 'white space' around the button as can be seen
 if you copy the code to the Google SVG editor http://svg-edit.googlecode.
 com/svn/branches/2.6/editor/svg-editor.html. I adjusted the values in
 the viewbox a little bit (still not optimal I think) as you can see.

 svg class=tw-image-xxx-button tw-image-button width=22pt height=
 22pt viewBox=30 20 70 70
 polygon points=73.269,41.466 63.833,41.466 63.833,32.031 68.551,36.749
 /
 path d=M39.097,76.828V29.203h20.736v14.264c0,1.104,0.896,2,2,
 2h14.264v31.361H39.097z/
 /svg

 Qua color this icon will follow the themes.

 Cheers,

 Ton



  --
 You received this message because you are subscribed to the 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.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: TW5 Make a SVG button theme compliant

2014-02-03 Thread Ton Gerner
Hi Danielo,

Did you use image/svg+xml as type?
Use image/svg (add it manually) or leave the type blank (the core images 
don't use a type!)

Cheers,

Ton


On Monday, February 3, 2014 9:38:12 PM UTC+1, Danielo Rodríguez wrote:

 Thank you very much for your well explained answer TOM.

 I understand what you said, but if i remove the svg namespace xmlns=
 http://www.w3.org/2000/svg; the image is not displayed.
 Do you know how can I safely remove this line?
 Thank you very much!

 El lunes, 3 de febrero de 2014 20:03:14 UTC+1, Ton Gerner escribió:

 Hi Danielo,

 Have a look at the core images for the general structure, e.g. 
 $:/core/images/new-button.

 That contains the following (left out most of the numbers):

 svg class=tw-image-new-button tw-image-button viewBox=83 81 50 50 
 width=22pt height=22ptpath d=M 101.25 .. 112.5 Z//svg


 The class tw-image-button is always there and there is a button specific 
 class, here tw-image-new-button.
 There is no color information (no stroke and fill attributes) in the 
 images so the color can be controlled elesewhere (theme).

 On Monday, February 3, 2014 6:41:02 PM UTC+1, Danielo Rodríguez wrote:

 Hello

 I'm trying to add a new button in svg format. I would like to make it 
 like the core ones. I mean, depending on the theme display the button in 
 different colors. Also changing the color on mouse over.
 Here is the SVG code.

 svg xmlns=http://www.w3.org/2000/svgwidth=22pt; height=22pt
 class=tw-image-button viewBox=0 0 100 100
 polygon points=73.269,41.466 63.833,41.466 63.833,32.031 68.551,36.749 
 /
 path 
 d=M39.097,76.828V29.203h20.736v14.264c0,1.104,0.896,2,2,2h14.264v31.361H39.097z/
 /svg


  
 * TW5 does not like the xmlns part so take it out.
 * Add an extra class if you want to style your button in some way.
 * With the viewbox you can control the part of the button that will be 
 shown (there is quite some 'white space' around the button as can be seen 
 if you copy the code to the Google SVG editor 
 http://svg-edit.googlecode.com/svn/branches/2.6/editor/svg-editor.html. 
 I adjusted the values in the viewbox a little bit (still not optimal I 
 think) as you can see.

 svg class=tw-image-xxx-button tw-image-button width=22pt height=
 22pt viewBox=30 20 70 70
 polygon points=73.269,41.466 63.833,41.466 63.833,32.031 68.551,36.749 
 /
 path d=
 M39.097,76.828V29.203h20.736v14.264c0,1.104,0.896,2,2,2h14.264v31.361H39.097z
 /
 /svg

 Qua color this icon will follow the themes.

 Cheers,

 Ton

  



-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: [TW5] Linking to local files?

2014-02-03 Thread Eric Shulman
On Monday, February 3, 2014 9:43:22 AM UTC-8, Danielo Rodríguez wrote:

 El domingo, 2 de febrero de 2014 18:50:01 UTC+1, cangaroo joe escribió:

 [[text|file://localhost\c:\Users\User_name\Downloads\text.pdf]]

 That is not very portable. What if I want to have it on a usb drive? or 
 what if I want to use it over multiple OS?


The TW5 Roadmap (see http://tiddlywiki.com/static/RoadMap.html) includes 
the following item:
   * [img[url]] for remote image embedding, and [ext[url]] for explicit 
external links

While it's not clear exactly what kinds of 'explicit external link' URLs 
will be allowed, it's possible that some special handling for relative path 
references can be implemented

Until [ext[...]] is implmented in TW5, you can use HTML syntax to create 
links:
   a href=...click me/a

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

EVERY DONATION IS IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: [twc] display and (re)calculate simple operations

2014-02-03 Thread Eric Shulman

On Monday, February 3, 2014 6:15:26 AM UTC-8, julien23 wrote:

 Hi all
 Is there a way to display and (re)calculate simple operations like 108.95 
 - 84.72 = 24.23 without the need of an external calculator ?


There's no *built-in* calculation engine for TWC... 

However, you *can* embed Javascript code to compute and generate output. 
 Here's two methods:

1) http://www.TiddlyTools.com/#InlineJavascriptPlugin
after installing this plugin, you can embed something like:
   script
  var val=108.95-84.72;
  return val.toString();
   /script

2) using evaluated parameters and tiddler transclusion of a hidden 
section
/%
!out
$1
!end
%/tiddler NameOfThisTiddler##out with: {{108.95-84.72}}

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

EVERY DONATION IS IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] TWC: TeamTasks and checkbox interface for forEachTiddler plugin

2014-02-03 Thread sklpns
hey all

I'm using a TeamTasks v0.3 file to organize tasks (some 1300 of them by the 
way).
Having installed ForEachTiddlerPlugin I'm using the following code

forEachTiddler
  where
 
'store.getValue(tiddler,UserDefinitions) 
 
store.getValue(tiddler,UserDefinitions).readBracketedList().containsAny([

PhilHawksworth,
AnneOther

]) 


  

store.getValue(tiddler,ScopeDefinitions) 
 
store.getValue(tiddler,ScopeDefinitions).readBracketedList().containsAny([

Work,
Play

])

  

store.getValue(tiddler,StatusDefinitions) 
 
store.getValue(tiddler,StatusDefinitions).readBracketedList().containsAny([

Pending,
InProgress,
OnHold,
Complete

])
'
 write
 '|+(index+1)++
|[[+tiddler.title+]]+
|+store.getValue(tiddler,UserDefinitions)+
|+store.getValue(tiddler,ScopeDefinitions)+
   
  |+store.getValue(tiddler,StatusDefinitions)+
|\n '
  

 begin '|sortable|k\n|A|!Tiddler|!~User|!~Scope|Status|h\n''

 

to generate a table report of tasks, ie a table containing tiddler name, 
user, scope and status columns

Please see a minimal test case here

https://dl.dropboxusercontent.com/u/67129323/teamtasks%20v03-fet-test.html

My question is: is there a way to add some sort of checkbox interface for 
the fet code?

Something like a number of checkboxes, one for each definition, so, for 
instance, when you check AnneOther, PhilHawksworth and Work 
you get a table report containing only the tasks assigned to AnneOther and 
PhilHawksworth that are categorized
as Work?

hope this makes sense and thanks in advance

sklpns





  

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [tw] Updating multiple tiddlers to TW5 format

2014-02-03 Thread Jeremy Ruston
Hi Matthew

On Mon, Feb 3, 2014 at 5:36 PM, Matthew Petty matthewpett...@gmail.comwrote:

 I've imported an old TW to TW5. As expected, all 700 of the old tiddlers
 are in text/x-tiddlywiki format. Is there a way to set the format on
 multiple tiddlers to the new text/vnd.tiddlywiki format?


I'd emphasise the warnings on tiddlywiki.com: there's no full upgrade
process yet, and depending on your content you may need to do a lot of
massaging to get it working in TW5 in the same way that you're used to on
TiddlyWiki Classic.

Anyhow, in the same situation, the simple technique I have used is to
import the TWC tiddlers into TW5, save the file, and then open it in a text
editor. You can then use search and replace to convert:

type=text/x-tiddlywiki

to:

type=text/vnd.tiddlywikI

It's also useful to search and replace single newlines with double
newlines. It's hard to restrict the scope to tiddler content with the
technique of editting the HTML file. Instead, you can run TW5 under Node.js
and use ginsu.sh/cmd to split the file into individual .tid files, and then
search and replace within them.

Best wishes

Jeremy



  --
 You received this message because you are subscribed to the Google Groups
 TiddlyWiki group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to tiddlywiki+unsubscr...@googlegroups.com.
 To post to this group, send email to tiddlywiki@googlegroups.com.
 Visit this group at http://groups.google.com/group/tiddlywiki.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: TW5 Writing down multiple tables

2014-02-03 Thread Danielo Rodríguez
Hi BJ,


Thank you for your answer. 
I tried your modifications but I think I'm going to surrender with this 
particular code.

 @Stephan : I reviewed your code again and then I realiced your macro is 
also printing the whole year. Reading your description I also realized that 
you already told me, sorry.

Anyway, Could someone tell me why this list is displaying nothing?

$list filter=[field:diary/214-02-03/]
/$list


Of course I h ave a tiddler with a field called diary with that 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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [tw] Updating multiple tiddlers to TW5 format

2014-02-03 Thread Matthew Petty
Hi Jeremy,
That worked fine! Thank you.
Yes, I accept this is a beta. I look forward to more updates to this 
excellent application.
Best regards,
Matthew

On Monday, February 3, 2014 1:11:32 PM UTC-8, Jeremy Ruston wrote:

 Hi Matthew

 On Mon, Feb 3, 2014 at 5:36 PM, Matthew Petty 
 matthew...@gmail.comjavascript:
  wrote:

 I've imported an old TW to TW5. As expected, all 700 of the old tiddlers 
 are in text/x-tiddlywiki format. Is there a way to set the format on 
 multiple tiddlers to the new text/vnd.tiddlywiki format?


 I'd emphasise the warnings on tiddlywiki.com: there's no full upgrade 
 process yet, and depending on your content you may need to do a lot of 
 massaging to get it working in TW5 in the same way that you're used to on 
 TiddlyWiki Classic.

 Anyhow, in the same situation, the simple technique I have used is to 
 import the TWC tiddlers into TW5, save the file, and then open it in a text 
 editor. You can then use search and replace to convert:

 type=text/x-tiddlywiki

 to:

 type=text/vnd.tiddlywikI

 It's also useful to search and replace single newlines with double 
 newlines. It's hard to restrict the scope to tiddler content with the 
 technique of editting the HTML file. Instead, you can run TW5 under Node.js 
 and use ginsu.sh/cmd to split the file into individual .tid files, and 
 then search and replace within them.

 Best wishes

 Jeremy

  

  -- 
 You received this message because you are subscribed to the Google Groups 
 TiddlyWiki group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to tiddlywiki+...@googlegroups.com javascript:.
 To post to this group, send email to tiddl...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/tiddlywiki.
 For more options, visit https://groups.google.com/groups/opt_out.




 -- 
 Jeremy Ruston
 mailto:jeremy...@gmail.com javascript:
  

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: TW5 Make a SVG button theme compliant

2014-02-03 Thread Danielo Rodríguez
Hello Ton 
Thank you very much, that fixed the problem. 

Jeremy, your advise fixed the style issue too, but if I use that image in a 
button I get a javascript when clicking the button. Image attached 

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [tw] Re: Transclusion within a string

2014-02-03 Thread Mike
Yeah, functionality like you describe, with the quadruple round bracket, 
would be good for having the flexibility when needed.

I thought about it and I wonder if there's a way to just have the parser 
combine (string literal concatenation) sibling nodes of the parse tree when 
they're both string literals. That way both the string literal and the 
wikified transclusion would be mashed together. That way it could be:

a href=http://google.com/#q={{!!x}}link/a
becomes
a href=http://google.com/#q=value of field xlink/a
becomes
a href=http://google.com/#q=value of field xlink/a

As an alternative, would it be possible to add a layer of recursion so that 
any block which gets wikified is reparsed (and rewikified) until it doesn't 
change? That would probably create lots of side issues, but it would allow 
nesting of widgets, etc.

Thanks for your excellent response. I apologize if the questions or 
suggestions I have show my ignorance of how TW works under the hood.

-Mike

On Monday, February 3, 2014 3:41:02 PM UTC-5, Jeremy Ruston wrote:

 Hi Mike

 Going back to your original question, consider the example you gave:

 a href=mailto:$view field=emailclick to email/a

 At the moment, that doesn't work because the double quotes on the href 
 attribute cause the value to be interpreted as a literal string. The docs 
 point out that we also support quoting attribute values with double curly 
 braces (for transclusion) and double angle brackets (for macro invocations).

 We could also support a quote symbol that caused the attribute value to be 
 parsed as wikitext and rendered. For example, using quadruple round 
 brackets for illustration:

 a href=mailto:$view field=emailclick to email/a

 The reason originally that I didn't support something like that format is 
 because it felt like it led to overly complex symbol soup (which is a 
 frequent danger for TW5). I felt that the macro syntax offered a way to 
 simplify things by allowing the gobbledegook needed for the attribute value 
 to be packed up into a neat named macro definition.

 Anyhow, supporting element attributes in wikitext remains an option.

 Also, it's worth mentioning that TW5 will support global macros soon.

  Aaaah, this is maddening. It's so close.


 I'll try to work through the examples, but appreciate your feedback.
  

 Suppose I create a tiddler with the fields:
 x = mike
 email = {{!!x}}
 then, amazingly, 
 {{!!email}} displays mike


 Transclusion wikifies the transcluded tiddler field value.
  

 and, weirdly,
 a href={{!!emai}}link/a creates a link to {{!!x}}. hmm.


 Transcluding an element attribute value currently does not wikify the 
 transcluded tiddler field value.
  

 even weirder, changing the email field to be
 email = mailto:{{!!x}}
 then 
 {{!!email}} displays mailto:{{!!x}};
 and, weirdly,
 a href={{!!email}}link/a creates a link to mailto:{{!!x}};.


 Subtly, what's going on here is that TW5 is wikifying the text 
 mailto:{{!!x}};, and it sees the mailto:; part as the start of a mailto 
 URI. It treats the text up to the closing curly braces as part of the 
 literal mailto URI, and so never sees the transclusion.
  

 There is some crazy stuff going on between the TW parser and the 
 rendering engine that I'm not following.

   
 Hopefully that clarifies the present situation a little.

 I think we need to add ways to explicitly specify whether the target text 
 of a transclusion or macro invocation is to be wikified or not. There are 
 situations where both are required.

 Best wishes

 Jeremy




 On Mon, Feb 3, 2014 at 8:17 PM, Julie julie.st...@gmail.com javascript:
  wrote:

 Le lundi 3 février 2014 15:26:15 UTC+1, Mike a écrit :

 The $view widget claims it supports templates, but I couldn't get it 
 to work.


  Not really... the ViewWidget claims that it supports templates *with 
 certain formats*, and in the formats list only the date format seems to 
 work with a template.
  
 -- 
 You received this message because you are subscribed to the Google Groups 
 TiddlyWiki group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to tiddlywiki+...@googlegroups.com javascript:.
 To post to this group, send email to tiddl...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/tiddlywiki.
 For more options, visit https://groups.google.com/groups/opt_out.




 -- 
 Jeremy Ruston
 mailto:jeremy...@gmail.com javascript:
  

On Monday, February 3, 2014 3:41:02 PM UTC-5, Jeremy Ruston wrote:

 Hi Mike

 Going back to your original question, consider the example you gave:

 a href=mailto:$view field=emailclick to email/a

 At the moment, that doesn't work because the double quotes on the href 
 attribute cause the value to be interpreted as a literal string. The docs 
 point out that we also support quoting attribute values with double curly 
 braces (for transclusion) and double angle brackets (for macro invocations).

 We could also support a 

Re: [tw] Re: Transclusion within a string

2014-02-03 Thread Mike
I was thinking more about it and tried something but I couldn't get it to 
work. I tried to update the $fields widget to have an extra parameter 
$fieldList and change exclude to be a boolean. That way you can specify a 
list of fields and whether you want ONLY those or all BUT those. This makes 
it super easy to take advantage of the existing $var$ replacement that the 
field widget does and pass a url or string in as a template. Something like 
this:

$ diff fields_orig.js fields.js 
45,46c45,46
 
 this.exclude = this.getAttribute(exclude);
---
 this.fieldList = this.getAttribute(fieldList);
 this.exclude = this.getAttribute(exclude,no) === yes;
51,53c51,53
 var exclude;
 if(this.exclude) {
 exclude = this.exclude.split( );
---
 var fieldList;
 if(this.fieldList) {
 fieldList = this.fieldList.split( );
55c55
 exclude = [text]; 
---
 fieldList = [text]; 
62c62,63
 if(exclude.indexOf(fieldName) === -1) {
---
 if((this.exclude  fieldList.indexOf(fieldName) === -1) ||
  (!!this.exclude  fieldList.indexOf(fieldName) !== -1)){
69c70,71
 if(exclude.indexOf(fieldName) === -1) {
---
 if((this.exclude  fieldList.indexOf(fieldName) === -1) ||
  (!!this.exclude  fieldList.indexOf(fieldName) !== -1)){



On Monday, February 3, 2014 3:41:02 PM UTC-5, Jeremy Ruston wrote:

 Hi Mike

 Going back to your original question, consider the example you gave:

 a href=mailto:$view field=emailclick to email/a

 At the moment, that doesn't work because the double quotes on the href 
 attribute cause the value to be interpreted as a literal string. The docs 
 point out that we also support quoting attribute values with double curly 
 braces (for transclusion) and double angle brackets (for macro invocations).

 We could also support a quote symbol that caused the attribute value to be 
 parsed as wikitext and rendered. For example, using quadruple round 
 brackets for illustration:

 a href=mailto:$view field=emailclick to email/a

 The reason originally that I didn't support something like that format is 
 because it felt like it led to overly complex symbol soup (which is a 
 frequent danger for TW5). I felt that the macro syntax offered a way to 
 simplify things by allowing the gobbledegook needed for the attribute value 
 to be packed up into a neat named macro definition.

 Anyhow, supporting element attributes in wikitext remains an option.

 Also, it's worth mentioning that TW5 will support global macros soon.

  Aaaah, this is maddening. It's so close.


 I'll try to work through the examples, but appreciate your feedback.
  

 Suppose I create a tiddler with the fields:
 x = mike
 email = {{!!x}}
 then, amazingly, 
 {{!!email}} displays mike


 Transclusion wikifies the transcluded tiddler field value.
  

 and, weirdly,
 a href={{!!emai}}link/a creates a link to {{!!x}}. hmm.


 Transcluding an element attribute value currently does not wikify the 
 transcluded tiddler field value.
  

 even weirder, changing the email field to be
 email = mailto:{{!!x}}
 then 
 {{!!email}} displays mailto:{{!!x}};
 and, weirdly,
 a href={{!!email}}link/a creates a link to mailto:{{!!x}};.


 Subtly, what's going on here is that TW5 is wikifying the text 
 mailto:{{!!x}};, and it sees the mailto:; part as the start of a mailto 
 URI. It treats the text up to the closing curly braces as part of the 
 literal mailto URI, and so never sees the transclusion.
  

 There is some crazy stuff going on between the TW parser and the 
 rendering engine that I'm not following.

   
 Hopefully that clarifies the present situation a little.

 I think we need to add ways to explicitly specify whether the target text 
 of a transclusion or macro invocation is to be wikified or not. There are 
 situations where both are required.

 Best wishes

 Jeremy




 On Mon, Feb 3, 2014 at 8:17 PM, Julie julie.st...@gmail.com javascript:
  wrote:

 Le lundi 3 février 2014 15:26:15 UTC+1, Mike a écrit :

 The $view widget claims it supports templates, but I couldn't get it 
 to work.


  Not really... the ViewWidget claims that it supports templates *with 
 certain formats*, and in the formats list only the date format seems to 
 work with a template.
  
 -- 
 You received this message because you are subscribed to the Google Groups 
 TiddlyWiki group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to tiddlywiki+...@googlegroups.com javascript:.
 To post to this group, send email to tiddl...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/tiddlywiki.
 For more options, visit https://groups.google.com/groups/opt_out.




 -- 
 Jeremy Ruston
 mailto:jeremy...@gmail.com javascript:
  

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To unsubscribe from this group and stop receiving emails from it, 

[tw] Re: TW5 Writing down multiple tables

2014-02-03 Thread oveek
Hi Danielo,

I took a look at the code on your tiddlyspot page. Looks like a pretty 
elaborate tiddlywik table generator.

The problem is happening only for June because June 1st (2014) happens to 
be on Sunday, and so it doesn't need any empty / leading cells in the 
calendar.

If you look at the console log output, you'll see that the table format for 
June is getting thrown off by a misplaced |.

|! June 2014
|! Sun|! Mon|! Tue|! Wed|! Thu|! Fri|! Sat|
*|*


You can add an if statement to handle the corner case and prevent the table 
from getting screwed up for any month where the 1st is on a Sunday. 

Try changing from this:

cal += lf;
cal += col;
 
// fill in the blank gaps until today's day day of the week. This is 
the first day of this month
for(var index=0; index  Calendar.getDay(); index++)
cal += '  ' + col;

To this:

// Only need a special first row with leading empty cells if the 1st 
of the month is *not* on Sunday.
if (Calendar.getDay()  0) {
cal+= lf;
cal+= col;
}

//fill in the blank gaps until today's day day of the week. This is the 
first day of this month
for(var index=0; index  Calendar.getDay(); index++)
cal+= '  ' + col;

I tested the change out and it fixes the table / calendar for June.

On Friday, January 31, 2014 1:04:32 AM UTC-5, Danielo Rodríguez wrote:

 Hello

 I'm triying to do some kind of journal. So I wrote a macro that displays 
 every month as a table. I don't understand why every month is displayed 
 correctly except for June. In fact, June is only displayed incorrectly if 
 it has other month immediately above. If it is the first or stand alone, it 
 is displayed properly.

 If you want to check the code enter to  http://braintest.tiddlyspot.com/and 
 look for TestMonth.
 Thanks in advance.
 Kind regards.


-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] [TW5] Stephan's new journal macro - suppress creator

2014-02-03 Thread Jon
Hi

I'm using Stephan's new journal macro which is very useful, but I'd like to 
suppress the creator name at the top of each journal entry.

Thanks
Jon

-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: [TW5] Stephan's new journal macro - suppress creator

2014-02-03 Thread Stephan Hradek
As the creator will always be there, your only chance is to modify the view 
template to not display the creator.


-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: TWC: TeamTasks and checkbox interface for forEachTiddler plugin

2014-02-03 Thread whatever
Hey!
You can indeed, but you need a couple of additional plugins for that. 
First, you need either CheckboxToggleTag (2) or CheckboxPlugin (3). Either 
will do, but their syntax differs a bit, so read the info first. You can 
add the appropriate syntax to your fET. With these plugins you can add tags 
to tasks tiddlers, so you'll have to add additional conditions for these 
tags to fET. You'll have to decide on the tagging strategy. Just add the 
checkboxes first, that would help you decide what tags are needed. Anyway, 
once you have the checkboxes sorted out, you'll also need RefreshTiddler 
(1) to refresh the containing tiddler once you make your selection. Also, 
in order to reset all the checkbox tags, you will need to make a script to 
fetch all the tagged tiddlers and remove the tags. For the script, you will 
need InlineJavascriptPlugin (4) as well. Once you have the checkboxes in 
place, I can give you further suggestions about tagging, if you need help.

hth
w


(1) http://www.TiddlyTools.com/#RefreshTiddler
(2) http://www.TiddlyTools.com/#CheckboxToggleTag(3) 
http://www.TiddlyTools.com/#CheckboxPlugin
(4) http://www.TiddlyTools.com/#InlineJavascriptPlugin


On Monday, February 3, 2014 10:05:14 PM UTC+1, sklpns wrote:

 hey all

 I'm using a TeamTasks v0.3 file to organize tasks (some 1300 of them by 
 the way).
 Having installed ForEachTiddlerPlugin I'm using the following code

 forEachTiddler
   where
  
 'store.getValue(tiddler,UserDefinitions) 
  
 store.getValue(tiddler,UserDefinitions).readBracketedList().containsAny([

 PhilHawksworth,
 AnneOther

 ]) 


   

 store.getValue(tiddler,ScopeDefinitions) 
  
 store.getValue(tiddler,ScopeDefinitions).readBracketedList().containsAny([

 Work,
 Play

 ])

   

 store.getValue(tiddler,StatusDefinitions) 
  
 store.getValue(tiddler,StatusDefinitions).readBracketedList().containsAny([

 Pending,
 InProgress,
 OnHold,
 Complete

 ])
 '
  write
  '|+(index+1)++
 |[[+tiddler.title+]]+
 |+store.getValue(tiddler,UserDefinitions)+
 |+store.getValue(tiddler,ScopeDefinitions)+

   |+store.getValue(tiddler,StatusDefinitions)+
 |\n '
   

  begin '|sortable|k\n|A|!Tiddler|!~User|!~Scope|Status|h\n''

  

 to generate a table report of tasks, ie a table containing tiddler name, 
 user, scope and status columns

 Please see a minimal test case here

 https://dl.dropboxusercontent.com/u/67129323/teamtasks%20v03-fet-test.html

 My question is: is there a way to add some sort of checkbox interface for 
 the fet code?

 Something like a number of checkboxes, one for each definition, so, for 
 instance, when you check AnneOther, PhilHawksworth and Work 
 you get a table report containing only the tasks assigned to AnneOther and 
 PhilHawksworth that are categorized
 as Work?

 hope this makes sense and thanks in advance

 sklpns





   


-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: [TW5] Stephan's new journal macro - suppress creator

2014-02-03 Thread Jon
Thanks, Stephan but how do I do that?

I'm new to this and need pretty clear instructions.


On Tuesday, 4 February 2014 06:47:56 UTC, Stephan Hradek wrote:

 As the creator will always be there, your only chance is to modify the 
 view template to not display the creator.




-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: [TW5] Stephan's new journal macro - suppress creator

2014-02-03 Thread Jon


On Tuesday, 4 February 2014 07:31:46 UTC, Jon wrote:

 Thanks, Stephan but how do I do that?

 I'm new to this and need pretty clear instructions.


 On Tuesday, 4 February 2014 06:47:56 UTC, Stephan Hradek wrote:

 As the creator will always be there, your only chance is to modify the 
 view template to not display the creator.




-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.


[tw] Re: TWC: TeamTasks and checkbox interface for forEachTiddler plugin

2014-02-03 Thread whatever
Hi!

You can indeed, but you'll need a couple of additional plugins for that. 
First, you'll need either CheckboxPlugin (1) or CheckboxToggleTag (2). 
Their syntax differs, but they offer similar options. Read their info 
tiddlers for more information. Once you decide which one you'll use, add 
the appropriate syntax to your fET. Using one of these plugins will involve 
adding tags to tiddlers. I suggest you include the TW markup syntax first, 
just to see how it would look. It should also help you decide which of the 
plugins to use as well as how to go about tagging. You'll also need to add 
the appropriate conditions for these tags to fET. Once you have this set 
up, you'll also need the RefreshTiddler (3), to force the refresh of the 
tiddler containing your fET. Also, you need a button to reset all the 
checkbox-added tags. You'll need to write a script which fetches all the 
appropriate tiddlers and removes the tags. For that, you'll need 
InlineJavascriptPlugin (4). Alternatively, you could just make a plugin for 
the whole thing, it would be much more flexible, I think.

hth
w

(1) http://www.TiddlyTools.com/#CheckboxPlugin
(2) http://www.TiddlyTools.com/#CheckboxToggleTag
(3) http://www.TiddlyTools.com/#RefreshTiddler
(4) http://www.TiddlyTools.com/#InlineJavascriptPlugin

On Monday, February 3, 2014 10:05:14 PM UTC+1, sklpns wrote:

 hey all

 I'm using a TeamTasks v0.3 file to organize tasks (some 1300 of them by 
 the way).
 Having installed ForEachTiddlerPlugin I'm using the following code

 forEachTiddler
   where
  
 'store.getValue(tiddler,UserDefinitions) 
  
 store.getValue(tiddler,UserDefinitions).readBracketedList().containsAny([

 PhilHawksworth,
 AnneOther

 ]) 


   

 store.getValue(tiddler,ScopeDefinitions) 
  
 store.getValue(tiddler,ScopeDefinitions).readBracketedList().containsAny([

 Work,
 Play

 ])

   

 store.getValue(tiddler,StatusDefinitions) 
  
 store.getValue(tiddler,StatusDefinitions).readBracketedList().containsAny([

 Pending,
 InProgress,
 OnHold,
 Complete

 ])
 '
  write
  '|+(index+1)++
 |[[+tiddler.title+]]+
 |+store.getValue(tiddler,UserDefinitions)+
 |+store.getValue(tiddler,ScopeDefinitions)+

   |+store.getValue(tiddler,StatusDefinitions)+
 |\n '
   

  begin '|sortable|k\n|A|!Tiddler|!~User|!~Scope|Status|h\n''

  

 to generate a table report of tasks, ie a table containing tiddler name, 
 user, scope and status columns

 Please see a minimal test case here

 https://dl.dropboxusercontent.com/u/67129323/teamtasks%20v03-fet-test.html

 My question is: is there a way to add some sort of checkbox interface for 
 the fet code?

 Something like a number of checkboxes, one for each definition, so, for 
 instance, when you check AnneOther, PhilHawksworth and Work 
 you get a table report containing only the tasks assigned to AnneOther and 
 PhilHawksworth that are categorized
 as Work?

 hope this makes sense and thanks in advance

 sklpns





   


-- 
You received this message because you are subscribed to the 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.
For more options, visit https://groups.google.com/groups/opt_out.