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/563562F5.6080001%40gmail.com.
For more options, visit https://groups.google.com/d/optout.