How do I clear a text field?

112 views
Skip to first unread message

Mike Andyl

unread,
Jul 2, 2021, 7:30:39 PM7/2/21
to TiddlyWiki
In the ExternalImages documentation, I need to enter a command to clear old information.
--setfield [is[image]] text "" text/plain

But this command doesn't work! And it throws an error ERR_INVALID_ARG_TYPE

This is written about the setfield command.
templatetitle - the tiddler to wikify into the specified field. If blank or missing then the specified field is deleted

What should be the command to remove old information in this case?

Soren Bjornstad

unread,
Jul 3, 2021, 11:52:49 AM7/3/21
to TiddlyWiki
I wonder if your shell is trying to interpret the [is[image]] as a glob and passing a bad filter to TiddlyWiki – have you tried putting that parameter in quotes? (It appears to work right in Bash, but not sure what shell you're using.)

Also, can you run other commands against mynewwiki successfully?

I use this command line myself in a build script that runs every day and it works fine for me, so I don't think the instructions are wrong in the general case.

Mike Andyl

unread,
Jul 4, 2021, 10:49:44 AM7/4/21
to TiddlyWiki
Yes, all other commands are working. I can even fill the TEXT field with a template, but I cannot delete it!
https://i.imgur.com/CnyMBI4.jpg
quotes not help me

$:/core/templates/canonical-uri-external-image
all ok
https://i.imgur.com/u1sJXS3.jpg
But how delete?

суббота, 3 июля 2021 г. в 18:52:49 UTC+3, Soren Bjornstad:

Mike Andyl

unread,
Jul 4, 2021, 10:59:12 AM7/4/21
to TiddlyWiki
https://i.imgur.com/SCtyQFC.jpg
$:/core/templates/version
Even so I can!
воскресенье, 4 июля 2021 г. в 17:49:44 UTC+3, Mike Andyl:
Reply all
Reply to author
Forward
0 new messages