[tw] Re: Tiddlywiki-style categories in TiddlyWiki

2012-01-14 Thread Måns
Hi Andy

 Are there any plugins for TiddlyWiki that make it possible to use
 categories in a similar way to how they are used in MediaWiki? I want to
 organize tiddlers using categories and subcategories.

Yes I think so (I haven't really used MediaWiki much - so I might be
wrong...).
There are in fact several options/plugins which can help you create
lists based on tags.

Let's start with the coreplugin list filter macro.

If you write: list filter [tag[category]] you'll get a bulleted
list showing titles/links to all tiddlers tagged with category..

You can create a taggly list with a template which will show
category titles *and* all tiddlers tagged with that category.:
In a tiddler called TagglyList write:
list filter [tag[category]] template:TagglyList##template/%
!template
view title linktagging
!end %/

If you want you can show what tags are assigned to category tiddlers
as well:
In a tiddler called TagglyList write:
list filter [tag[category]] template:TagglyList##template/%
!template
|| view title link |
|tagging|tags|
!end %/

If you want even more control you can install TagglyTaggingPlugin
http://mptw.tiddlyspot.com/#TagglyTaggingPlugin and write:

tagglyTagging category to show all tiddlers tagged with category
and if you put tagglyTagging CategoryTitle into each category
tiddler you will be able to see a list of all tiddlers tagged with
that category in your first tiddler - otherwise you will only be able
to see a number indicating how many tiddlers that are tagged with the
title of a category...

You can mix the core's list filter macro with the TagglyTagging macro
via a template like this:
In a tiddler called TagglyList write:
list filter [tag[category]] template:TagglyList##template/%
!template
view title linktagglyTagging
!end %/

It's quite powerfull because you will be able to open/view the
contents of every individual tiddler from a category directly in the
category list...

A third option is to install Jacks TiddlerListMacro.
It will provide an option to create an alphabetic list of all tiddlers
tagged with a category - in a style very similar to that used by
WikiPedia:
http://sites.google.com/site/jackparke/jtw.html

I'm using it here: http://mmpedia.tiddlyspace.com/

There are even more ways to do it -  ForEachTiddlerPlugin
http://tiddlywiki.abego-software.de/#ForEachTiddlerPlugin
will alow you to style lists any way you want Check out examples:
http://tiddlywiki.abego-software.de/#ForEachTiddlerExamples

Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Coretweak: 890 add conditional test to tiddler macro for my use case ?

2012-01-14 Thread Tobias Beer
Måns,

First of all: no, we do not define the results of getDay(). Those are
given by said standard javascript function.

I believe both your intellectual and your js capacity do just fine, I
can tell. It's just my sloppy untested proposals which at times need a
second look to turn out right...

So, if getDay() = 0 means we're talking of a Sunday and with 1
being Monday ...and a week presumably having some unchanging 7
days ...well then to get weekends, the code must sure read like this:

tiddler {{
[0,6].contains((new
Date()).getDay())?WeekendTiddler:WeekDayTiddler
}}

My morning sleepiness almost went so far as to write saturday as being
7, but lucky for us, I spared us that bit of confusion, phew.

I guess that's why quality code, above all, requires just as much
attention (1) as it does require know-how ...or rather 'know where to
look for answers for problems to solve' ...and most importantly,
testing (2).

In other words, it can be that simple and you can still get wrong, if
you miss out on those two. :-D

Cheers, tb

