Why not make this regular expression aware? Yes… I'm a regular expression
junkie…
Instead of specifying pre and post make:
"alt+t" : [ { search: /^| +|$/gm, replace:"|" } ],
"ctrl+o" : [ { search: /^ */gm, replace:"# " } ],
Why did I specify an array? That way you can specify more than one search
and replace pattern for each keypress. All the search and replaces should
be executed one after the other.
The alt+t could alternatively be specified like this:
"alt+t" : [ { search:/^/gm, replace:"|" }, { search:/ +/g, replace:"|" },
{search
:/$/gm, replace:"|" } ]
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.