Xale's model Memories
Mindmaps Nodes and depth
A Mindmap is read back as an ordered tree of nodes and saved as OPML 2.0. A map holds at most 300 nodes, counting the central topic.
Reading a Mindmap
xale_ returns the nodes in tree order, the central topic first:
| Field | What it is |
|---|---|
id | The node's id |
parentId | Its parent; null for the central topic |
title | Its text. A read cuts it at 1,000 characters; a node's text is limited to 300 when it's saved (see Limits) |
depth | 0 for the central topic, 1 for a main branch, and so on |
taskId | The Task it's linked to, if any |
link | A web link, if any |
maxNodes sets how many come back: 200 by default, 300 at most. Titles share 16,000 characters in all. A node's stored border colour is style. when present. To draw a saved map directly, call xale_ with mapId. truncated: true says nodes or titles were cut. Find maps with xale_ (name, Areas).
Saving a Mindmap
xale_ takes opml, OPML 2.0:
<opml version="2.0" xmlns:xale="https://xale.app/ns/opml/1">
<head><title>Which city for the offsite</title></head>
<body>
<outline text="Which city for the offsite">
<outline text="Lisbon"><outline text="Direct flights"/></outline>
<outline text="Porto" xale:done="true"/>
</outline>
</body>
</opml>One top-level outline is the central topic and names the map; several become branches under the <title>. The format, with its optional xale: attributes, is on Mindmap format · OPML.
Growing and editing
| To | Use |
|---|---|
| Add a node, with optional sub-nodes, under any node | xale_ (mapId, parentNodeId, title, subNodes) |
| Rename a node | xale_ |
| Tick or untick a node | xale_; a node linked to a Task completes or reopens it |
| Delete a branch | xale_ with delete_, then the person's yes. It can't be undone. |
Limits
| Limit | Value |
|---|---|
| Nodes in one map | 300, counting the central topic |
| One node's text | 300 characters |
| Depth | 20 levels |
| Mindmaps on one account (Pro) | 1,000 |
For a bigger map, save the main branches first, then add the rest with xale_.
Tools
- Checked against main
c1725f34