On 14 Jan., 08:28, Måns humam...@gmail.com wrote:
 Hi Tobias

  Would this help to get to the right evaluated 
  statement?http://www.w3schools.com/jsref/jsref_getday.asp

 Yes I think/hope so - thank you very much :-)









  Something like:
  tiddler OnlyOnSundays if:{{(new Date()).getDay()==0;}}

  In case you have multiple valid weekdays, e.g. weekends, you could
  check for...
  tiddler OnlyForWeekends if:{{
  [0,1].contains((new Date()).getDay());

  }}

  You could do a similar check for months for something like...
  Welcome back to our new years special

  But, if you really need the two alternatives, you might as well do
  this, without requiring CoreTweak 890 at all...

  tiddler {{
  [0,1].contains((new
  Date()).getDay())?WeekendTiddler:WeekDayTiddler

  }}

  Come to think of it, it much looks like one really never needs
  CoreTweak 890. Since tiddler  doesn't render anything, you can
  apply the above trick under any condition. So, your basic conditional
  tiddler makro simply looks like this:

  tiddler {{condition?IfTrueShowThis:}}

  Whereas condition corresponds to a syntactically correct boolean
  expression.

 Your thoughts on this matter are very *very* welcome, - my
 intellectual capacity (and js-experience) is however not quite there
 yet I'm afraid 

 Kriss had a question in 
 november:http://groups.google.com/group/tiddlywiki/browse_thread/thread/121884...
 which seems to be similar (in some respect ??..)...

 Would you be so kind to write an example where condition is a
 boolean expression which asks if Today is Thursday
 IfTrueShowThis:TiddlerYesThisIsThursday ???

 Q:
 If I write this: tiddler {{
 [0,1].contains((new
 Date()).getDay())?WeekendTiddler:WeekDayTiddler}} 

 It will show the content of WeekDayTiddler if date is 0 or 1 ?? -
 Is 0 and 1 always Sunday and Monday - or must I define those
 somewhere in the script - like:
  var d=new Date();
 var weekday=new Array(7);
 weekday[0]=Sunday;
 weekday[1]=Monday;)

 Or is it WeekendTiddler which defines what days that are weekenddays??

 Hmm -
 As you can tell - from my questions - I'm a little out of my league
 here :-)

 Cheers Måns Mårtensson

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Coretweak: 890 add conditional test to tiddler macro for my use case ?

2012-01-14 Thread Tobias Beer
 Kriss had a question in 
 november:http://groups.google.com/group/tiddlywiki/browse_thread/thread/121884...
 which seems to be similar (in some respect ??..)...

Kriss' questions seems similar but it really isn't.

In fact, his solution has what I would call design flaws which are:
I would not identify tiddlers by their names. Instead, I would use
tagging to retrieve lists sorted by date of tiddlers tagged, say
'Journal', or 'Meeting'... not only, because I would like the liberty
to prepend a few key words after a tiddler whose name starts with a
date, e.g.:

2011.11.04 Posted Question In Google Groups

Of course, one could split those strings, but that might turn out
difficult if the format contained named dates.

Anyhow, to answer Kriss post here, as it hadn't been answered at his
topic:
groups.google.com/group/tiddlywiki/browse_thread/thread/
121884cf0cef5ebf

Let's call his functional tiddler [[Diary]]:
tiddler show with:{{
var tid, out = '',
fmt = 'DD mmm YY';
oneday = 24*60*60*1000,
d = t1 = new Date(),
t0 = t1 - parseInt('$1')*oneday;
while(d  t0){
d = d - oneday;
tid = new Date(d).formatString(fmt);
if(store.tiddlerExists(tid))
out += '*[[' + tid + ']]\n';
 }
out;
}}

And then he could place something like this in another tiddler...
My last 7 days:
tiddler Diary with:7

However, this doesn't check on any tags and you would have to put your
meeting notes into your journal tiddlers, as you could (obviously)
only have one tiddler per day, and it doesn't take care of any date
before y2k, etc, etc...

So, I suggest for a review like the one Kriss wants to do, you would
either use the list macro or something like...
http://tobibeer.tiddlyspace.com/#Filtr

tb

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Coretweak: 890 add conditional test to tiddler macro for my use case ?

2012-01-14 Thread Tobias Beer
To be precise, the above requires a tiddler called [[show]] that
doesn't contain anything but...

$1

Cheers, tb.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: How do I get a sum for a field in many tiddlers

2012-01-14 Thread axelm
Yes, that works. Thank you very much.

Strange how difficult it is with tw to simply sum a field.
Even if you enter the number in a field like this: 1,400.00 the script 
handles it like text because of the comma.
Well at least it works now for my purpose.
But then, I guess, it is not a spreadsheet.

Thank you again, everybody.
Till next time,

axelm

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/pELbk-hm4OMJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: How do I get a sum for a field in many tiddlers

