[tw] Plugin throws an error when used on a deferred NestedSlider

2012-07-08 Thread whatever
Hi!

I made a plugin (1) that parses tables of multivalue slices. It works
at it should, but I just noticed that when used on a deferred
NestedSlider (2), I get an error. Here's what the browsers say:
TypeError: Unable to get value of the property 'title': object is null
or undefined
TypeError: Cannot read property 'title' of undefined
TypeError: 'undefined' is not an object
TypeError: Cannot convert 'tiddler' to object

This only happens when the slider is deferred (using the ...
operator). If the slider is not deferred, everything works okay.

Any ideas?


(1) http://crewlist.tiddlyspot.com/
(2) http://www.TiddlyTools.com/#NestedSlidersPlugin

w

-- 
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: New: ListFiltrPlugin

2012-07-08 Thread TonG
Hi Tobias,

Nice plugin.
It even can be used in combination with the timeline macro and
FND's tagsplorer macro!

Thanks a lot,

Ton


On Jul 8, 9:53 am, Tobias Beer beertob...@gmail.com wrote:
 Hi everyone,

 Here's a new plugin that might prove helpful for a number of 
 usecases:http://tobibeer.tiddlyspace.com/#ListFiltr

 Essentially it allows to easily filter any rendered list or list-like
 pattern (but not tables).

 Enjoy, Tobias.

-- 
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 indent all listed content, not only first paragraph

2012-07-08 Thread twgrp
For the record,

pmario's solution does the trick, ie. in StyleSheet, add:

.myIndent {display: block; margin-left: 3em;}

The idea with a  inside the NestedSlider works but gives a vertical
line along the block. Not always desired.
The idea with a : does not work in this context.

@coredev - I find it odd that default {{indent{}}} is not defined to
work for this.

Thank you all!

:-)


On Jul 4, 10:31 am, Jacques Turbé jacques.tu...@gmail.com wrote:
  Or just use  the : dt indent in your format ?

  forEachTiddler where 'tiddler.tags.contains(tag1)'
          write        '* [[+tiddler.title+]]\n:tiddler
  [[+tiddler.title
  +]]$))\n\n'

 (hope it works, I haven't tested !)

 J.

-- 
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: Listing a subset of the current tiddlers tags

2012-07-08 Thread twgrp
I'm reminded of one of the problems I've encountered many times, so
just maybe you find value in this or perhaps it is the very same
question:

After much headache I eventually boiled down the question to this
phrase:

List all tiddlers tagged with names of tiddlers that, in turn, are
tagged with a specific tag.

A practical example could be to list all pupils that are tagged with
classnames. Each class is tagged with 'class' and the number of
classes are arbitrary so you can't hard code them into the 'where
clause'.

My listalizer of choce is fET but this does unfortunately not seem
possible there, at least not in a standard manner. If this is your
question, I'll provide the answers from the kind people here and
discoveries I made. (How you prefer to present the resulting list, in
a line or so, is another matter).

:-)


On Jul 8, 4:54 am, TonyM anthony.mus...@gmail.com wrote:
 Tanks -m,

 I do use Tagsplorer explorer and it is very useful, however in this case I
 want to use the current tiddlers tags #1 (Themselves Tiddlers with their
 own tags #2) - filter #1 based on #2 and return them in a form where I can
 use the results for multiple functions.

 Are you suggesting I use the code from Tagsplorer ?

 A Specific case example.
 Of all the tags on the current tiddler a number of them indicate they are
 related to one or more projects. A Project tag/tiddler is indicated as such
 buy the a Project tag/tiddler having the tag project. I want a facility
 to return all tags on the current tiddler that represent a project. Then I
 can choose how I will use this subset of tags.

 So for the current tiddler I want to scan all its tags and determine which
 tags represent projects. In One case I want to display a horizontal line of
 Projects associated with this tiddler (Not showing other tags such as
 status/priority etc...) I would like each project to have a link to the
 project to open it and a checkbox to toggle if the current tiddler is
 tagged with the project, so I can quickly remove it.

 The General case
 This facility will see a gap I perceive in tiddlywiki fixed, where the
 tagging facility is very powerful yet once a tiddler is tagged you loose
 information about the tags because there is no attributes on the tags. This
 facility will allow me to lookup the attribute of a given tag - eg; it is a
 status tag, or project tag thus allow me to selectively handle tags on the
 current tiddler by this attribute.

 Regards
 Tony







 On Saturday, 7 July 2012 19:24:05 UTC+10, PMario wrote:

  Hi Tony,
  FND created a tagsplorer [1] macro, which may be interesting for you.
  I did use it to organize my bookmarks.

  -m

  [1]
 http://svn.tiddlywiki.org/Trunk/contributors/FND/plugins/TagsplorerMa...
  [2]http://pmbm.tiddlyspace.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] Re: How indent all listed content, not only first paragraph

