I’m assuming you mean that the tiddlers you want to link to are other ones which contain the values from the key field in their own key fields? In that case I think you want something like the following:
I’ve replaced your initial get[key]enlist-input[] construction with list[!!key], which is a slightly more concise way of looking in the list field of the current tiddler and getting the titles listed in that field
The second filter run does a few things:
The map prefix takes the titles from the first filter run, and then runs the next filter run once for each of them, setting currentTiddler to each title in turn
Normally the map prefix only returns the first title from each time it runs, but the :flat modifier ensures it returns all of the titles each time
The inside of the run itself them starts with all tiddlers in the wiki (rather than just the item for the map run), and uses the contains operator (with the suffix key, which can be the name of any list field to look in) to get all tiddlers which list the currentTiddler in that field (which inside the map filter run means each of the titles returned by first filter run)
Hopefully that makes sense and helps you understand?
The field I’m using is vocabulary — but as with your key field, it’s functioning as a list of values. Each value (at least in my case) has a home tiddler, so I do want a link directly to that item, but I can also include a link to each of the tiddlers that list that term in their “vocabulary” field. I accomplish this by using a second list widget nested within the first, using the listed filter operator.
EDIT: I think a more semantic way — one that may be easier to follow for novices at this forum, and one that my future self could trouble-shoot or tinker with more easily — is to use a clearly-named variable in the outer list, rather than letting <currentTiddler> track the current value within the outer list widget:
then unfortunately, there is no output but as I’m very much a noob at the ‘cut & paste’ stage of TW, I don’t know why that might be. I’ve played around with it to no avail - sorry.
Jon, I think the @exilegreen approach was assuming that you were wanting to display, within a tiddler (or in a view template within each tiddler), a set of links to other tiddlers whose key field contents overlapped with the key values in the current tiddler. The !!key notation would pull contents from the current tiddler’s key field, rather than grabbing all the values that exist in that field throughout your wiki.
Meanwhile, I read your code attempt as aiming for a single big-picture overview of all the terms in your wiki that are listed anywhere within any tiddler’s key field, so that’s what the vocabulary overview demo (linked above) provides a model of.