james-tindal / obsidian-mindmap-nextgen

Create mind maps from your obsidian markdown files
171 stars 9 forks source link

Option to collapse code blocks in mindmap #152

Open ArvinShaffer opened 1 year ago

ArvinShaffer commented 1 year ago

just like it also to create node for

coding

When there are many lines of code,Node generates large chunks of code

james-tindal commented 1 year ago

You want the option to not create mindmap nodes for code blocks?

Hyacehila commented 1 year ago

I don't think anyone wants to see lots of code in a mind map. This would make it very hard for us to read.

AdrianSimionov commented 1 year ago

@ArvinShaffer That is the intended design. If one would not want to see the code, probably currently the simplest option would be not to add the code to the mindmap.

As a new feature, I believe we can add an option, OFF by default, which will replace all code blocks into a "collapsed code block" leaf, and do not display the code but a generic text instead. Should be a plugin setting (and apply to all mindmaps) and a front-matter option (apply only to the current mindmap).