Skip to content

Carry the side of a map's topics through .xmind files - #31

Merged
thierrysays merged 1 commit into
mainfrom
claude/clever-goodall-xn72z5
Nov 13, 2026
Merged

thierrysays merged 1 commit into
mainfrom
claude/clever-goodall-xn72z5

Conversation

@thierrysays

Copy link
Copy Markdown
Collaborator

Follow-up to #30, which gave top-level topics of a two-sided map a side of their own for FreeMind and MindManager. XMind still read and wrote the first-half split.

Export

  • A map / map-ccw sheet on which a topic has a pinned side is written as org.xmind.ui.map.unbalanced, with the extension right-number holding the count of right-side topics.
  • XMind counts the first right-number subtopics as the right side, so such a sheet is written right-side topics first. The reordering happens before summaries and boundaries are gathered, so their ranges count the written order.
  • A map with no pinned side is written exactly as before (map.clockwise / map.anticlockwise).

Import

  • An unbalanced map that carries right-number, in content.json (XMind Zen and later) or content.xml (XMind 8), opens with each attached topic on its side, and is no longer listed in the import report as approximated.
  • An unbalanced map without the count keeps opening as a self-balancing map, with the existing report line.

Limits

  • The order of top-level topics can change in the .xmind file when right and left topics were interleaved.
  • An anticlockwise map with pinned sides goes out as the unbalanced structure, so its anticlockwise order is not kept.
  • The shape of the right-number extension is written from knowledge of the format, not checked against a file produced by XMind.

Tests

Two tests added (xmindexport.test.ts, xmindxml.test.ts). tsc --noEmit clean, vitest run: 139 passed.


Generated by Claude Code

A two-sided map with pinned sides is written as XMind's unbalanced map,
right-side topics first with their count (right-number); an unbalanced
map that carries its count, in content.json or content.xml, opens with
each topic on its side.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016C1G4PM7XGqJdpzydsnBCc
@thierrysays
thierrysays marked this pull request as ready for review November 13, 2026 15:40
@thierrysays
thierrysays merged commit b20c86e into main Nov 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants