Hi I tried this -- it doesn't work :-(
I created a global macro: \define currentTitle() <$list filter="[<storyTiddler>get[draft.of]] [<storyTiddler>!has[draft.of]]" > </$list> \end The result of a simple macrocall is as expected in both view and edit mode: <<currentTitle>> However, when I try this, there is no output in either view or edit mode: <$list filter="[tag<currentTitle>]"/> <$list filter="[[<currentTitle>]tagging[]]"/> <$list filter="[<currentTitle>listed[tags]]"/> Anyone know why? regards On Sunday, 1 November 2015 01:53:40 UTC+2, Erwan wrote: > > > On 31/10/15 19:08, Antaeus Feldspar wrote: > > I mention this because I find this irksome too when I want to see the > effect of changes right away, and I've been working on a filter expression > which would return "Foo" for both "Foo" and "Draft of 'Foo'". I think I > have a final version here (I've put each of the three component runs on its > own line for clarity: > > > > [title<currentTiddler>] > > -[prefix[Draft of ']suffix[']] > > [title<currentTiddler>removeprefix[Draft of ']removesuffix[']] > > > > (Obviously, this screams out to be made a macro to avoid typing all that > out repeatedly.) > > Hi Antaeus, > > I also sometimes use this, I think you can make it a bit simpler by > using the fact that a tiddler in edit mode has a field 'draft.of': > > \define filterNonDraftTitle() [all[current]get[draft.of]] > [all[current]!has[draft.of]] > > I use it like this: > > <$list filter=<<filterNonDraftTitle>> > > <$text text=<<currentTiddler>> /> > </$list> > > It's also useful for creating a button which works for both the view > toolbar and the edit toolbar. > > Erwan > > -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/28eb2fe3-4fc5-4b4f-8668-e3054fe6f661%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

