Hi Tobias,
thank you for your detailed answer. Sorry for my late response, I've been
very busy this last time.
A)
Ouh, I think I've expressed my concerns a bit ambigous in my last post.
I know that I could linkify all terms "Tomboy 2.0 – Plugins" to its
corresponding tiddler "Tomboy 2.0 – Plugins" by adding the line Tomboy 2.0
– Plugins in LinkifyConfig. But I thought that the idea behind
auto-linkification is to linkify all existing tiddlers with its
corresponding terms. In my case to linkify the term "Tomboy 2.0 – Plugins"
in all tiddlers with the already existing tiddler "Tomboy 2.0 – Plugins"
rather than linkifying only the first part "Tomboy 2.0" with the tiddler
"Tomboy 2.0".
I think that LinkifyPlugin should check if there ist "Tomboy 2.0 – Plugins"
or maybe "Tomboy 2.0 – Plugins (Test)" etc. before linkifying with "Tomboy
2.0".
The same with "LinkifyPlugin – Test". In this case LinkifyPlugin should
also override TWs auto-link function of CamelCase terms and linkify this
term to the corresponding tiddler "LinkifyPlugin – Test" if it exists.
I think that it is more intuitive for users if the auto-link feature would
take these cases into account. Maybe it would make sense to let the user
decide by (de-)activating this behaviour like you've already done it with
the auto-link feature.
Another test (note: every list item has its corresponding tiddler, but
LikifyPlugin doesn't reference to it):
- Testtiddler
- Testtiddler - Test
- Testtiddler – Test
- Testtiddler Test Test
- Test Test (Test)
- Test Test Test – Test Test
- Test Test Test Test - Test Test – Test (Test Test Test)
In terms of zzConfig. Yes, I activated linkification for all tiddlers;
zzConfig exists; No, I didn't put zzConfig in LinkifyConfig as I thought it
is enough to activate the auto-link feature. I think that LinkifyPlugin has
problems to linkify those terms like zzConfig.
Hope that you'll understand what I mean. It's hard for me to explain it in
English :)
B)
I like your suggested solution very much as it would meet more needs (not
only mine I think). Would be happy to see it in future releases, if it is
not too hard to implement it in your code.
Tobias, thank you again for this plugin and your kind support. LikifyPlugin
makes TW more complete.
Kind regards from Mainz :)
Albert
Am Montag, 16. April 2012 21:56:01 UTC+2 schrieb Tobias Beer:
>
>
> Hi Albert,
>
> Am Montag, 16. April 2012 11:58:55 UTC+2 schrieb Albert Riedinger:
>>
>>
>> - Tomboy 2.0 / Tomboy 2.0 – Plugins / LinkifyPlugin – Test
>> - AutoWeavePlugin – Test
>> - IntelliTaggerPlugin Documentation
>> - zzConfig
>>
>>
> A)
> Please check the documentation again.
> Linkification for all of this is currently possible via LinkifyConfig.
> Try to add all of this to your LinkifyConfig:
>
> AutoWeavePlugin|AutoWeavePlugin *|AutoWeavePlugin – *
> LinkifyPlugin|LinkifyPlugin *|LinkifyPlugin – *
> IntelliTaggerPlugin|IntelliTaggerPlugin Documentation| IntelliTaggerPlugin –
> *
> Tomboy 2.0|Tomboy 2.0 – *
> zzConfig
>
> This might seem a lot of stuff, but then that's the idea behind it.
> Linkification patterns currently require to exactly define for which
> tiddlers they should apply.
>
>
> As for zzConfig, I can't quite tell what should be wrong with it...
>
> - Do you have it?
> - Have you turned on linkification for all tiddlers?
> - Is it in LinkifyConfig?
>
> When tiddelers are excluded from linkification this only means that their
> body is not linkified. However, you can sure have such a tiddler as a
> linkification target.
>
>
> B)
> While this might reasonably work for all tiddlers:
> @@@|@@@s|@@@*|@@@ – Discussion
>
> ...I don't really see that all tiddlers need this matching pattern but
> perhaps only those tagged xyz, so I would suggest something like the
> following:
> {{GROUP{
> %0*|%0 – *
> +tagX tagY
> tidA
> tidB
> }}}
>
> In other words, I would envision it like defining Linkification for groups
> of tiddlers by wrapping the corresponding config in
>
> {{GROUP{
> ...
> }}}
>
>
> The first line after that defines the patterns to be matched.
>
> I would suggest to use %0 as a placeholder and not @@@, since there is a
> string function called format which directly works with that, e.g.:
> someString.format([replace1,replace2,replace3,...]);
> ...whereas replace1 would be inserted for any %0, replace2 for %1, etc...
>
> All other lines define the tiddlers like tidA tidB to be matched or
> alternatively all tiddlers tagged +tagX or +tagY.
>
> So in pseudo-code...
> 1) get all tiddlers to match as [tagged(tagX) + tagged(tagY) + tidA + tidB]
> 2) create formatters for all those while replacing every %0 with the
> actual tiddler names
>
> I think that's better than to have such a rule apply to all tiddlers.
>
> In other words, if a line in LinkifyConfig starts with a css wrapper for a
> block, then - until the closing wrapper - everything that follows is
> supposed to define a linkification group with 1 line for rules and x lines
> for tags or tids.
>
> 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/-/sZLmR63klSUJ.
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.