blacksmithgu / obsidian-dataview Public
generated from obsidianmd/obsidian-sample-pluginNew issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Inline Key:: Values don't work in middle of statements #209
Comments
|
I should probably reconsider renaming "inline fields" to just "fields" and adding a separate convention for actual "inline fields" - an inline field has to be on it's own line - everything before the The reason for this limitation is having an inline key in the middle of a sentence is ambigious without strong conventions: i.e., If you have a reasonable convention I can add it as an additional special case. |
|
Yes I understand the ambiguity that can arise from this. Is there a reason why delimiting can’t work? I think if for both keys and values, there was a requirement that they be in quotes if multi-word could solve most of it no? Either that or enclosing the entire pair inside an inline code block? Speaking of special conventions, I happen to try this and was very pleasantly surprised that it worked. I have a lot of entries in my journal where I used the tag #watched usually followed by what, a YouTube url or a link to a movie note. So Using tags for keys this way has another advantage that this makes them more portable since I can view and search by tags in any markdown app whereas only Obsidian has the brilliant Dataview. While delimiting the entire pair using inline code could make it more readable in the middle of the line as in my example, I think hashtags could be most useful in the long run, speaking this after converting a lot of my #tags to #tags:: and noticing the ease of use already. |
|
For reference, you can now use truly inline fields of the form |
I've this query in a file,
And in two of my daily notes, I have HbA1c:: but consistently, only one of them is picked up by the query.
The value from the first file is always ignored.
Here's what I tried to fix it,
After a lot of trial and error, here's what worked: adding a period before the key:: value or putting it in a new line by itself. So,
- [[Father]] got his HbA1c:: 15.1doesn't work.whereas,
- [[Father]] got his. HbA1c:: 15.1worksand
works as well.
Also, if something follows the value, that is always taken as the entire value. So if I write
HbA1c:: 15.1 report today, it will fetch15.1 report today. Even if I try to delimit it using quotes likeHbA1c:: "15.1" report today, it gets"15.1" report todayThe text was updated successfully, but these errors were encountered: