github blacksmithgu/obsidian-dataview 0.4.2

latest releases: 0.5.67, 0.5.66, 0.5.65...
3 years ago

Adds support for simple queries from CSV, as well as custom dataviews, and a few bugfixes.

CSV Queries

You can query data from CSV files using the csv() modifier:

TABLE file.name, field, field2 FROM csv("file.csv")

Which will select "field" and "field2" from CSV. You can select from multiple CSVs:

TABLE file.name, field, field2 FROM csv("file.csv") or csv("file2.csv")

Custom Dataviews

You can now create custom dataviews for usage in DataviewJS (available through dv.view()). The function can be used as
such: dv.view("path/to/view", input). A custom view is a folder containing view.js, which should be JS code that
will be loaded and provided with the dv object and your input argument. For example, a trivial view which renders
whatever 'input' is:

test-view/view.js:

console.log("hi!");
dv.paragraph(input);

You could then execute this view using dv.view("test-view", 16); in another dataview. Views can also include CSS files
in the same folder (like test-view/view.css), which will be applied when the view is rendered.

Automatic Build/Testing on GitHub

Mostly useful for development, but all commits and pull request are now checked that they properly build and commit.

Bugfixes

  • #160: Better emoji handling.
  • #327: Fix GROUP BY behavior.
  • #339: You can now disable DataviewJS codeblocks.

Don't miss a new obsidian-dataview release

NewReleases is sending notifications on new releases.