Repository navigation
Carry the side of a map's topics through .xmind files - #31
Merged
Merged
Conversation
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
marked this pull request as ready for review
November 13, 2026 15:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
map/map-ccwsheet on which a topic has a pinned side is written asorg.xmind.ui.map.unbalanced, with the extensionright-numberholding the count of right-side topics.right-numbersubtopics 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.map.clockwise/map.anticlockwise).Import
right-number, incontent.json(XMind Zen and later) orcontent.xml(XMind 8), opens with each attached topic on its side, and is no longer listed in the import report as approximated.Limits
.xmindfile when right and left topics were interleaved.right-numberextension 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 --noEmitclean,vitest run: 139 passed.Generated by Claude Code