Yes, but be very careful with this!! The version that works on all tiddlers 
may cause unexpected problems if you have a large wiki do to rendering 
issues.


This will list all the fields in the current tiddler that are empty, it 
works well:


<$list filter='[<currentTiddler>fields[]]' variable=fieldName>
<$list filter='[<currentTiddler>!has<fieldName>]'>
<<fieldName>>
</$list>
</$list>


This will remove all empty fields from the current tiddler, it works:

<$button>doo EET!!
<$list filter='[<currentTiddler>fields[]]' variable=fieldName>
<$list filter='[<currentTiddler>!has<fieldName>]'>
<$action-deletefield $field=<<fieldName>>/>
</$list>
</$list>
</$button>


This will remove all the empty fields in all tiddlers, if it ever renders:

<$button>doo EET glow BALL eye!!
<$list filter='[!is[system]'>
<$list filter='[<currentTiddler>fields[]]' variable=fieldName>
<$list filter='[<currentTiddler>!has<fieldName>]'>
<$action-deletefield $field=<<fieldName>>/>
</$list>
</$list>
</$list>
</$button>

it takes a few seconds to render on tiddlywiki.com, and then a few seconds 
to actually finish, but it seems to work. When I used '[all[]]' as the 
outer filter instead of '[!is[system]]' it changed some plugin tiddlers so 
I don't trust that. And I wouldn't trust this much ether unless you have 
some way to test that it didn't break anything.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0bff259b-a56a-4dd2-b527-dcf3c22df2ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to