giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.29k stars 457 forks source link

Codebox minimize #2451

Open mrrgi opened 4 months ago

mrrgi commented 4 months ago

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.

gitvectors commented 3 months ago

I can achieve this toggle codebox effect by:

Now you have two nodes to toggle height.

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