Display properties in note using codeblock

For historical purposes, I want to report that I did follow @blue_emperor’s approach and it got it to work until the most recent update (1.9.2 catalyst) rewrote the Bases function/syntax. I then update my codeblocks and the solution works again. For nontechnical users, however, note that the changes make the examples provided above less helpful.

I think I’d also add that I don’t think this (creating lots of one-row tables to materialize content otherwise segregated in the YAML property area) is the best possible approach for my notetaking purposes, which includes a lot of journaling and tracking.

What my original request asked for was a “properties codebook.” After two weeks of dabbling, I think the Bases codeblock would work if we can utilize other view types. I mentioned “list” above, but I also wonder about the opportunity to simply display a formula property as a block, or bulleted list. The roadmap also mentions “cards” which may be what I am looking for. Anyway, I’m a Coda.io user, and one of the tools I use there is to write a formula on the canvas drawing on data in a table. Such a codeblock (using current 1.9.2 syntax) might look like:

```base
filters:
  and:
    - content == "daily review"
    - '!file.path.contains("Templates")'
    - date == this.date
views:
    - type: bulleted list
      name: "Today's results"
      order:
      - date
      - healthNotes
      - weight
    ```

Cheers,
Jack

1 Like