2012-07-08 Thread Eric Shulman
 pmario's solution does the trick, ie. in StyleSheet, add:
 .myIndent {display: block; margin-left: 3em;}

Here's another CSS trick that works with bullets at all levels, and
does not need any StyleSheet definition at all: simply put a CSS-
wrapper around the extra lines of indented content, and make sure to
start the wrapper on the end of the first line of the bullet item (the
one with the *).  Because the CSS wrapper starts on that first line,
the content within the wrapper is formatted with the same indentation.

Thus, the following TW syntax:

* text for item #1 {{wrapper{
more content

including blank lines as desired}}}
** text for item #1.1{{wrapper{
2nd level extra lines
etc}}
* text for item #2
* text for item #3

results in:

* text for item #1
  more content

  including blank lines as desired
  * text for item #1.1
2nd level extra lines
etc
* text for item #2
* text for item #3

Note how the indent matches the current bullet item regardless of the
level, rather than being a fixed amount (e.g., margin-left: 3em).
Also note that the CSS classname wrapper is a placeholder.  It
doesn't need to be defined in the StyleSheet, since it's only purpose
is to create a 'container element' to hold the extra lines of bullet
item content.

In your original fET loop, you wrote:
---
forEachTiddler where 'tiddler.tags.contains(tag1)'
write   '* [[+tiddler.title+]]\n{{indent{tiddler
[[+tiddler.title
+]]$))}}}\n\n'
---

Try this:
change the CSS classname (from indent to some placeholder) and move
the \n to follow the opening of the CSS wrapper, like this:
---
forEachTiddler where 'tiddler.tags.contains(tag1)'
write   '* [[+tiddler.title+]]{{wrapper{\ntiddler
[[+tiddler.title
+]]$))}}}\n\n'
---

enjoy,
-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] LinkifyPlugin not link to current tiddler

2012-07-08 Thread twgrp
@Tobias or anyone who knows

Is it possible to make LinkifyPlugin[1] automatically not create links
to the very current tiddler? I would suggest this is default actually
as the current behaviour makes little sense.

As stated before: thank you for an extremely interesting plugin. It
touches the very core ideas of the whole http purpose.

:-)

[1] http://linkify.tiddlyspot.com/index.html

-- 
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 indent all listed content, not only first paragraph

2012-07-08 Thread twgrp
Now that is one even more general solution to an even more recurring
problem (ie. broken bullet lists).
And so simple at that !
Thank you!!

:-)


P.S Now the mystery arises how the heck Eric can get his indentation
so perfect on the google forum!!? LOL!


