question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow Parsing Links as Field Names

See original GitHub issue

In 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:open
  • Created 2 years ago
  • Reactions:5
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
iamrecursioncommented, Nov 26, 2021

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 under Key or key with the value Value, as you say.
  • [[Link|Rename]]:: Value becomes accessible under Rename or rename with the value Value.

Does that seem sensible to you?

1reaction
blacksmithgucommented, Nov 26, 2021

I’m fine with that implementation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parse delimited and nested field names from URL parameter ...
In a Flask-RESTful based API, I want to allow clients to retrieve a JSON response partially, via the ? fields=... parameter. It lists...
Read more >
Allowing restricted field names · Issue #7130 · parse ... - GitHub
When updating an object, the beforeSave hook is not called, and Parse Server returns an error before we can unset the key. This...
Read more >
What is parsing a name field? - Caselle
This is called parsing a name field because Connect is parsing the names in a name field into smaller chunks of information, such...
Read more >
Common Options for Parsers - VMware Docs
You can configure common options for all parsers that produce named fields. Reserved Words for Field Names. Field names are restricted.
Read more >
urllib.parse — Parse URLs into components — Python 3.11.1 ...
The URL parsing functions focus on splitting a URL string into its components, or on combining URL components into a URL string. urllib.parse.urlparse(urlstring ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found