[tw] Re: Having some trouble with the list filter

2014-12-10 Thread Tobias Beer
Hi Daniel,
 

> @Tobias: I am looking at taggly-tagging now... I think it may do what I 
> want, it is also possible that some of it is over my head. But, I'll get 
> back to you on that. So, in the process of trying to figure out a solution 
> I've rearranged these tags a couple different ways. If I could get the 
> filters to work the way I want, then I would use a single ACTION tag and 
> sub-tags in the way you suggest. At the moment, I've been using Action.foo 
> and Action.bar - which is clumsy but it's the only way I can separate out 
> the different topics. I fell back to regex when I couldn't figure out the 
> methodology of the filter command.
>

I'm afraid *taggly* does not provide you what you need either as it 
currently does not traverse further down the tree if an item is not 
matching your specified filter. In other words, it does not have a "stop 
here mechanism", but only a "catch all matching the filter"... stopping at 
any items that don't.

I believe, this calls for a more sophisticated tagging tree that first 
traverses and collects the whole tagging-tree and then goes up all leaves 
again to only keep matching items.

Best wishes, Tobias.

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


[tw] Re: Having some trouble with the list filter

2014-12-10 Thread Tobias Beer
Hi Jed,
 

> My problem, and I think the problem in the original question is that while 
> I can generate a list of a tags descendants to an arbitrary depth I can't 
> filter all of the items on that list.
>

Take a look at the taggly example above, it recursively collects all 
descendants.

Taggly Tagging For tw5 @tb5 


I have just updated the macro and template to make overriding the template 
easier,
as something tells me you may wish to implement your own item- / 
recursive-template.

I have, as well, updated the parameter table of the *taggly* macro here...

http://tb5.tiddlyspot.com/#taggly

Best wishes, Tobias.

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


[tw] Re: Having some trouble with the list filter

2014-12-10 Thread Daniel Caleb
First of all, thank you for all the responses... it is much appreciated. 

@Stephan: I'll include a visual of what I'm talking about:

Top-level "Parent" tag: ServDocs
  /  \
 / \
2nd level tags:   Postfix  |  Apache (extra tag: Action)
  /  \
 / \
3rd level:master.cf   |main.cf (extra tag: Action)

Ideally, I want to create a list of all tiddlers tagged "Action" under 
"ServDocs". The problem I'm running into is that, as per the example, 
main.cf is not directly tagged ServDocs and is not being discovered as a 
child of that tag. 

@Jed: That worked and as you suspected only recurses two levels, which 
might be sufficient for my purposes - thank you none the less. And yes, 
your example is precisely this issue as well.

@Tobias: I am looking at taggly-tagging now... I think it may do what I 
want, it is also possible that some of it is over my head. But, I'll get 
back to you on that. So, in the process of trying to figure out a solution 
I've rearranged these tags a couple different ways. If I could get the 
filters to work the way I want, then I would use a single ACTION tag and 
sub-tags in the way you suggest. At the moment, I've been using Action.foo 
and Action.bar - which is clumsy but it's the only way I can separate out 
the different topics. I fell back to regex when I couldn't figure out the 
methodology of the filter command.

Thanks again!
Daniel

-- 
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/d/optout.


[tw] Re: Having some trouble with the list filter

2014-12-10 Thread Jed Carty
The regexp was there because the original question was looking for tiddlers 
that had tags with the prefix Action, that wasn't part of my problem. My 
problem, and I think the problem in the original question is that while I 
can generate a list of a tags descendants to an arbitrary depth I can't 
filter all of the items on that list. The solution that I have means that 
only descendants of tiddlers that meet the filter criteria are also 
filtered.

Example:

If you had this hierarchy, with A at the root, B, C and D in level 1 and C1 
and D1 in level 2 what I would like to be able to do is say something like 
'Filter all of the descendants of A'

*A
**B
**C
***C1
**D
***D1

Using what I have if D doesn't fit the criteria than D1 isn't even checked. 

I suppose a 'descendants' filter operator would solve the problem. I will 
have to look into this.

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


[tw] Re: Having some trouble with the list filter

2014-12-10 Thread Tobias Beer
Hi Jed,
 

> <$set name=regExp value='regexp:tags[action]'>
>

Why use regexp at all? You can just check for the existence of a tag, or is 
it that you have a number of action tags whose name starts with *action*, 
like *action_foo*? If yes, why not go about it differently and have a 
tiddler called *action* to which all the different action *statuses* are 
tagging?

   - *action*
   - open
  - next
  - wait
  - done
   
Best wishes, Tobias.

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


[tw] Re: Having some trouble with the list filter

2014-12-10 Thread Tobias Beer
Maybe you're not familiar with taggly-tagging for TWc 
, but what it does is, first and 
foremost render a tagging tree, which is what *taggly* for tw5 is trying to 
emulate on a very basic level...

http://tb5.tiddlyspot.com/#Taggly%20Tagging%20For%20TW5