(I minor detail for anyone copy-pasting direclty, there's a missing }

On Jul 8, 3:04 pm, Eric Shulman elsdes...@gmail.com wrote:
  pmario's solution does the trick, ie. in StyleSheet, add:
  .myIndent {display: block; margin-left: 3em;}

 Here's another CSS trick that works with bullets at all levels, and
 does not need any StyleSheet definition at all: simply put a CSS-
 wrapper around the extra lines of indented content, and make sure to
 start the wrapper on the end of the first line of the bullet item (the
 one with the *).  Because the CSS wrapper starts on that first line,
 the content within the wrapper is formatted with the same indentation.

 Thus, the following TW syntax:

 * text for item #1 {{wrapper{
 more content

 including blank lines as desired}}}
 ** text for item #1.1{{wrapper{
 2nd level extra lines
 etc}}
 * text for item #2
 * text for item #3

 results in:

 * text for item #1
   more content

   including blank lines as desired
   * text for item #1.1
     2nd level extra lines
     etc
 * text for item #2
 * text for item #3

 Note how the indent matches the current bullet item regardless of the
 level, rather than being a fixed amount (e.g., margin-left: 3em).
 Also note that the CSS classname wrapper is a placeholder.  It
 doesn't need to be defined in the StyleSheet, since it's only purpose
 is to create a 'container element' to hold the extra lines of bullet
 item content.

 In your original fET loop, you wrote:
 ---
 forEachTiddler where 'tiddler.tags.contains(tag1)'
         write   '* [[+tiddler.title+]]\n{{indent{tiddler
 [[+tiddler.title
 +]]$))}}}\n\n'
 ---

 Try this:
 change the CSS classname (from indent to some placeholder) and move
 the \n to follow the opening of the CSS wrapper, like this:
 ---
 forEachTiddler where 'tiddler.tags.contains(tag1)'
         write   '* [[+tiddler.title+]]{{wrapper{\ntiddler
 [[+tiddler.title
 +]]$))}}}\n\n'
 ---

 enjoy,
 -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: Referencing tids generically in SideBar

2012-07-08 Thread PMario
The macro tells you, what is wrong.
forEachTiddler ...: TypeError: context.inTiddler is null

fET needs to be inside a DOM tiddler context

eg: If you analyse the DOM using FireBug or DevTools you'll see that a
tiddler in the main displayArea looks like this:
div id=tiddlerTopic__A
  class=tiddler public isTag
  refresh=tiddler
  tags=
  tiddler=Topic_A  - this is the attribute needed
  template=ViewTemplate  ... /div

If you open the SideBarTabs tiddler in the main view it doesn't work.
So fET seems to loose it's context if it is within a tab or mayby a
slider. I didn't look at the source but I think fET needs to be
checked. IMO a good starting point would be to check the
getContainingTiddler() stuff.

hope this helps.
-mario

-- 
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: INTRO: Part Of Speech tagger TiddlyWiki/TiddlySpace

2012-07-08 Thread PMario
On 8 Jul., 19:12, PMario pmari...@gmail.com wrote:
 I'm sure, there are many possibilities. ...
To create the mouse over tooltips, I did use a legend.json [1]
tiddler. This tiddler is like a configuration file. It could be also
used to assign colors to the words. Some info if a tag should be
shown, or hidden. ...

@andrew Just an info
Do you know the NaturalNode project [2]. It can't do POST at the
moment but many other things that may be interesting in your context.

==quote==
Natural is a general natural language facility for nodejs.
Tokenizing, stemming, classification, phonetics, tf-idf, WordNet,
string similarity, and some inflection are currently supported.


-m

[1] http://postagger.tiddlyspace.com/#legend.json
[2] https://github.com/NaturalNode/natural

-- 
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: Listing a subset of the current tiddlers tags

2012-07-08 Thread PMario
On 8 Jul., 04:54, TonyM anthony.mus...@gmail.com wrote:
 Are you suggesting I use the code from Tagsplorer ?
yup,
I thought you could borrow stuff there :)

But reading your descriptons, I think tobi beers stuff is where you
could borrow too :)

http://tbgtd.tiddlyspot.com
At a tiddlers toolbar see: x-tab▾ x-plore▾ x-tag▾

http://tagsearch.tiddlyspot.com/
tagSearch is similar to x-tag

-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: LinkifyPlugin not link to current tiddler

2012-07-08 Thread Tobias Beer
I guess you mean auto-linking the titles of existing tiddlers, right?
I thought I had that fixed / implemented already... I guess I haven't ...or 
rather I forgot about that ;-)

Will take a look.


Tobias.


Am Sonntag, 8. Juli 2012 16:15:59 UTC+2 schrieb twgrp:

 @Tobias or anyone who knows 

 Is it possible to make LinkifyPlugin[1] automatically not create links 
 to the very current tiddler? I would suggest this is default actually 
 as the current behaviour makes little sense. 

 As stated before: thank you for an extremely interesting plugin. It 
 touches the very core ideas of the whole http purpose. 

 :-) 

 [1] http://linkify.tiddlyspot.com/index.html

