Repository navigation
MindManager .mmap: faithful round trip, import report, UTF-16, safer links - #29
Merged
Merged
Conversation
….mmap round trip The writer now emits the growth direction of each sheet, writes floating topics as FloatingTopics with their offset, and exports the relationships of every sheet. The reader attaches each relationship to the sheet that holds both of its ends instead of putting them all on the first one. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016C1G4PM7XGqJdpzydsnBCc
The MindManager reader now feeds the import report, keeps only links that are web or mail addresses, and decodes UTF-16 flat files. The XML escaper is shared with the FreeMind writer: it removes the characters XML 1.0 forbids and keeps tabs and line breaks in attribute values. 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:26
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 the MindManager
.mmapreader/writer.Round trip
Saving a map as
.mmapand re-opening it changed the map.SubTopicsShape/SubTopicsGrowthDirectionon each central topic (Right,Left,LeftAndRight). Before, the direction was absent and the reader took that as "both sides", so every exported chart re-opened as a two-sided map. Structures MindManager lacks go out as a right-growing chart.FloatingTopicswith anOffsetin millimetres instead of ordinary subtopics.Import
Reportas the XMind import, so the user is told about dropped links to other topics, other unusable links, pictures, boundaries, icons with no counterpart, relationships that lost an end, callouts opened as subtopics, and maps with unequal sides.Hyperlinkis kept only when it is anhttp(s)ormailtoaddress thatnormalizeUrlaccepts; file paths andjavascript:are dropped and reported.Document.xml) in UTF-16 is decoded, with or without a byte order mark.Export
escXml/escXmlAttrinsrc/xmindxml.tsremoves the characters XML 1.0 forbids and keeps tabs, CR and LF in attribute values. The FreeMind writer uses it too, in place of its identical private copy.Not fixed
A two-sided map splits its topics by count (
layoutinsrc/model.ts), so a file whose left and right sides hold unequal numbers of topics still opens split evenly. Fixing it needs a notion of side in the model; it is marked with a// ponytail:comment, stated in the README, and now shown in the import report.Tests
Five tests added in
src/mindmanager.test.ts.tsc --noEmitclean,vitest run: 134 passed.The format is still unchecked against MindManager itself, as the README says.
🤖 Generated with Claude Code
https://claude.ai/code/session_016C1G4PM7XGqJdpzydsnBCc