DataView in Obsidian

The notes taken from three Youtube videos are below. The official GitHub can be found at:

https://blacksmithgu.github.io/obsidian-dataview/ It expands on the notes found below.

TEXT ONE

First step - annotating notes

list your data in the notes, like so: type: location: or hide it in the Yaml by doing three dashes top and bottom to hide it. add in tags, project… anything.

The Yaml notes are not visible.

Second Step - Querying data

is a more powerful search. STarts and ends with three backticks - its not on my keyboard - it appears under the tild key… frustrating. But it is a code block you can add any way. write ‘’dataview insert query data here’’’

  • Begins with at type of view: list, table, task and calendar
  • You can add the parameters that you set up in the left of the colons, like where, tags, project, whatever…
  • You can also tell it where to look, like a folder — FROM meetings”– or a tag FROM #meeting
  • SORT file.name ASC — Sort the file by name in ascending order.
LISTS

you need to have a few parameters, or you get large lists

  • AND — adds another parameter.
    • example — WHERE type = >“person” and project = project x” This will isolate the project name and person involved.

TABLE

tables are automatically updated.

TASKS

you can add them if they are in your vault. If you use tags or folders, you can specifiy them

CALENDAR

can be also added. For further thinking about.

The idea of this is to use the data you have, not to collect everything. It is not meant to be a log system like Evernote.

Text Two

YAML IN OBSIDIAN

Metadata is essential. You can add it. Dataview creates a bunch of data for you. Annotating your own notes enable to you to search on your terms. Investigate ALIAS - it enables you to search differently In editor, enable frontmatter to be seen. The YAML nees to be on top of your notes. There needs to be a space either side of the colon. You can put in a comma between terms. If you put a square bracket around them, they will appear on different lines in your queries, which makes it easier to read [youtube, recording] Or you can indent them as a list with one space indent, like the following: type: youtube recording

It will show you if a YAML is invalid.


Text Three

note adds to the first one on dataview.

code block you dont hae to capitalise, but it helps to identify it tables create the headers from your parameters TABLE: author, genre This will create three headings - file, author and genre. Capitalisation is important. The AS terms needs investigating for modifying tables.

FROM — It tells dataview where to look folder” tag” - name them You can identify links going in and out of notes - check from seven minutes - its complicated. — AND —- both search terms — OR — either search term — add a dash and it will remove the parameter This is mainly all you need

The WHERE function add another layer of search. != can be used to exclude file names. WHERE file.name!= atomic notes” — will exclude the file name from a table

You can use the embedded data from dataview as well. You can do size, date…. and more. WHERE contains( author, Mark Austin”).

You can do templates that include the YAML or Queries.

SORT — by descending, ascending, file.name, size

There is more, but stay with the basics for now.

Investigate the Templater plugin. Create the template and assign a hotkey. It will enable you to do it for all of them.

Add in natural language dates. You need to remove the date as links to have it buried in your YAML.


Watch more videos FromSergio on youtube. He is quick. Watch the one on basic dataview data that is included in by the program and the commands. It will be powerful and enable you to set up notes with confidence.

Next - type of commands Type of YAML data to include to help manage the vault What to include in templater as a result to cut down the work of setting it up and making it uniform.


ALIAS You link to a document, then insert | immiately after and write the alias that will appear as the link text, like so: TPODGNN

www.abc.net.au/news


Date
July 16, 2022


Previously
Untitled