2012-01-14 Thread Tobias Beer
 But then, I guess, it is not a spreadsheet.

Keep in mind that also your (average Excel) spreadsheet needs to know
your decimal sign as well, can't use . and ,
interchangeably ...just one of them.

So, if you see it like that, it's fairly straight forward...

1) Get the field value (which is always a string)
2) Turn it into a number and total up.

Of course, you need to know these things... or be willing to figure
them out. But I would consider this a fun practice... that makes you
understand that things are never quite straight forward or as one
would believe.

tb

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: How do I get a sum for a field in many tiddlers

2012-01-14 Thread axelm
You are absolutely right. In Europe they use the . as a thousands 
separator and the , as the decimal point.
Just out of curiosity, the result this script is producing looks like this: 
12252.89
How would you make it look like this: 12,252.89 ?

Also, another result looks like this: 12252.2
when it should like this: 12252.20
It leaves the trailing zero out.

Not a big deal, just curious.

thanks,

axelm

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/GgQPwexsSpcJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Help with javascript out

2012-01-14 Thread skye riquelme
Hi All
Still on a steep learning curve with javascript... for example
this code works -
script
var ref=ecoConstrucao;
var out=;
var tids=;
var tids=store.sortTiddlers(store.getMatchingTiddlers(ref),-
modified);
   for (var t=0; ttids.length; t++) {
out+=[[+tids[t].title+]]\n;
}
return out;
/script

..but when I put that same code inside a HTML form, like this -

htmlform
Tema: select name=referencia style=width:140px;
optionAgua/option
optionAnimais/option
optionareasAridas/option
optionClima/option
optioncontextoHistorico/option
optionDesign/option
optionEcologia/option
optionecoConstrucao/option
optionespiritu/option
optionPermacultura/option
optionResiliencia/option
optionSaude/option
optionseAlimentando/option
optionsistemasFinanceiros/option
optionsistemasSociais/option
optionSolos/option/select
input type=button value=procurar onclick='
var ref=ecoConstrucao;
var out=;
var tids=;
var tids=store.sortTiddlers(store.getMatchingTiddlers(ref),-
modified);
   for (var t=0; ttids.length; t++) {
out+=[[+tids[t].title+]]\n;
}
return out;
'/form/html

I don´t see the output... why doesn´t the script give me the same
output when inside the form 

Thanks in Advance
Skye

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Help with javascript out

2012-01-14 Thread Eric Shulman
 script
 ...
 return out;
 /script

 ..but when I put that same code inside a HTML form, like this -

 htmlform
 input type=button value=procurar onclick='
 ...
 return out;
 '/form/html

 I don´t see the output... why doesn´t the script give me the same
 output when inside the form 

The ability to *render output* by returning text from a script is an
enhanced feature of my InlineJavascriptPlugin and is not supported by
native HTML form 'onclick' script handling.

-e

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: How do I get a sum for a field in many tiddlers

2012-01-14 Thread Eric Shulman
 This line fetches all tiddlers taged someTag :
 tids=store.getTaggedTiddlers('someTag');
 Where do I insert the ! to make it fetch all the tiddlers that are NOT
 tagged someTag ?

The TWCore store.getTaggedTiddlers() function only accepts a single
tag value to match.  However, if you install
   http://www.TiddlyTools.com/#MatchTagsPlugin
you can use the plugin-defined store.getMatchingTiddlers() function,
which accepts full boolean expression syntax (and/or/not, plus
parentheses).  You can then write:

tids=store.getMatchingTiddlers('!someTag');

or even complex 'tag expressions' like:

tids=store.getMatchingTiddlers('thisTag OR (thatTag AND NOT
theOtherTag)');

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios


TiddlyTools needs YOUR financial support...
Help ME to continue to help YOU...
make a generous donation today:
   http://www.TiddlyTools.com/#Donations

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 post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Help with javascript out

2012-01-14 Thread skye riquelme
Thanks Eric...

thats clears up the issue, but does not solve my problem..using
just your InlineJavascript capabilities... how can I have a user
select from a list of options ( as in my initial question) and then
use your script to render the output

