PRODUCTIVED.NET

Working with inline fields in Dataview

Sep, 27 2021
Sep, 28 2021

I am using Dataview in Obsidian to create some light automation in Obsidian, similar to what you could do in something like Notion. There’s an inline syntax for settings fields.

Examples

Instead of a TOML header like:

---
summary: "This note is important"
---

# Your note

You can inline it into the text somewhere:

# Your note

Some note on something or something.

summary:: This note is important

Note the special syntax, using two colons to let Dataview know you specify a field.

The syntax seems to work with most standard types, like texts, numbers, booleans, but also with dates or durations. You can also specify links, which are parsed as usual if put into the main body of the note, whereas they are not included in backlinks or graph view if you put them into the TOML header.

Implicit arrays

Actually, I found that it seems to also implcitly create arrays if used multiple times. Thus, the following TOML header:

---
people:
- Mike
- Paul
---

can be replaced with these headings:

# people:: Mike

Some note about Mike


# people:: Paul

Another note about Paul

Well, it’s a bit ugly but it can be less redundant if you do something like meeting notes.

Not working: Nested objects

For my meeting notes, I tried to setup something, where I could specify a text summary for each person. E.g. in TOML,

summary:
- Mike: "Summary for Mike"
- Paul: "Summary for Paul"

and then e.g., try to plot a table of all meetings where Mike presented and their summaries. It’s a bit clunky but it somewhat works.

Unfortunately, there does not seem to be a way to inline objects like this.


SHARE

See Also

Meeting notes for group meetings

In our university, we have regular meetings with all students plus staff and faculty, where we discuss the progress of …

Read More...

Obsidian Breadcrumbs

Recently, one of my most valuable Obsidian plugins seems to be Breadcrumbs.

The idea is simple: You define a …

Read More...

How I connect DevonThink and Obsidian

For knowledgement I am using a combination of Obsidian and DevonThink. Why two apps? Well, I like to keep text notes …

Read More...

Comments