Folks,

The following objective I believe exposes a limitation in tiddlywiki I 
would like to resolve; however I wish to find at least a work around for 
now.

I am just writing a macro to process lines in a tiddler
<$tiddler tiddler=<<tiddlername>> >
<$list filter="[all[current]get[text]splitregexp[\n]]" variable=line>

</$list>
</$tiddler> 

However inside the list, I want to process each line, 

   - However I wish to detect a start and end condition and display only 
   the lines including and between the start and end condition.
   - This start and end condition may occur more than once in the same 
   tiddler.
   - A real world example may be extracting the content between an open and 
   close html div or section tag.

To do this my first idea so far is 

   - setting a flag at the start of when the condition is met, 
   - displaying each line when this flag is on
   - and turning the flag off when the end condition is met.

However this flag would be a variable in the traditional (non tiddlywiki 
sense) and I do not believe we have one in, tiddlywiki that does not 
require a trigger to set a text reference to that value. This is a gap I 
have recognised for some time but had trouble communicating.

A second idea is to "call a sub-routine", while the condition is met, 

   - but to do this we need to have the ability to request the next line 
   from the source tiddler
   - We can not do this to my knowledge because the flow must return to the 
   next item in the list that calls the subroutine.


Can anyone share a solution to this issues please?

thanks in advance for considering this
TW Tones


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ecffd90e-d25b-44cf-abbe-9b25624c2e62o%40googlegroups.com.

Reply via email to