Thanks
Skye

On Jan 14, 5:41 pm, Eric Shulman elsdes...@gmail.com wrote:
  script
 
  return out;
  /script

  ..but when I put that same code inside a HTML form, like this -

  htmlform
  input type=button value=procurar onclick='
  ...
  return out;
  '/form/html
  I don´t see the output... why doesn´t the script give me the same
  output when inside the form 

 The ability to *render output* by returning text from a script is an
 enhanced feature of my InlineJavascriptPlugin and is not supported by
 native HTML form 'onclick' script handling.

 -e

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Help with javascript out

2012-01-14 Thread Eric Shulman
 thats clears up the issue, but does not solve my problem..using
 just your InlineJavascript capabilities... how can I have a user
 select from a list of options ( as in my initial question) and then
 use your script to render the output

*Inline* javascript is scripting that is invoked while rendering TW
content.  In that situation, the result of the script can be rendered
and inserted *in place of* the embedded script code.  However, HTML
'onclick' scripts are not processed while content is being rendered,
and are triggered by a user interaction instead.  Thus, there is no
*implicit* rendering of output (and no default place to put it).

Nonetheless, you *can* create TW output from HTML 'onclick' scripts,
like this:
--
htmlform
...
input type=button value=procurar onclick='
...
var target=this.form.nextSibling
target.innerHTML='';
wikify(out,target);
'/formspan/span/html
---

* An empty 'target' span has been added *immediately* following the
closing /form.  This is where your output will be rendered.

* Instead of return out, you must explicitly use the TWCore
wikify(...) function to render the output into the target span
referred to by this.form.nextSibling.  Note the line:
target.innerHTML=''; ... this clears out any old results before
rendering the new results.  Otherwise, each time you click the button,
the script will *append* it's output to any previously displayed
content.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios


TiddlyTools needs YOUR financial support...
Help ME to continue to help YOU...
make a generous donation today:
   http://www.TiddlyTools.com/#Donations

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 post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: How do I get a sum for a field in many tiddlers

2012-01-14 Thread PMario
hmmm,

look at this:

var testVals = [1,1,2,3.1];
var sum=0;

for (i=0; itestVals.length; i++){
   val=testVals[i]
   sum+=isNaN(val)?0:(val*1);
}
console.log('sum: ', sum);


The output is 5.1, which according to the program is right, because
the first number isn't a number. But it probably is one for a newbie
user. see acel's posts. ...

The problem here is, that the for loop (with isNaN) is too gentle.
IMO it needs to throw an error, or displays a message. eg: numbers
have to be written like '1.1'  check tiddler 'xyz' 

In this case: If you need to trust the result, sum should not contain
a number output. It needs to be something else eg: undefined

@axelm
Is this example a real usecase, or is it just for fun?

-m

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Coretweak: 890 add conditional test to tiddler macro for my use case ?

2012-01-14 Thread Eric Shulman
 Come to think of it, it much looks like one really never needs
 CoreTweak 890. Since tiddler  doesn't render anything, you can
 apply the above trick under any condition. So, your basic conditional
 tiddler makro simply looks like this:

 tiddler {{condition?IfTrueShowThis:}}

 Whereas condition corresponds to a syntactically correct boolean
 expression.

 That's quite some cool stuff. So, thanks for pointing it out, Måns!

I use that technique throughout my TiddlyTools 'transclusion'
scripts.  I 'sniff' to see if you are viewing the transclusion tiddler
itself.. if you are, then it shows the '##info' section of the tiddler
(i.e., you view the documentation).   However, when the tiddler is
actually transcluded, then it shows the ##show section of the
tiddler (i.e, the desired script-generated output).

