Menu

Hide lines - doen't save them!

2008-01-18
2012-11-13
  • Nobody/Anonymous

    Hello,

    I do "hide lines" - it is OK.

    After that, I change the tab (editing another file)

    After that, I GO BACK to the previous tab, where I had hidden lines
    AND... it is not hidden any more! It is visible... =(

    So, while swiching the tabs - hidden lines become VISIBLE... that is bad, I think.

    Usually people need to hide lines FOR SOME TIME, but they become vissible at the moment
    you change the tab.

    Is this common problem or I mush reinstall n++?

    Best Wishes.

     
    • pshute

      pshute - 2008-01-20

      It does that for me too, although I'm only running v4.2.2.  As a workaround, it doesn't do it if you have two files showing on screen at the same time using Multi-view.  See:
      http://notepad-plus.wiki.sourceforge.net/Multi-ViewHowTo
      if you haven't used it before.

       
    • Nobody/Anonymous

      I haven't used it before, BUT is this feature ("hide lines") only for multi-view?

       
      • pshute

        pshute - 2008-02-04

        You can hide lines using various options in TextFX/TextFX Viz.  I don't know if there are any other ways.

         
        • Don HO

          Don HO - 2008-02-04

          It's a quite new feature of Notepad++.

          Select the lines you want to hide, then Menu View->Hides Lines.

          Don

           
          • Nobody/Anonymous

            Hello,

            Donho,
              I'm not about HOW to HIDE LINES,
              I'm about HOW to KEEP THEM HIDDEN(!), while swiching between tabs...

            Check it:

            tabs: 123.php | qwerty.php | main.css | main.cpp | bla bla bla...

              1) Hide any lines in "123.php"
              2) Switch to another tab, for example "main.cpp"
              3) Go back to "123.php" tab
              4) AND you see, what the HIDDEN LINES (you hide them in "1)") ARE VISIBLE???

            It WAS hidden, BUT BECOME VISIBLE on their own...
            I think it is bad, because I wanted them to be hidden for some time...

             
    • Don HO

      Don HO - 2008-02-04

      > So, while swiching the tabs - hidden lines become VISIBLE... that is bad, I think.

      It's an intentional behaviour.

      Don

       
      • Nobody/Anonymous

        Hmmm, great program, and the HIDE LINES feature is something I've been trying to find for a long time. However, I fail to see the logic of this particular intentional behaviour. I can't think of a single instance where it would be useful for hidden lines to reveal themselves automatically just because I temporarily switch to another tab, whereas the benefits of NOT doing so are obvious. Mercifully, multi-view does not suffer from this "feature":)

         
        • Nobody/Anonymous

          R U sure?

          I can imagine there is no different behavior in the second view. Obviously you mean to say that with only one document in the second view, you don't suffer from the switching (back) behavior.

           
          • Nobody/Anonymous

            My apologies if I used the wrong terminology.

            What I mean to say is that if I have two documents open, viewed side-by-side (i.e. as a result of Right Click on the tab > Go to another view), the hidden status of any lines, in either document, does not change when switching from one document to the other. This is in contrast with having two documents open but viewed only one at a time, in which case the hidden lines are un-hidden when switching from one document to the other. I find it hard to believe this is intentional, and I'm tempted to think that the statement "this is intentional behaviour" is due to confusion as to the nature of the problem.

             
    • Nobody/Anonymous

      Why it is so? This feature becomes unuseful since it has a such intentional behaviour...

      I hide lines, because I need some code to be hidden for some time.
      Then I edit another script and go back,
      AND lines are visible...

      It is inconveniently. So, can you at least explain the logic of this feature, since it has
      a such intentional behaviour? How it can be used?

       
      • Don HO

        Don HO - 2008-03-15

        > It is inconveniently. So, can you at least explain the logic of this feature,
        > since it has a such intentional behaviour? How it can be used?

        If you are not happy about this behaviour, you can modify the program to meet your need (the source code is available).

        I have nothing to explain to you.

        Don

         
        • Nobody/Anonymous

          Yeah, you are right, Don!

          He coudl also open the document with the hidden lines in a separate Notepad++ using the -nomultiinst option.