Hi Matabele It might be an idea if automatic linking occurred only if a tiddler of that > name already exists (automatic linking suppressed in the event that a > tiddler of that name does not exist.) > > Perhaps this could be expressed in the form of a global macro: > > \define tw-wikilinks() if filter="[field:title[mylink]]" then 'yes' else > 'no' > > Any ideas? >
Automatic linking to missing tiddlers is a pretty useful core wiki feature. There would be a performance penalty for making it configurable. A wrinkle is that we actually do automatic link detection at parse time (rather than render time). Because we cache the results of parsing a tiddler the parsing process mustn't depend on the values of any other tiddlers. So there'd have to be some rejigging to get things working properly. Best wishes Jeremy > > regards > > On Sunday, July 6, 2014 5:00:42 PM UTC+2, Jeremy Ruston wrote: >> >> On Sun, Jul 6, 2014 at 3:53 PM, Michael <michae...@infrafrontier.eu> >> wrote: >> >>> I always wondered, why words containing hyphens (e.g. Ctrl-A) are >>> considered as WikiLinks. >>> >> >> There's been some discussion on this: >> >> https://github.com/Jermolene/TiddlyWiki5/issues/337 >> >> As I commented on the ticket, I think that camelcase detection should be >> much more conservative, and shouldn't consider underscore and dashes to be >> letters. >> >> I'll try to sort this ticket out for 5.0.14. >> >> Best wishes >> >> Jeremy >> >> >> >> >> >> >>> >>> To create WikiLinks from words that are written in CamelCase makes >>> absolute sense, since these words are arbitrarily written in that way, and >>> CamelCase is an established way of 'marking up' specific words, e.g. >>> variables, when programming. Words with hyphens, on the other hand, are >>> rather abundant in certain languages, such as German. >>> >>> Rather than having to disable WikiLinks altogether or case by case when >>> writing in a language that contains many hyphenated words, wouldn't it make >>> more sense to exclude them completely from the CamelCase rule? >>> >>> Cheers, >>> Michael >>> >>> >>> On Saturday, July 5, 2014 3:23:08 PM UTC+2, Thameera Senanayaka wrote: >>>> >>>> Hi all, >>>> >>>> Been using TW5 for about two months and I'm really happy with it. >>>> >>>> One small question: When I type in some strings like two words combined >>>> with a hyphen (eg: Ctrl-A) TW5 thinks it's a link and shows as a hyperlink >>>> when viewing. >>>> >>>> Is there a way I can tell it to mark it as a link only when I >>>> explicitly mark using square brackets? >>>> >>>> -- >>> 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 tiddlywiki+...@googlegroups.com. >>> To post to this group, send email to tiddl...@googlegroups.com. >>> >>> Visit this group at http://groups.google.com/group/tiddlywiki. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Jeremy Ruston >> mailto:jeremy...@gmail.com >> > -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.