obsidian-mindmap-nextgen icon indicating copy to clipboard operation
obsidian-mindmap-nextgen copied to clipboard

Option to collapse code blocks in mindmap

Open ArvinShaffer opened this issue 1 year ago • 3 comments

just like it also to create node for

coding

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

ArvinShaffer avatar Mar 17 '23 06:03 ArvinShaffer

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

james-tindal avatar Mar 18 '23 10:03 james-tindal

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.

Hyacehila avatar Mar 20 '23 14:03 Hyacehila

@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).

AdrianSimionov avatar Mar 20 '23 21:03 AdrianSimionov