You are correct, that CoreTweak 890 isn't actually *necessary* for
conditional transclusion.  However, it does provide a cleaner syntax
for some common use cases... specifically, testing an option checkbox
setting, or the readOnly flag, e.g.:
tiddler EditorsOnly if:{{!readOnly}}
instead of
tiddler {{!readOnly?EditorsOnly:

Also, one reason why this was NOT included in the TWCore is that it
relies upon evaluated parameters, which are not permitted on
TiddlySpace (at least, not without setting the override).  I have
plans to further enhance the if: syntax, so that can handle the most
common use cases (i.e., references to option checkbox flags and simple
text comparisons) without using eval param syntax.  Something like:
   tiddler EditorsOnly if:readOnly
   tiddler EditorsOnly if:!chkHideEditingOverHttp
   tiddler EditorsOnly if:txtUserName==somename
The idea is to 'manually' parse the param text for specific syntax
patterns such as:
   chkSomeOption
   !chkSomeOption
   txtSomeOption==sometext
   txtSomeOption!=sometext
   tiddler.fieldname
   tiddler.fieldname==sometext
   tiddler.fieldname!=sometext
   etc.

-e

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Implementing giewiki for yourself just got a whole lot easier

2012-01-14 Thread Poul
Now you can even do it from your iPhone. Thanks to Adrian Scott's
CoderBuddy.com service, you no longer need to install Python and the
App Engine SDK in order to get your own giewiki up and running in the
cloud. You still need to set up an App Engine account if you want to
go beyond just trying it out, but what CoderBuddy offers is a web-
hosted code editor combined with the App Engine SDK for testing and
deployment to Google App Engine. And you don't even have to edit any
code in order to implement giewiki. Furthermore, users can share
projects, i.e. copy each other's public projects or work jointly on
the same. You can get started by going to 
https://www.coderbuddy.com/projects/giewiki
and if you care, click Copy Project on that page. At this point,
you'll have to login of course - just login with your Google account.

:-) Poul
http://giewiki.appspot.com

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] StyleSheetTagCloud or somewhere else - where should I put a{display:inline}?

2012-01-14 Thread Arek
Hello,

I've put Eric's wonderful TagCloud into the side bar. The links there have 
display:block property by default.
That's ok for the menu but doesn't make sense for a tag cloud.
What should I do to make TagCloud links displayed with 'inline' property 
while keeping the other side bar links with default 'block' property?
I've put 
.tagCloud a {display:inline;}
into the StyleSheetTagCloud tiddler but it doesn't work that way.
You can see it here: http://hr4startups.com/HR_wiki_english.html
Thanks in advance for any tips! 



-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/SyYZQmmH8e0J.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Migrate this forum to a wiki (not a TW-based wiki)

2012-01-14 Thread Arek


On Tuesday, January 10, 2012 6:20:06 AM UTC+1, Lyall wrote:

  I would hate to be a complete new user in tiddly world


Yes, it hurts. As a noob in tiddly world I can say that the lack of 
well-structured, complete resource is really discouraging.
There seems to be a huge gap in the spectrum of tiddly-related information. 
On one side there's quite a lot of basic introductions available (with 
giffmex on top of them).
On the other hand there are myriads of granularised bits of useful 
information. However it's hard to find a resource helping to travel from 
one side to the other :)

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/PNeSpT9lK1oJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Coretweak: 890 add conditional test to tiddler macro for my use case ?

2012-01-14 Thread Tobias Beer
 I have plans to further enhance the if: syntax, so that can handle the most
 common use cases (i.e., references to option checkbox flags and simple
 text comparisons) without using eval param syntax.

Beware of the possibilities which might turn out to be quite a lot.

Perhaps it would be nice if one could cook a version of this with
the exact possibilities one needs... thus the functions that check for
certain conditions are like addons to a plugin that would enhance the
tiddler macro with the 'if' clause as suggested.

I know this sounds like a bit over the top, but I can imagine the code
can become quite a beast if you want to allow for a multitude of
different use cases... what I mean is, something like the optional
functions you provide for in RelatedTiddlersPlugin or something that
is extended by further javascript, like forEachTiddler, but perhaps
rather with systemConfig-tagged-addons may be more handy.

Sure, there are your above mentioned core checks for options and
fields, but even those can become quite bloated and require a lot of
dedicated syntax to define the condition you are actually trying to
arrive at. So, for even slightly complex conditions, I would perhaps
allow to rather  hook addon-like functions which manage the checking
of this or that complex condition... and are passed the most needed
parameters as variables, e.g. place and tiddler.

