modify encodeuricomponent to use hyphens instead of %20?

39 views
Skip to first unread message

Donald Coates

unread,
Sep 4, 2020, 6:44:34 PM9/4/20
to TiddlyWiki
is this possible? Playing with advanced search I don't see anything too obvious.  I found some references to the filter operator in $:/core/modules/filters/decodeuricomponent.js
but nothing explicit.

Donald Coates

unread,
Sep 4, 2020, 11:44:32 PM9/4/20
to TiddlyWiki

So I figured out a way to get the behavior I am looking for:

tiddlywiki –render "[tag[post]]" "[has[created]lowercase[]escaperegexp[]splitregexp[ ]join[-]encodeuricomponent[]addsuffix[.html]]" "text/plain" "$:/blog-post/templates/static.tiddler.html"

basically this creates a uri with hyphens and all lowercase from the title of tiddlers tagged posted instead of the %20 for spaces which I think is really ugly.  a small thing I know but it was bugging me.

Donald Coates

unread,
Sep 4, 2020, 11:45:46 PM9/4/20
to TiddlyWiki
can we not edit posts anymore???  the encodeuricomponent operator is not necessary above
Reply all
Reply to author
Forward
0 new messages