Xale's model Memories

Lists Fields and nesting

A List is read back as nested rows with their done state, and saved as a nested Markdown list: one item per line, two spaces per level, up to 8 levels.

View as Markdown

Reading a List

xale_read_note on a List (semanticKind: "list") returns listRows:

json
[
  { "id": "r1", "text": "Passport", "done": true, "children": [] },
  { "id": "r2", "text": "Chargers", "done": false, "children": [
    { "id": "r3", "text": "Phone charger", "done": false, "children": [] }
  ] }
]

Up to 250 rows per level; each row's text up to 1,000 characters.

Saving a List

xale_save_list takes list, a nested Markdown list:

text
# Packing for Lisbon
- Passport
- [x] Booking confirmation
- Chargers
  - Phone charger
  - Laptop charger
RuleValue
Item linesStart with - (or 1. for a numbered List)
Nesting2 spaces per level, up to 8 levels; one level deeper than the line above at most
Done- [x] item; - [ ] item or no box is not done
Titletitle, or one optional # Title line before the first item
SizeAt most 100 items in all, 1,000 characters per item

A refusal names the line to fix. Fix it and send again with the same requestId.

Changing a List

ToUse
Add items (with sub-items) at the endxale_append_to_list, up to 100 items a call
Tick or untick one rowxale_tick_list_row, by the row's text exactly as xale_read_note shows it, with done: false to untick
Pick one of several rows with the same textoccurrence: 1 is the first from the top

A whole List can be archived with archive_list.

Limits

Pro allows 1,000 Lists, each up to 100 items and 500 KB stored. Numbered and board views are Pro in the app.

  • Checked against main 8aef9b15

Was this helpful?

lists-fields-and-nesting.md · main@c1725f34