shollingsworth / freeplane_tools Goto Github PK
View Code? Open in Web Editor NEWThis package provides tooling around translating freeplane mindmap files into other useful formats
License: MIT License
This package provides tooling around translating freeplane mindmap files into other useful formats
License: MIT License
Hello,
Thank you for your software! I try to write something like a mm2ics.py. I Use mindmap as a hierarchical todo list. And want to create a calendar with tasks out of it. Later I will try to two-way-sync between icalendar and mm-file.
Is there a way to get the parent of a node (or 'None
')? My working example just uses mm.iternodes()
so I lose the hierarchy. I think to use xml
for that.
If it works in the future, are you interested in a pull-request?
Thanks
Ekran
mm2github.py -w -o /dev/stdout ~/t.mm
Saving file to: /dev/stdout
Traceback (most recent call last):
File "/opt/homebrew/Caskroom/miniforge/base/bin/mm2github.py", line 48, in <module>
main(args)
File "/opt/homebrew/Caskroom/miniforge/base/bin/mm2github.py", line 38, in main
mm.write_document(outfile)
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/freeplane_tools/base.py", line 159, in write_document
fileh.write(self.get_document())
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/freeplane_tools/github.py", line 46, in get_document
self._toc(),
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/freeplane_tools/base.py", line 135, in _toc
return "\n".join(n.toc_entry for n in self._iternodes() if n.toc_entry)
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/freeplane_tools/base.py", line 135, in <genexpr>
return "\n".join(n.toc_entry for n in self._iternodes() if n.toc_entry)
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/freeplane_tools/base.py", line 107, in toc_entry
return f"{pad}[{self.text}](#{self._toc_name})"
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/site-packages/freeplane_tools/github.py", line 15, in _toc_name
return re.sub("[^a-zA-Z0-9]", "-", self.text).lower() + "-"
File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.9/re.py", line 210, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
<node ID="ID_1521234531" CREATED="1632342121801" MODIFIED="1637123461801"><richcontent TYPE="NODE">
<html>
<head>
</head>
<body>
<p>
test text
</p>
</body>
</html>
</richcontent>
</node>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.