Draft mechanism - how to test tiddler has a draft but is not the draft itself?

28 views
Skip to first unread message

TonyM

unread,
Jul 9, 2020, 10:55:25 PM7/9/20
to TiddlyWikiDev
Folks,

When a tiddler is being edited you can add to your filter `!has[draft.of]` so your list does not include tiddlers in draft mode.

I am looking for a method to do the following
  • I do not want to list the original tiddler name when a draft exists
  • the result would be a list of tiddlers, if a tiddler is in draft mode the non draft of the tiddler will not be listed.
Any ideas?

Regards
Tony

Mat

unread,
Jul 10, 2020, 1:28:16 AM7/10/20
to TiddlyWikiDev
  • I do not want to list the original tiddler name when a draft exists
get[draft.of] 
  • the result would be a list of tiddlers, if a tiddler is in draft mode the non draft of the tiddler will not be listed.
I didn't test this but:

<$vars hasdrafts={{{ [list[$:/StoryList]get[draft.of]] }}} >
<$list filter="""....  -[enlist
<hasdrafts>]""">

<:-)

TonyM

unread,
Jul 10, 2020, 4:01:23 AM7/10/20
to TiddlyWikiDev
Thanks Mat, 

That looks right to me but can I be sure the draft is in the story list? If you close them they now go into a floating bar at the bottom of the wiki as draft tiddlers.

Thanks
Tony
Reply all
Reply to author
Forward
0 new messages