[tw] Re: Filter using toc?

2017-01-23 Thread Steven Schneider
Thanks, Tobias, This is great. I'm using it in various ways all the time 
these days. It's an interesting way to slice into a wiki - through toc.

//steve.


On Wednesday, January 11, 2017 at 6:19:54 PM UTC-5, Tobias Beer wrote:
>
> Hi Seven,
>
> Just announced 
>  
> the release of tobibeer/toc .
>
> Best wishes,
>
> Tobias.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bf720422-3f3e-4aa6-ab65-687ea79d7034%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Filter using toc?

2017-01-11 Thread Tobias Beer
Hi Seven,

Just announced 
 
the release of tobibeer/toc .

Best wishes,

Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d7b55eb4-2cc9-4c75-855a-806b225ce018%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Filter using toc?

2017-01-11 Thread Tobias Beer
Hi Mario,
 

> I'm not sure, what you want to achieve
>

One useful thing could be a searchable index of everything in a toc.
Another useful thing would be to able to page through a toc as if a book.

Best wishes,

Tobias. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/63f07066-8787-4782-94ce-95d71041a5f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Filter using toc?

2017-01-11 Thread CL
You could use this filter.
add more 'tagging[]' operator for depth of your toc

<$list filter="
[[TableOfContents]]
[[TableOfContents]tagging[]]
[[TableOfContents]tagging[]tagging[]]
[[TableOfContents]tagging[]tagging[]tagging[]]
[[TableOfContents]tagging[]tagging[]tagging[]tagging[]]
[[TableOfContents]tagging[]tagging[]tagging[]tagging[]tagging[]]
">
<$link>{{!!title}}


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/28223176-cb9f-4e96-ba20-db773a1840a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Filter using toc?

2017-01-11 Thread PMario
On Wednesday, January 11, 2017 at 5:04:49 AM UTC+1, Steven Schneider wrote:
>
> I figure this must be possible, but can't quite get it to work. 
> How would I write a filter that would list all tiddlers listed with < "TableOfContents">>?
>

I'm not sure, what you want to achieve. ... The toc macro is a "relatively" 
straight forward recursive macro, that creates a structure using ordered 
lists. So changing this behaviour, to create a simple list, should be 
possible. 

If you want to print out a dynamically generated filter, that's used to 
create the toc, this should be possible too. .. But the result will be 
super ugly and barely readable for humans. We have to deal with "infinite 
recursion protection", which makes the filter ugly. 

Can you clarify the usecase a bit?

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b3a502d6-c3ab-4114-b6db-cd417bdc607b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Filter using toc?

2017-01-10 Thread Tobias Beer
Hi Steven,

I once made one:

$:/core/modules/filters/toc.js 


   1. wasn't considered useful for the core.
   2. needs some more polishing to prevent recursion
   - right now it doesn't, so you may hit an infinite loop
   3. will publish as a plugin.
   4. will reconsider options, since in the end I want to be able to define:
  - the tag (falls back to currentTiddler)
  - the max level to go down to
  - a filter of titles to exclude (and not further look for children)
  - a filter of titles to truncate (and not further look for children)
 - they are in the results
  
Best wishes,

Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3bcffcff-ed47-4859-b912-475e6b00dc1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.