Created
February 2, 2012 16:26
-
-
Save cabo/1724382 to your computer and use it in GitHub Desktop.
Convert a freemind mindmap to Emacs org/outline text
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
#!/opt/local/bin/ruby1.9 | |
require 'nokogiri' | |
doc = Nokogiri::XML(ARGF).css("node").each do |node| | |
if t = node["TEXT"] | |
puts "#{"*" * node.ancestors("node").size}* #{t}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment