A data index and query language over Markdown files, for https://obsidian.md/.
MIT License
Bot releases are hidden (Show)
Published by blacksmithgu over 2 years ago
Proper release of 0.5.5 plus one additional small improvement:
duration * number
and duration / number
operations for manipulation durations numerically.Published by blacksmithgu over 2 years ago
Improved image rendering for some link types, and adds the embed(link)
and embed(link, false)
options to convert
links to/from their embedded equivalents.
Published by blacksmithgu over 2 years ago
Iterative beta which adds a few nice QoL features and fixes some more bugs:
AS "Name"
is now optional; Dataview will infer the name from the expression automatically.TABLE 8 + 4, 3 + 6 FROM ...
is now a valid table expression, and the columns will be named 8 + 4
and3 + 6
respectively.Inline images are now rendered correctly in Dataview tables and lists - no more hacky app://local/
schenanigans!
Published by blacksmithgu over 2 years ago
Published by blacksmithgu over 2 years ago
DataArray#mutate()
.Published by blacksmithgu over 2 years ago
Re-release of broken release 0.4.23, now hopefully with fixes that make it work on (most) machines. I'll be doing beta
releases for a little while until I can confirm the new version is stable; use BRAT
(https://github.com/TfTHacker/obsidian42-brat) to easily track Dataview beta versions if you are interested in cutting
edge features.
Published by blacksmithgu over 2 years ago
This release reverts to Dataview version 0.4.22 due to there being too many unforeseen bugs with the new parser backend introduced in 0.4.23, particularly on platforms (Mac OS X, mobile, heavy use of templates) that I do not test on locally. I will be forking Dataview into an additional beta branch including new features for early adopters interested in helping me stabilize the new release.
Published by blacksmithgu over 2 years ago
Fix #867: Create a container div per taskList to allow for multiple task views.
Published by blacksmithgu over 2 years ago
Re-release of 0.4.23f since Obsidian does not automatically update between non-semver versions.
Published by blacksmithgu over 2 years ago
The Task Update! This release reworks how dataview handles tasks and list items so that they should be much more
intuitive to use and interact with:
dv.taskList
now supports grouping (as produced by groupBy
and the newgroupIn
) natively.For DataviewJS users, the task and list representation has changed: file.tasks
(and the new file.lists
) contain
every single task (including subtasks) in the file, instead of only the root elements. You can return to previous
behavior by filtering out tasks with a non-null parent - i.e., file.tasks.where(task => !task.parent)
. dv.taskList
will intelligently deal with properly nesting and de-duplicating tasks, so just filter to the tasks you want to render and
the API will do the rest.
This release also includes general backend improvements as we prepare for live-editing in Dataview views, as well as
several community-contributed API improvements:
DataArray#groupIn
: For grouping already grouped data, you can now use array.groupIn(v => ...)
, which will groupdv.pages().groupBy(page => page.file.folder).groupIn(page => page.title)
producing a groupingsubstring(string, start[, end])
: The last major missing string function is now available! Take slices of strings.dv.el()
and other HTML functions - thanks @vitaly.Documentation additions for the new task functionality will be coming out in the next few days. The next release 0.4.24
is currently targeting expanded FROM
query support, basic table view improvements, and general exporting functionality
for Dataview. See you then!
Published by blacksmithgu almost 3 years ago
The @pjeby update! This includes several performance improvements suggested by @pjeby to dramatically improve background
Dataview performance as well as reduce some memory pressure. It also includes some minor bug-fixes and preliminary
functionality:
dv.date()
.CALENDAR
queries - rendering similar to the obsidian-calendar plugin, see the documentation!Dataview should perform much better on startup and when you have lots of tabs open - thanks again to @pjeby.
Published by blacksmithgu almost 3 years ago
Bugfix release which primarily fixes issues that Dataview had with the live preview mode in upcoming Obsidian versions;
Dataview live preview should now be functional. Also includes a number of smaller bugfixes.
date(yesterday)
to create a date 24 hours ago.dv.luxon
).dv.duration()
for parsing durations.meta(link)
which allows you to access various metadata about a link itself.Published by blacksmithgu almost 3 years ago
Some feature work (mostly by other contributors) while I while away at section metadata. May also fix a few bugs!
date(sow)
), and the end of the week (date(eow)
). ThanksSmall minor bugfix / security releases may follow in the near future; otherwise, the next major release will include
section and object metadata.
Published by blacksmithgu almost 3 years ago
Bugfix release which corrects emoji parsing & localization issues.
DataArray#into
, which lets you index into objects without flattening.You can now include multiple units in durations: dur(8 minutes, 4 seconds)
or dur(2yr8mo12d)
. You can separate
durations by commas, or use the abbreviated syntax with/without spaces.
Published by blacksmithgu about 3 years ago
Bugfix release which fixes bad inline field highlighting if '[' and '(' are mixed on the same line in particular orders.
Published by blacksmithgu about 3 years ago
Minor feature release to patch up more implementation holes.
You can now query from a specific file (instead of just folders and tags) by specifying the full file path:
TASK FROM "dataview/Test"
...
This is primarily useful for task queries, but will soon be useful for section and object queries in the near future as
well.
The CSS for inline field highlighting has been fixed and some compatibility issues improved, so it should work on all
themes now instead of only a few.
DataviewJS now has dv.el()
, which is like existing functions like dv.paragraph
and dv.span
but can create any
HTML element type; for example:
dv.el("b", "Text!");
dv.el("i", 18);
Published by blacksmithgu about 3 years ago
Small performance release which substantially reduces the impact Dataview has on vault loading times (by spreading out
file loading). The Dataview Index is now also eagerly initialized, so plugin consumers of the API can immediately start
using it instead of waiting for the dataview:api-ready
event.
Published by blacksmithgu about 3 years ago
A simple fix for #537 which properly 'awaits' value rendering in dv.view()
. Fixes issues with values rendering out of
order.
Published by blacksmithgu about 3 years ago
Small bugfix release.
Published by blacksmithgu about 3 years ago
Bugfix release which adds fancy rendering to inline-inline fields and includes a few bugfixes.
Inline fields of the form [key:: value]
will now be rendered with fancy new HTML! By default, they are rendered with
both the key and value. You can only render the value using parenthesis instead: (key:: value)
. You can disable
this feature in the configuration.
Full-line inline fields (that Dataview has supported for a long time) will gain similar rendering support soon; in the
meanwhile, give the new syntax a try!
Tasks now render with a link to the page/section that they are defined in, making GROUP BY
and custom task
editing easier to do:
You can configure the symbol for the link or disable it alltogether.
I am currently actively looking into improving DataviewJS sandboxing and general security posture. As a first small step
in this, I have made DataviewJS opt-in instead of opt-out, and added a separate control for Inline DataviewJS. You may
need to re-enable it in your settings if you use it.
More improvements and better JavaScript sandboxing will follow.