-- 
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/-/6euQpbme_tQJ.
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: New: ListFiltrPlugin

2012-07-08 Thread Tobias Beer
Hi Tony,

Thanks. I'd like to showcase in the listfiltr space some usecases and 
examples of how it can be combined with other plugins. So any real world 
examples are highly welcome.

The actual thing for which I wanted to develop this is a tree-style menu 
that would auto-expand and show all matching items... so you don't have to 
click-to-find. Something like: 
http://examples.mediamilan.com/jquery-tree-menu/ ...no folders or icons, 
perhaps different styles for each level but that's it.

Haven't yet gotten to figure out how treeview can be (temporarily) 
auto-expanded (no caching needed)... to show all filtered results. If 
anyone knows or likes to test-drive this, please share.

Cheers, Tobias.


Am Sonntag, 8. Juli 2012 12:31:41 UTC+2 schrieb TonG:

 Hi Tobias, 

 Nice plugin. 
 It even can be used in combination with the timeline macro and 
 FND's tagsplorer macro! 

 Thanks a lot, 

 Ton 


 On Jul 8, 9:53 am, Tobias Beer beertob...@gmail.com wrote: 
  Hi everyone, 
  
  Here's a new plugin that might prove helpful for a number of usecases:
 http://tobibeer.tiddlyspace.com/#ListFiltr 
  
  Essentially it allows to easily filter any rendered list or list-like 
  pattern (but not tables). 
  
  Enjoy, Tobias.

-- 
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/-/MKLQo0xMJR4J.
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: Listing a subset of the current tiddlers tags

2012-07-08 Thread Tobias Beer
Hi twgrp,

What you want sounds like something that is useful in combination with 
HideWhenPlugin. So, if you have a student, you might want some section in 
your tiddler that shows the classes to which the student is tagging, but 
nothing else. But then, you might also want to remove those classes from 
the general tagging list. But I guess in your case you don't really want a 
tagging box at all... but only your dedicated typed tagging information.

It could be something like grouped tags... where you could define groups 
and give the groups a kind of template on how to display them, e.g. 
students' classes... you could also have a group students, which would 
likely be displayed at the class itself, so you might want to also list 
all tiddlers tagging to a class that are themselves tagged student. So 
the concept applies both ways to tags and tagging. In other words, tags 
need a qualifier... something that I have thought to be important for quite 
some time actually.

Today you would tag Mike as student and biology101. However, what you 
really want is student and class:biology101 ...something that qualifies 
the tag biology101 as being a class. You might find that out somehow as 
biology101 would surely be tagged class... but it could also be tagged 
winter2012 ...so you want to see some kind of deferred tags that are 
generally most important for tiddlers tagged student, in other words 
class... and you probalby want to see those grouped.

So, your preferred tags or tagging box would perhaps look like this...

[[Some Student]]
Tags:
![[Classes|class]]
*[[Class X]]
*[[Class Y]]
![[Sports|sports]]
*[[Volleyball]]
!Other
[[SomeOtherTag]]

And likewise for [[Some Class]]:
Tagging:
[[Students|student]]:
*[[Mike Myers]]
*[[Jon Doe]]
*[[Alexa Alexandrovich]]
![[Books]]
*[[Biology Explained 101]]
*[[Bees and Trees]]
!Other
*[[Some other tiddler tagging to this class]]

Or perhaps instead of headings and lists as tables...
|[[Students|student]] |[[Mike Myers]] |
|~|[[Jon Doe]] |
|~|[[Alexa Alexandrovich]]|

etc...

As Mario suggested, one way could be to set up x-tab from tbGTD to display 
for each student a matrix of classes per weekday or grades per class or for 
each class a matrix of students per semester, etc...

Tobias.


