Ciao Jed & Siniy-Kit

This whole thing with BULK procedures I think is very interesting.

Slightly out of left-field I see TW simply as a structured text file. Using 
EXTERNAL tools on a non-running TW for operations like that also seems of 
merit. 

Doing what you want is pretty easy through well devised regular expressions 
from an external app. And likely without the potential issues you have if 
its running live.

Best wishes
Josiah 

On Wednesday, 22 March 2017 12:36:13 UTC+1, Jed Carty wrote:
>
> 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/5a3a2ea3-8d42-48a2-9e87-42a513af6106%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to