How do I force "[[tiddler with spaces]]" in tiddlywiki 5.1.23 and earlier

Hi,

There is a new filter operator format:titlelist[] in tiddlywiki 5.2.0 to wrap the output in square brackets.

Now I forget how to do it in earlier versions;

For example I have this action;

<$action-listops $tiddler={{{ [{$:/temp/bookmarklet!!bookmarklet-title}addsuffix[-bookmarklet]] }}} $field="filter" $subfilter={{{ [{$:/temp/bookmarklet!!bookmarklet-title}addsuffix[-bookmarklet]] }}} />

Unfortunately I can’t how to see in the parameter how to add the result as [[retreivedtitle-bookmarklet]]
$subfilter={{{ [{$:/temp/bookmarklet!!bookmarklet-title}addsuffix[-bookmarklet]] }}} to the $field=filter.

Thanks in advance

You can use the set-widget with the filter parameter. Try this at tiddlywiki.com

<$set name=test filter="[tag[HelloThere]]">
<$text text=<<test>> >
</$set>

@pmario thanks for that it works, the thing I find hard is to commit this to memory. The idea that the same filter in the set statement honors the titles with spaces but in a filtered transclusion it does not.

Is this a bug or am I messing something?

You mean {{{[tag[HelloThere]]}}} by filtered transclusion. right?

Internally it does create the same list, but you don’t have access to the text-representation, because the output of the filtered transclusion is wikified.

The set-widget filter parameter was introduced around TW v5.1.5 … probably because it was needed to get this exact behaviour. …

Since widget parameters are extended as needed this can cause inconsistencies.

For others passing this way in the future from 5.2.0 you can force the output to be title formatted see format Operator in 5.2.0

{{{ [title[Hello There]format:titlelist[]] }}}