This is so much fun, that I can't stop myself from posting yet another
tweak:

I use NestedSlidersPlugin(withGiffmexTweak) (original source:http://
www.tiddlytools.com/#NestedSlidersPlugin) - in NoBrainerNotes by Dave
Gifford.
Therefore I have access to sliderframes as well - and I wanted the
firstlines to appear smaller (with subscript) and as italics...

I did like this:
'"*<<siteMap [["+tiddler.title+"]] . sliders$))&rarr;
~~//"+getFirstLine(tiddler.text)+"//~~\n"'

but be aware - If there are italics or subscript in the first line of
a tiddler the formats will be repealed...

Regards Måns Mårtensson


On May 9, 12:34 pm, Måns <[email protected]> wrote:
> Sorry I forgot the linebreak(\n):
>
> <<forEachTiddler where 'tiddler.tags.containsAll
> (["marcador",context.inTiddler.title])'
> sortBy
>        'tiddler.title.toUpperCase()'
>  script
>  '
> function getFirstLine(s) {
>  var m = s.match(/\s*(.*)/);
>  return m != null && m.length >= 1 ? m[1] : "";
>  }
>  '
> write
>  '"*[["+tiddler.title+"]]&rarr;  "+getFirstLine(tiddler.text)+"\n"'>>
>
> On May 9, 11:20 am, Måns <[email protected]> wrote:
>
> > Hi Skye
>
> > I don't know if this is the right way to do it - but it does
> > "something"...(I'm not sure about how it writes the first lines though
> > - if it does...):
> > <<forEachTiddler where 'tiddler.tags.containsAll
> > (["marcador",context.inTiddler.title])'
> > sortBy
> >        'tiddler.title.toUpperCase()'
> >  script
> >  '
> > function getFirstLine(s) {
> >  var m = s.match(/\s*(.*)/);
> >  return m != null && m.length >= 1 ? m[1] : "";
> >  }
> >  '
> > write
> >  '"*[["+tiddler.title+"]]&rarr;  "+getFirstLine(tiddler.text)+""'>>
>
> > Regards Måns Mårtensson
>
> > On May 9, 7:23 am, skye riquelme <[email protected]> wrote:
>
> > > Hi All
>
> > > Hope someone can help out with a simple syntax problem -
>
> > > <<forEachTiddler where 'tiddler.tags.contains("marcador")
> > > &&tiddler.tags.contains(store.getTiddlerSlice[tiddler.title])' sortBy
> > > 'tiddler.title'  script '
> > >  function getFirstLine(s) {
> > >  var m = s.match(/\s*(.*)/);
> > >  return m != null && m.length >= 1 ? m[1] : "";}
> > >  ' write
> > >  '"*[["+tiddler.title+"]] &rarr; "+getFirstLine(tiddler.text)+"\n"'>>
>
> > > ----its meant to locate tiddlers tagged with "marcador" and also
> > > tagged with the name of the tiddler where the FET is located!.
>
> > > Still haven´t got my head around this syntax stuff
>
> > > Thanks
>
> > > Skye
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to