Allow Parsing Links as Field Names
See original GitHub issueIn my notes I sometimes use the pattern where the name for a field is actually a link to information about that field. A toy example (not from my notes, but illustrative) is as follows:
# Oxygen
**[[Atomic Number]]**:: 8
Right now, such fields are just silently ignored by dataview as they do not match the grammar, but I would see them made available like any other field name.
Describe the solution you’d like In my view, these should be parsed and made into fields on objects like any other. Ideally, the property name comes from (in the absence of aliases) the link name, or in the presence of aliases, the alias.
Describe alternatives you’ve considered The simple alternative is to change the notes format, but the ways to do that are either awkward to read or result in the removal of information.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:6 (5 by maintainers)
Top GitHub Comments
My instinct would definitely be to just ignore the fact that it’s a link for the purpose of naming fields:
[[Key]]:: Value
becomes accessible underKey
orkey
with the valueValue
, as you say.[[Link|Rename]]:: Value
becomes accessible underRename
orrename
with the valueValue
.Does that seem sensible to you?
I’m fine with that implementation.