Easily use Bases formulas and view file properties in any note

I found a super easy way to use formulas and view file properties—both enabled by Bases—for any note that is currently in focus:

All you need to do is to create a base with a filter that outputs the current note only:

file.path == this.file.path

You could then embed that base into note:

Or drag it to a sidebar:

The base will then always reflect the note that’s currently in focus.

Though it might be annoying to have to scroll horizontally if you add lots of properties to the base. Related feature request:

A couple of uses for this that I’ve come up with is to view the modified time file property and to calculate mins to read based on the word count property.

The Virtual Content plugin does something similar—without having to modify the note.

I’d love to hear what uses you’ve come up for this :raising_hands:

Inspired by a post from kepano.

Also, I made a feature request for dynamic properties in YAML:

6 Likes

Very good idea! With the card view it’s more pleasant to see than the default table.

1 Like