<$reveal type="match" state="!!jeremy" text="tiddlywiki">
~TiddlyWiki!
</$reveal>
```<$list filter="[has[alink]]">
~TiddlyWiki!<br/>
Has aliases: <$list filter="[list[!!blink]]"><$view field=title/>, </$list>
</$list>Enter code here...
If you use the field as a normal list field than you don't need to worry about adding the | to it, and you can just use the normal listops filters to build the fields.
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/YOj4pgiykBQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5d58da28-a6d6-4949-a2ad-3d09c1c47e34%40googlegroups.com.
temp temp1 temp2
<$list filter="[all[current]has[alink]]">
<br/>
<hr>
''Note'': This tiddler has the following aliases: <$list filter="[list[!!alink]butlast[]]"><$view field=title/>, </$list><$list filter="[list[!!alink]]-[list[!!alink]butlast[]]"><$view field=title/></$list>
</$list>
\define a:(target)
<$list filter="[has[alink]!has[draft.of]]"><$list filter="[enlist{!!alink}regexp[^$target$$]]" variable="dummy"><$link><<dummy>></$link></$list></$list>
\end
What's really needed is an "inlist[myalias]" filter operator. I'm surprised there isn't one.
The contents of the alink field is specified by the alink plugin I am using by Tobias Beer:wouldn't that be incompatible with this plugin?
Can anyone comment on if the above proposed rewrite to the alink macro is "efficient" or not? At least at a cursory glance? My wiki is small so testing shows no real difference.
<<aka "target">> ... used instead of <<a:>> <<aka "target with spaces">>
<<showAliases>> ... used in the footer <<listAliases>> ... used in alias-list
What does the syntax "|?]]" do?
Is there any hope that any of this could end up in the core?
Thank you mario and everyone else who has helped in this thread! I look forward to downloading the "official" macros plugin from you site.
Thanks Mario - I just wasn't sure if once bundled it would be more of a package which is easier to install and uninstall.
Thanks Mario! You're the best!
\define aka(target)
<$list filter="[has[aliases]!has[draft.of]]"><$list filter="[enlist{!!aliases}regexp[^$target$$]]" variable="dummy"><$link><<dummy>></$link></$list></$list>
\end
Couldn't the "emptyMessage" option be used to flag the missing alias?
Hi Mario,
I'm not sure what you mean by 'valid option'.
Hey Mario,I've been using this plugin very successfully so far, so thank you again!
I have found myself recently trying to tag a tiddler with the alias of an existing tiddler. I don't see an easy way to enable this - I'm just wondering if you've thought at all about this, or if it's even possible.
... I would like the links: [[Darwinism]], [[darwinism]], NeoDarwinism, NaturalSelection, [[natural selection]], [[theory of evolution]] all refer to the same tiddler (or different twin tiddlers with the same content in view mode) without needing to specify: [[darwinism|Darwinism]], [[NaturalSelection|Darwinism]], [[theory of evolution|Darwinism]], etc.
Thanks!
I was thinking recently about dealing with <<aka "tiddler">> for tiddlers that dont exist yet,
Can you clarify what you mean by "You can't define the "aliases" field to thin air"?
V 0.2.0 ... 2017.12.15
[[alias|?]]
link syntaxis[alias]
... extends the core is
operator see: https://tiddlywiki.com/#is Operatorall[aliases]
... extends the core all
operator see: https://tiddlywiki.com/#all OperatorHave fun!
mario
PS - If you like it: Support it :)