Am Sonntag, 8. Juli 2012 15:00:54 UTC+2 schrieb twgrp:

 I'm reminded of one of the problems I've encountered many times, so 
 just maybe you find value in this or perhaps it is the very same 
 question: 

 After much headache I eventually boiled down the question to this 
 phrase: 

 List all tiddlers tagged with names of tiddlers that, in turn, are 
 tagged with a specific tag. 

 A practical example could be to list all pupils that are tagged with 
 classnames. Each class is tagged with 'class' and the number of 
 classes are arbitrary so you can't hard code them into the 'where 
 clause'. 

 My listalizer of choce is fET but this does unfortunately not seem 
 possible there, at least not in a standard manner. If this is your 
 question, I'll provide the answers from the kind people here and 
 discoveries I made. (How you prefer to present the resulting list, in 
 a line or so, is another matter). 

 :-) 


 On Jul 8, 4:54 am, TonyM anthony.mus...@gmail.com wrote: 
  Tanks -m, 
  
  I do use Tagsplorer explorer and it is very useful, however in this case 
 I 
  want to use the current tiddlers tags #1 (Themselves Tiddlers with their 
  own tags #2) - filter #1 based on #2 and return them in a form where I 
 can 
  use the results for multiple functions. 
  
  Are you suggesting I use the code from Tagsplorer ? 
  
  A Specific case example. 
  Of all the tags on the current tiddler a number of them indicate they 
 are 
  related to one or more projects. A Project tag/tiddler is indicated as 
 such 
  buy the a Project tag/tiddler having the tag project. I want a 
 facility 
  to return all tags on the current tiddler that represent a project. Then 
 I 
  can choose how I will use this subset of tags. 
  
  So for the current tiddler I want to scan all its tags and determine 
 which 
  tags represent projects. In One case I want to display a horizontal line 
 of 
  Projects associated with this tiddler (Not showing other tags such as 
  status/priority etc...) I would like each project to have a link to the 
  project to open it and a checkbox to toggle if the current tiddler is 
  tagged with the project, so I can quickly remove it. 
  
  The General case 
  This facility will see a gap I perceive in tiddlywiki fixed, where the 
  tagging facility is very powerful yet once a tiddler is tagged you loose 
  information about the tags because there is no attributes on the tags. 
 This 
  facility will allow me to lookup the attribute of a given tag - eg; it 
 is a 
  status tag, or project tag thus allow me to selectively handle tags on 
 the 
  current tiddler by this attribute. 
  
  Regards 
  Tony 
  
  
  
  
  
  
  
  On Saturday, 7 July 2012 19:24:05 UTC+10, PMario wrote: 
  
 

[tw] Re: LinkifyPlugin not link to current tiddler

2012-07-08 Thread twgrp
No, wait, what I mean is that when you're in a specific tiddler, say
TiddlerA, then it is a bit of an overkill that if I mention TiddlerA
in the text it gets linkified. (There's no point in clikingt it as I'm
already in that very tiddler).

The general auto-linking titles to existing tiddlers is GREAT (as long
as it is easy to disable on demand). This is really what weaves things
automatically.

Thanx Tobias!

:-)

On Jul 8, 11:09 pm, Tobias Beer beertob...@gmail.com wrote:
 I guess you mean auto-linking the titles of existing tiddlers, right?
 I thought I had that fixed / implemented already... I guess I haven't ...or
 rather I forgot about that ;-)

 Will take a look.

 Tobias.

 Am Sonntag, 8. Juli 2012 16:15:59 UTC+2 schrieb twgrp:









  @Tobias or anyone who knows

  Is it possible to make LinkifyPlugin[1] automatically not create links
  to the very current tiddler? I would suggest this is default actually
  as the current behaviour makes little sense.

  As stated before: thank you for an extremely interesting plugin. It
  touches the very core ideas of the whole http purpose.

  :-)

  [1]http://linkify.tiddlyspot.com/index.html

-- 
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: Referencing tids generically in SideBar

2012-07-08 Thread twgrp
 hope this helps.

...well, I figured out what the term DOM means but the wikipedia
article is too informative to be of use and to install and learn a
developing environment... it'll have to be another time, but thanks
anyway.

If anyone happens to know a quick fix I'd be more than happy to hear
it.

Thank you all!

:-)

-- 
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.