Well. This is not a resolution à la carte!
I started to give you a way without all information! A start solution only thinking in links between both folders.
You return with a more complex inter-links (good, because reveal some issues with a command I never use -
endswith - but others I don’t understand because they work on my side) but with a new request to another filter (a output/view filter), i.e, a filter to hide something that is correct: real out/in links from/to notes in folder B.
It’s a new request in two ways: 1) because you never ask for a table (you mention a list) and 2) you want to hide them.
I’m a normal user (no coder or similar), a newbie guy that help others with my own limitations.
In help, I’d like to see some effort from the other side. You start with your request but I never see any attempted dataview query. How I know you read the plugin documentation?
Don’t understand me wrong, because I know that in some cases we have some limitations (as in my case the language, because english isn’t my native language)… but I spend a lot of time given solutions to some people that are interested only in solve one problem (his own) without understand the minimum of the tool! To someone that try to explain some steps this is frustrating…
Well. Forward… I think it’s necessary to replace
contains() and add extra filters to fields in table columns (but I don’t know if you want all that columns… I added them only for test purposes…). Try this:
TABLE filter(file.outlinks, (o) => contains(o.file.folder, "test/A")) AS Outlinks, filter(file.outlinks.file.folder, (f) => contains(f, "test/A")) AS "Outlinks Folder", filter(file.inlinks, (i) => contains(i.file.folder, "test/A")) AS Inlinks, filter(file.inlinks.file.folder, (g) => contains(g, "test/A")) AS "Inlinks Folder"
WHERE contains(file.outlinks.file.folder, "test/A") OR contains(file.inlinks.file.folder, "test/A")
SORT file.name ASC