tb.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: StyleSheetTagCloud or somewhere else - where should I put a{display:inline}?

2012-01-14 Thread Tobias Beer
In css, IDs are dominant. So try...

#sidebarOptions .tagCloud a {display:inline;}

tb.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Automatically transcluding other tiddlers into an existing tiddler

2012-01-14 Thread Andy Green
I want to automatically transclude tiddlers with a specific tag into 
another tiddler. If I had a tiddler called questions, I would want to 
automatically transclude all tiddlers with the tag question or 
questions into that tiddler. Is there a plugin that can accomplish this?

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/bI9xq4YhICAJ.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Kindle Export

2012-01-14 Thread DanielF847
I have the kindle dx. and I have been able to open the empty.html
file, but nothing displays, I've enabled javascript and still can't
get it to work, also the web browser is slow. I don't care about
editing.

Ideally, I would like to just export my TW before a test or something
and then use the kindle to study.

Just in case anyone else is looking, the kindles (not including the
kindle 1) can access local html content.
the document root can be found at:

file:mnt/us/documents/

there are 4 slashes, I assume, because it uses a fhs style file
structure. so file: would be root.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: Automatically transcluding other tiddlers into an existing tiddler

2012-01-14 Thread Eric Shulman
On Jan 14, 4:01 pm, Andy Green jar...@gmail.com wrote:
 I want to automatically transclude tiddlers with a specific tag into
 another tiddler. If I had a tiddler called questions, I would want to
 automatically transclude all tiddlers with the tag question or
 questions into that tiddler. Is there a plugin that can accomplish this?

Install this TiddlyTools plugin:
   http://www.tiddlytools.com/#EmbedTiddlers
and then you can write:
   tiddler EmbedTiddlers with: =question

Note that, if you want to match both tag values (question and
questions), you can install
   http://www.tiddlytools.com/#MatchTagsPlugin
which will allow you to use boolean expressions instead of just single
tag values:
   tiddler EmbedTiddlers with: =question OR questions

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios


TiddlyTools needs YOUR financial support...
Help ME to continue to help YOU...
make a generous donation today:
   http://www.TiddlyTools.com/#Donations

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 post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] keep indentation between lines

2012-01-14 Thread DanielF847
I prefer to edit without a wysiwyg editor, but I do wish that the
default editor in TW would remember the indentation of the previous
line. recently I've resorted to using my code editor to edit my
tiddlers and then pasting the result into TW.

for example if I am typing a tabbed list
  first item
   sub first item
subsubfirst item

when I hit enter, I wish that there would already be 3 tabs waiting
for me on the next line. same with #s and same with *'s
in my code editor (notepad++) I just use tabs, and it would remember
the indentation between lines.

has anyone else been looking for this? does it exist already?

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.



[tw] Re: keep indentation between lines

2012-01-14 Thread Eric Shulman
 I prefer to edit without a wysiwyg editor, but I do wish that the
 default editor in TW would remember the indentation of the previous
 line.
...
 when I hit enter, I wish that there would already be 3 tabs waiting
 for me on the next line. same with #s and same with *'s
 in my code editor (notepad++) I just use tabs, and it would remember
 the indentation between lines.
...
 has anyone else been looking for this? does it exist already?

Although the behavior you describe is not currently implemented, I can
easily add it to
   http://www.TiddlyTools.com/#TextAreaPlugin
which already adds custom keypress handlers for the editor's text area
(to support 'search inside text area' using CTRL-F/G)

I can create and add a new keystroke handler (and corresponding
option, chkTextAreaAutoIndent), so that when the enter key is
pressed, the plugin can scan the current line for leading spaces,
tabs, or bullets.  If present, those leading characters will be
automatically copied and inserted following the newline, producing the
'auto indentation' effect you describe.

I'll post a followup when I've uploaded an update.  I have a few
things 'on my plate' at the moment, so if you don't hear anything in a
week, bump this thread.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios


TiddlyTools needs YOUR financial support...
Help ME to continue to help YOU...
make a generous donation today:
   http://www.TiddlyTools.com/#Donations

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 post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.