Thank you Jed, your <$list filter='[!is[system]]'> works good. But I had 
14000 tiddlers in my tw5 (61mb weight)
so this macros say "good bye" and only I can do - open TW5 by notepad and 
use find and replace to delete myfield=""

 

среда, 22 марта 2017 г., 14:36:13 UTC+3 пользователь Jed Carty написал:
>
> 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 [email protected].
To post to this group, send email to [email protected].
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/fce60149-3c95-4994-93d1-d12e2961870c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to