Formulas: Get the first N characters from a file after frontmatter (e.g. file.head(20))

Use case or problem

Apple Notes will show a snippet of the beginning of the note, which makes it easy to see at a glance what the contents of a note are.

It’d be great to have a formula to create a similar UI with Bases!

Proposed solution

Add a head() function to the File functions that will display the first N characters of a file after the frontmatter.

file.head(n?: number): string

I get that this would need to introduce a new way to interface with File objects that aren’t via properties/links though… but it’d be nice!

1 Like

Nevermind, I think my use case has been covered by the new Notebook Navigator plugin. This was not advertising at all :sweat_smile: the timing is just uncanny.