For an example, see here...

http://tb5dev.tiddlyspot.com 

You can easily make a conditional ViewTemplate section 
 that 
shows the tagging tree for every single tiddler, top or bottom.

Best wishes, Tobias.

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


[tw] Re: Having some trouble with the list filter

2014-12-10 Thread Stephan Hradek


Am Mittwoch, 10. Dezember 2014 05:37:04 UTC+1 schrieb Daniel Caleb:
>
> It's not a large list of results. However, I realized the tags that are 
> shown are the top level of the tag hierarchy. I thought the tag[] filter 
> would "recurse" through the tag structure.
>
> I should probably explain myself further. The Action tag is sprinkled 
> throughout my wiki and I also use the tags as a hierarchical structure - 
> like the table of contents. So, for instance, Server Documentation is a tag 
> with a great many subtags - that also have more subtags, etc. Ideally I 
> want to find all subtags of Server Documentation that are also tagged 
> Action. Is it possible to filter through all child tags of a parent?
>
> Thanks for your time!
> Daniel
>

I don't know, whether this helps.

To get a tree view of your tag hierachy up to level 3 (or 2 when you start 
counting with 0), you can use something like this. My level 0 tags are 
tagged "MainTag":


  <$list filter="[tag[MainTag]]" variable="maintag">

  <$link><$text text=<>/>
  
<$list filter="[tag]" variable="level1">
  
<$link><$text text=<>/>

  <$list filter="[tag]" variable="level2">

  <$link><$text text=<>/>

  

  

  

  



 And if you're just interested at a certain level, you can use this filter 
pattern:

level 0: <$list filter="[tag[MainTag]]">



level 1: <$list filter="[tag[MainTag]tagging[]]">



level 2: <$list filter="[tag[MainTag]tagging[]tagging[]]">




-- 
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/d/optout.


[tw] Re: Having some trouble with the list filter

2014-12-10 Thread Stephan Hradek


Am Mittwoch, 10. Dezember 2014 05:37:04 UTC+1 schrieb Daniel Caleb:
>
> I should probably explain myself further.
>

Maybe if you have an example available somewhere for us to look at? 

-- 
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/d/optout.


[tw] Re: Having some trouble with the list filter

2014-12-09 Thread Jed Carty
Sorry, I got that almost completely wrong, here is the solution now that I 
actually tested it:

This would be the tiddler that has the list:
--

<$set name=regExp value='regexp:tags[action]'>

<$list filter='[tag[Tasks]regexp:tags[Action]]' template=TemplateTest>





--

and the tiddler TemplateTest would be:
--

\define getFilter()

[tag$(regExp)$]

\end

<$view field='title'/>
<$list filter=<> template='TemplateTest'>
<$view field='title'/>


--

That would return a list of all tags at the top level of your toc that are 
tagged Tasks and have a tag that contains Action, and then all the children 
of those tiddlers that have tags that contain Action.

I just realized that this may not check all children, it may only check 
children of children that match the filter. I will have to think about the 
full search a bit.

-- 
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/d/optout.


[tw] Re: Having some trouble with the list filter

2014-12-09 Thread Jed Carty
This is actually a problem that I am trying to work out myself. The best I 
have found is to use a template that is recursively called in a list, that 
is a list widget that uses a template that contains a list widget and uses 
itself as a template. I used that to make the table of contents manager 
here ( http://nolearningrequired-full.tiddlyspot.com/#Dashboard ), the 
TOCArrangeTemplate and the Manage Table of Contents tiddlers show how that 
is done. If you just want to list the tiddlers than some modification of 
that could work.

It would be something like this in the tiddler that actually gives the list:

<$set name='above' value=Contents>
<$list filter=<> template='ThisTemplate'>



And the tiddler ThisTemplate should be

<$set name=above value=<>>
<$list filter='[tag]' template='ThisTemplate'>
<$view field='title'/>



Hopefully that will work, if not I can poke it some more.

-- 
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/d/optout.


[tw] Re: Having some trouble with the list filter

2014-12-09 Thread Daniel Caleb
It's not a large list of results. However, I realized the tags that are 
shown are the top level of the tag hierarchy. I thought the tag[] filter 
would "recurse" through the tag structure.

I should probably explain myself further. The Action tag is sprinkled 
throughout my wiki and I also use the tags as a hierarchical structure - 
like the table of contents. So, for instance, Server Documentation is a tag 
with a great many subtags - that also have more subtags, etc. Ideally I 
want to find all subtags of Server Documentation that are also tagged 
Action. Is it possible to filter through all child tags of a parent?

Thanks for your time!
Daniel


-- 
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/d/optout.


[tw] Re: Having some trouble with the list filter

2014-12-09 Thread Jed Carty
I am not able to find any way that it breaks using the main tiddlywiki site.

Do you have a very long list of results? I think I remember Jeremy saying 
that in some cases lists are truncated to something like 100 entries.

-- 
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/d/optout.