Escaping characters in filters?

172 views
Skip to first unread message

leeand00

unread,
Dec 22, 2015, 11:34:06 AM12/22/15
to TiddlyWiki
<$button>
<$list filter="\"Change Git Commit Editor\" \"Commit Verbosely\" \"git blame\" +[make[ %title% ]]">
<$action-setfield text="My New Tiddlers"  tags="[[Standardized git commit message format]]" caption="xx"/>
<$action-navigate/>
</$list>
Make New Tiddlers
</$button>

In the code above, is it possible to escape characters within the input of the filter?

Thanks!

Andrew J. Leer

Eric Shulman

unread,
Dec 22, 2015, 1:39:22 PM12/22/15
to TiddlyWiki
There is no general "escape" character sequence for filters.

However, for your example use-case, there are some other solutions:

* use tripled double-quotes (""") around the filter definition, so that single double-quotes within the filter don't need to be escaped:
<$list filter=""""Change Git Commit Editor" "Commit Verbosely" "git blame" +[make[ %title% ]]""">

* or, use doubled square-brackets instead of single double-quotes within the filter:
<$list filter="[[Change Git Commit Editor]] [[Commit Verbosely]] [[git blame]] +[make[ %title% ]]">

enjoy,
-e

Reply all
Reply to author
Forward
0 new messages