Hello twgrp and PMario,

The current discussion might be a bit misleading in that I started by using 
the term "prefix" and now you are talking about suffixes too.

In fact, these characters are rather meta characters, switches or flags.

1) They could be configurable since they (currently) do not end up in the 
regex that is used for matching. BUT, I agree with Mario that for 
readability's sake alone this should not be pursued. I believe that it is 
fairly safe to expect people not to use characters like ^  '  * or ~ at the 
beginning or end of either their tiddler titles or the text they want to 
match. If one out of a Million should do this... well, bummer. Perhaps I 
will allow \\ to escape a meta character in order to use it in its literal 
sense.

2) You are right, Mario. The ^wordroot nomenclature is rather misleading. I 
will therefore change it as you suggest to wordroot* which sure is a lot 
more natural.

Thus, I would currently vote to change the meta characters like so:

^PrependToFormattersArray
-> instead of the ugly "prefix" 0!

'MatchLETTERSasis
-> a single quote would trigger matching lower and uppercase letters 
exactly as defined

config*
-> the new wildcard at the end of the word instead of the beginning

~DoNotLinkify
-> to not linkify the first term but only define it as the tiddler to which 
all other terms linkify ...separated by |


Keep in mind that - at the moment - the wildcard * is only intended to 
serve for word endings.
It currently is not intended to be used as {wild*card} or {*card} or even 
{*middle*}.
I might check as to how hard it would be to allow it both at the beginning 
or at the end of a term.

Eventually, I don't think that these metacharacters should cover the full 
range of what RegEx has in store, because *no one* will want to use that.

Perhaps, I can imagine another pair of metacharacters like this...

(any regex you want to be matched)

Thus, any term wrapped in parentheses is evaluated as a RegEx. However, I 
am not sure that there will be many people that know how to make use of 
that or even want to in the context of LinkifyPlugin.


Cheers, Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/BK6qlaX4oCAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to