Here's an improved version which does a better job constructing the output 
tiddler so it doesn't insert square brackets.
It also attempts to guess at the working file name of the current tiddler 
and use that for a field "tiddlywiki", based on the only two fields that
are available for that function. These guesses could be wrong. The user can 
make sure they're "right" by manually setting
the tiddler value "$:/config/SaveWikiButton/Filename" to the file name of 
that tiddler.


\define indexvalue() """$(title)$|$(caption)$|$(tags)$"""
<$wikify name=indextitle text={{{ [{$:/SiteTitle}addprefix[index-for-]] }}} 
select="0">
<$button>Make Index
<$list filter="[all[tiddlers]!is[system]]">
<$vars title={{!!title}} caption={{!!caption}} tags={{!!tags}} >
<$action-setfield $tiddler=<<indextitle>> $index=<<currentTiddler>> 
$value=<<indexvalue>>/>
</$vars>
</$list>
<$wikify name=tiddlywiki text={{{ 
[{$:/SiteTitle}addsuffix[.html]][{$:/config/SaveWikiButton/Filename}]+[!is[blank]last[]]
 
}}} >
<$action-setfield $tiddler=<<indextitle>> $field="tiddlywiki" 
$value=<<tiddlywiki>>/>
</$wikify>
</$button>
</$wikify>


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/77380ed5-6276-4eac-a9f8-c0ca0d78612f%40googlegroups.com.

Reply via email to