• Login
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.
  • M
    Max Corman
    last edited by Dec 9, 2018, 1:25 AM

    Hi There,

    So just as the title says, when i click View Fold/Unfold All then the operation works for my indentations. But when i click view and select Collapse/Uncollapse Current Level or Collapse/Uncollapse by level then nothing happens to those levels of indentations.

    Note i am using languages that don’t need a symbol for indenting, such as Python or Nimrod.

    Also, i had the ability to Collapse/Uncollapse Level 2 once but now it stopped working.

    I am suspecting this problem to be a bug since i cant find any other reason why its not working.

    Any help would be appreciated.

    Thanks.

    E 1 Reply Last reply Dec 9, 2018, 11:48 PM Reply Quote 0
    • E
      Eko palypse @Max Corman
      last edited by Dec 9, 2018, 11:48 PM

      @Max-Corman

      providing more detail like which notepad++ version you use and an example
      which illustrates the reported behavior could help identifying whether this is
      really a bug or simply a missing feature for that particular use case.

      Eko

      1 Reply Last reply Reply Quote 2
      • M
        Max Corman
        last edited by Dec 10, 2018, 1:21 AM

        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
        • M
          Max Corman
          last edited by Dec 10, 2018, 1:44 AM

          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
          • M
            Max Corman
            last edited by Dec 10, 2018, 3:02 AM

            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.

            S 1 Reply Last reply Dec 10, 2018, 1:12 PM Reply Quote 0
            • S
              Scott Sumner @Max Corman
              last edited by Dec 10, 2018, 1:12 PM

              @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
              • M
                Max Corman
                last edited by Dec 10, 2018, 1:42 PM

                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?

                S 1 Reply Last reply Dec 10, 2018, 1:44 PM Reply Quote 0
                • S
                  Scott Sumner @Max Corman
                  last edited by Dec 10, 2018, 1:44 PM

                  @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
                  • M
                    Max Corman
                    last edited by Max Corman Dec 10, 2018, 3:19 PM Dec 10, 2018, 3:16 PM

                    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
                    • M
                      Max Corman
                      last edited by Max Corman Dec 10, 2018, 3:53 PM Dec 10, 2018, 3:53 PM

                      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.

                      S 1 Reply Last reply Dec 10, 2018, 3:54 PM Reply Quote 1
                      • S
                        Scott Sumner @Max Corman
                        last edited by Dec 10, 2018, 3:54 PM

                        @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
                        • M
                          Max Corman
                          last edited by Dec 13, 2018, 1:29 AM

                          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
                          10 out of 12
                          • First post
                            10/12
                            Last post
                          The Community of users of the Notepad++ text editor.
                          Powered by NodeBB | Contributors