cherrytree icon indicating copy to clipboard operation
cherrytree copied to clipboard

Codebox minimize

Open mrrgi opened this issue 1 year ago • 1 comments

Codeboxes takes up a lot of space reducing the overall readability/overview

I sometimes add many codeboxes to a node. This takes away the overview, then you add several boxes and text in between. Especially if some codeboxes are large.

To mitigate this I usually add a sub node and move the codebox to the sub node And then create a link to the sub node.

This is cumbersome if you have many codeboxes a minimize/maximize feature would be much easier.

minimize/maximize A minimize/maximize button on the codebox would help restoring the overview. When you press minimize the codebox should collapse to only a title and a maximize button.

mrrgi avatar Mar 06 '24 09:03 mrrgi

I can achieve this toggle codebox effect by:

  • exporting the node containing multiple expanded codeboxes

  • edit the codebox height in xml elements (e.g. with Sublime Text with XML package). set the height of allcodeboxes to 10. the search elements will be frame_height="10" (example).

  • import the edited node which sits as a sub-node under original node.

Now you have two nodes to toggle height.

This same approach can be used to edit other xml elements.

gitvectors avatar Mar 08 '24 23:03 gitvectors