obsidian-dataview
obsidian-dataview copied to clipboard
Add missing DQL functions to Reference -> Functions, if there are any
Goal of the issue: Compare if all functions implemented here: https://github.com/blacksmithgu/obsidian-dataview/blob/master/src/expression/functions.ts are available in the docs with all their variants
Last I checked, 4 were missing mostly because I had no idea what they did. I wonder if we can do some sort of autogeneration from the test cases or the code itself. From my old list:
nonnull: (...args) => func(context, ...args)
minby: (...args) => func(context, ...args)
maxby: (...args) => func(context, ...args)
Last I checked, 4 were missing mostly because I had no idea what they did. I wonder if we can do some sort of autogeneration from the test cases or the code itself. From my old list:
nonnull: (...args) => func(context, ...args) minby: (...args) => func(context, ...args) maxby: (...args) => func(context, ...args)
These were documented by blacksmithgu lately, what's still missing is:
reduce: DefaultFunctions.reduce,
ldefault: DefaultFunctions.ldefault
and I did not check if there might be missing variants anywhere.
Edit: Checked the Variants, these seem to be missing:
- length -> string
- link
- add3("string", "string", "boolean"
- add2("link", "string"
- contains, icontains, econtains
- add2("", ""
- reverse -> string
- sort
- add2("array", "function"
While checking the variants, I noticed that the only difference between (documented) fdefault and (undocumented) ldefault is that fdefault vectorized, ldefault is not? Maybe @blacksmithgu can shed light on why ldefault
exists ... and if it should be documented at all.
I'm working on a PR to complete this, so if that's approved then this is to be complete as of 0.5.64