Community
    • Login

    Collapsing Current Level and Collapse by Level don't work

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    12 Posts 3 Posters 3.5k Views
    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.
    • Max CormanM
      Max Corman
      last edited by

      Hi Eko,

      Thank’s for the reply.

      I am using Notepad++ version 7.5.9 (32-bit).

      As an example lets say i have the following regular (non-code) indented text. Note i am using Notepad++ for visual basic but also for indenting regular text. In this example i used the underscores (underlines) to be able to properly indent the text in this forum. In Notepad++ there is no underlines everything is indented straight up with the tab key.

      house
      ____outdoors
      ________driveway
      ________lawn
      ________garden
      ________patio
      ________exterior walls of house
      ____indoors
      ________basement
      ________first floor
      ________second floor

      With the above text when i use ‘Fold’ or ‘Unfold’ they work fine. But when i try to use the ‘Collapse Level/Uncollapse Level’ operations they only work for the first level and not the second. Like i said in the original post, i had it working for level 2 at one point but that has stopped working for some reason. With text indended with more levels its the same thing where only level one works. So i cant figure out why this is happening.

      I am using the Nimrod language but it doesn’t work with Python or Matlab as well. Again, the languages i am using don’t require using a character for folding.

      Also, i tried with multiple files and its always the same thing.

      So maybe you can try the indentation using the Nimrod language with whatever version of Notepad++ you are using and let me know if it works or let me know if i am doing something wrong.

      Thanks again.

      1 Reply Last reply Reply Quote 2
      • Max CormanM
        Max Corman
        last edited by

        I should note that the Collapse Current Level and Uncollape Current Level actually do work. But they only work for one indentation. I am guessing however that this is how they are supposed to work.

        But for the Collapse and Uncollapse by Level they don’t work what so ever. I had them working for all indentations in a file for level 2 but they dont work anymore.

        1 Reply Last reply Reply Quote 0
        • Max CormanM
          Max Corman
          last edited by

          My apologies for over-posting, i would have put everything into one reply but the editing only works for a period of 180 seconds after submitting a reply.

          What i want to assert is that i never got level 2 to work with the ‘Collapse/Uncollapse Level’ operation. I thought it was level 2 but it was only level 1 that worked.

          So to summarize:
          The ‘Collapse/Uncollapse Level’ operation doesn’t work for me for the indented Levels higher than level 1 for the Nimrod, Python, and Matlab languages in Notepad++ version 7.5.9 (32-bit). The ‘Fold/Unfold All’ and the ‘Collapse/Uncollapse Current Level’ work fine.

          So either the ‘Collapse/Uncollapse Level’ is not designed to work the way i am thinking its supposed to work, or something is indeed wrong.

          Scott SumnerS 1 Reply Last reply Reply Quote 0
          • Scott SumnerS
            Scott Sumner @Max Corman
            last edited by

            @Max-Corman

            I concur with your behavior assessment as I see the same thing with a fresh copy of 7.5.9 32-bit.

            1 Reply Last reply Reply Quote 0
            • Max CormanM
              Max Corman
              last edited by

              I just tried it on my second laptop and it doesn’t work there as well. I also tried it on a fresh copy of 7.5.1 (32-bit) and it still doesn’t work.

              So what does that mean? If it is a bug in the program then how do we report it?

              Scott SumnerS 1 Reply Last reply Reply Quote 0
              • Scott SumnerS
                Scott Sumner @Max Corman
                last edited by

                @Max-Corman said:

                If it is a bug in the program then how do we report it?

                Under the FAQ section of this site there are instructions for doing so.

                1 Reply Last reply Reply Quote 1
                • Max CormanM
                  Max Corman
                  last edited by Max Corman

                  Ok so the folding by level applies to spaces and not tabs. That is, each space is a level. This of course is not proper since spaces are too close together.

                  1 Reply Last reply Reply Quote 0
                  • Max CormanM
                    Max Corman
                    last edited by Max Corman

                    For the record, from Scott Sumners posting on a thread on the GitHub forum it appears that this issue is a Scintilla issue and not a Notepad++ issue and has been rejected for fixing.

                    Scott SumnerS 1 Reply Last reply Reply Quote 1
                    • Scott SumnerS
                      Scott Sumner @Max Corman
                      last edited by

                      @Max-Corman

                      And here is the relevant github issue: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/1898

                      1 Reply Last reply Reply Quote 1
                      • Max CormanM
                        Max Corman
                        last edited by

                        For anyone who is interested the issue with the folding has been fixed. You will find the instructions on how to fix the issue on your own or use the provided binaries here.

                        1 Reply Last reply Reply Quote 2
                        • First post
                          Last post
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors