Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Folding and collapsing indented children. Possible?

    Help wanted · · · – – – · · ·
    2
    4
    61
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Gedijorge
      Gedijorge last edited by

      Hi guys,
      I need your help.

      I have a text file with a following structure:

      Parent1
      <tab>child1
      <tab><tab>child1.1
      <tab><tab><tab>child1.2

      <tab>child11
      <tab><tab>child11.1
      <tab><tab><tab>child11.2

      Parent2
      <tab>child2.1
      <tab><tab>child2.2
      <tab><tab><tab>child2.3
      …
      Parent100
      <tab>child100.1
      <tab><tab>child100.2
      <tab><tab><tab>child100.3

      Is it possible to make Parents foldable?
      After folding it would look like this:

      Parent1
      Parent2
      …
      Parent100

      I am using text files for note-taking and this folding would make scanning of files and overviewing topics much easier.

      Any thoughts? 💭

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @Gedijorge last edited by

        @Gedijorge

        You can achieve it if you set the tab’s Language to something that supports folding, e.g. Python:

        e7b4a39a-4484-4696-9ff9-49c1638d913b-image.png

        Gedijorge 2 Replies Last reply Reply Quote 1
        • Gedijorge
          Gedijorge @Alan Kilborn last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • Gedijorge
            Gedijorge @Alan Kilborn last edited by

            @Alan-Kilborn
            Thank you! 🤗 Works the way I wanted. 🎉
            In combination with the shortcuts it should be very handy.

            aa.jpg

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors