VIEW bound to a List property
Please fill out these Check-boxes
- [x] I checked for existing similar feature requests
- [x] I have read the docs and checked that the feature I am requesting is not already implemented
- [x] My feature request consists of only one feature
Is your Feature Request related to a Problem or Annoyance?
- I was looking into managing id that stretch from one note to another, but i realise that i see no easy method to keep them as lists,
Describe the Feature you'd like
A "Split" Arguments for Text type, that allows to bind result as a list, with specified divider, or "," if none are specified.
Alternatives
Or a whole new List view filed type can be added.
Additional Context
No response
A text view field will already display a list property separated by , .
---
foo: [1, 2, "bar"]
---
`VIEW[{foo}][text]`
Will display as 1, 2, bar.
It will indeed display it. But it will bind it as a text no matter what. And that is my problem. I need not only to view it, but also add a part to it, and record it as a list and not a text property.
---
foo:
- "1"
- "2"
- bar
Nya: 1, 2, bar, 3
---
`VIEW[{foo}, 3][text:Nya]`
What I am trying to do is this:
{["Origin"]} as raw
save to {testz}
---
const raw2 = context.bound.raw.replace(/^\[\[|\]\]$/g, "");
const link = `${raw2}#["Coordinates"]`;
return engine.markdown.create(`\`VIEW[{["ID"]}, {${link}}][text:testa]\``);
The idea is that it takes a link from {["Origin"]}, to get property from it, and then adds {ID} to the beginning of it.
But it would be better if I could keep them as a list, rather then one whole text line.
PS The fact that it creates ", " out nowhere when displaying list is also not perfect.