Formula Code Block.
A supercharged code block for explaining Notion formulas. With the ability to inspect the result, show and hide comments, and more.
While creating the Notion Formulas documentation it became apparent that simple code blocks for explaining things wouldn't cut it. So the following Notion code block was born.
Fun fact: Notion implemented Inspect functionality in their formula editor after I shared this experiment with them.
For
Notion
Category
Documentation
Status
Complete
prop("Multi-select")
.map(
(index + 1) + ". " + current
)
prop("Multi-select")
/* Use 'map' to perform operations on each selected item */
.map(
/* Return the item's index, adding 1 as it starts from 0. */
(index + 1)
/* Add a full stop and a space */
+ ". "
/* Add the item's value */
+ current
)
=
1. Dogs, 2. Cats, 3. Donkeys
["1. Dogs", "2. Cats", "3. Donkeys"]
Other Experiments
-
Formula Syntax Filter
· Craft Documentation -
YouTube Thumbnail Grabber
· Raycast Media -
Notion Formula Docs
· Raycast Documentation