Text folding possible?

Home Forums cherrytree Text folding possible?

Tagged: 

This topic contains 2 replies, has 3 voices, and was last updated by  Dragle 4 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #124777

    geniot
    Member

    Hello,
    I wonder if text folding of any sort is possible in CherryTree. Is there a component in Qt that provides this functionality? Thanks.

    #124778

    eureka
    Member

    Here is one approach I have just tried as an experiment.

    Using the same approach as in nearby thread (using AHK for automation if you are in Windows) you could write your multiple expanded text sections in individual code boxes and then use an AHK automation script to run through these steps, after first selecting a code box to expand or collapse:

    Click on collapsed Code Box to select it.
    Right click on selected Code Box
    Change CodeBox Properties to expand height to say 200
    View or Edit the code box
    Change CodeBox Properties to collapse height to say 20

    You can bind hot keys for Code Box expand/collapse

    e.g. Ctrl + Arrow up and Ctrl + Arrow down

    The Code Box can be Type > Plain Text or you can choose a language such as python to execute content of Code Box.

    If you are not a Windows user there are other automation scripts to use to emulate the expand/collapse process.

    There seems to be no limit to what effects you can achieve using external scripting.

    #124840

    Dragle
    Member

    I noticed that Ctrl+comma and Ctrl+Alt+comma makes the code box grow and shrink in height.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.