HISE Logo Forum
    • Categories
    • Register
    • Login

    Folded 2.0

    Scheduled Pinned Locked Moved Feature Requests
    7 Posts 4 Posters 345 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.
    • MikeBM
      MikeB
      last edited by MikeB

      this is a feature request for the editor.
      Which is getting better and better.

      To improve it a bit more the following idea.

      It would be nice if in addition to the existing code foldability a freely selectable one could be added.

      So you could start the first line with:

      //Start - whatever is written here.

      Here is the code and everything within this area can be folded.

      //End ----

      So everything between //Start - or //START and //End or //END is folded.

      Bildschirmfoto 2021-09-08 um 10.46.03.png

      This way you can group your lines better and more clearly.
      And you can determine yourself what is to be folded.
      I can then fold my own table of contents.

      Even lines that I don't need but take up a lot of space (variables, arrays) I can keep folded.

      //Start - All variables
      Or
      //Start - All FXPanels
      etc.

      Bildschirmfoto 2021-09-08 um 10.45.45.png

      The saving of lines of code and the new clarity would be enormous.

      bild4.jpg

      Maybe it is feasible when Christoph has gained a little distance from the editor programming horror. :-)

      "One hour of trial and error can save 10 minutes of reading the manual."
      "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
      HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

      1 Reply Last reply Reply Quote 3
      • Christoph HartC
        Christoph Hart
        last edited by

        That's actually a good idea. However I would reuse the bookmark feature for this.

        So if you write a comment like this

        //! My Bookmark
        ljdlfksdf
        

        You can navigate to it by clicking on the mousewheel, but this could also be used to generate a folding item.

        MikeBM 1 Reply Last reply Reply Quote 2
        • MikeBM
          MikeB @Christoph Hart
          last edited by

          @Christoph-Hart Yes, the advantage would be in the quick and clear grouping whose titles I can determine myself. Which, as I said, makes it possible to structure the many lines that cannot be folded at the moment, such as variables or arrays, neatly.

          I am very much looking forward to it

          "One hour of trial and error can save 10 minutes of reading the manual."
          "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
          HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @MikeB
            last edited by

            @MikeB you can also just use brackets, they allow fold ability:

            // Variables
            {
            var y;
            var y;
            }
            

            Can't help pressing F5 in the forum...

            MikeBM 1 Reply Last reply Reply Quote 1
            • MikeBM
              MikeB @ustk
              last edited by

              @ustk
              This leads to a crash with me (Build 1.Sept.21) and forces me to correct the error with an external editor.

              laf.js (3): const var declaration must be on global level {SW50ZXJmYWNlfGxhZi5qc3wyNnwzfDEx}
              

              "One hour of trial and error can save 10 minutes of reading the manual."
              "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
              HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

              ustkU ulrikU 2 Replies Last reply Reply Quote 2
              • ustkU
                ustk @MikeB
                last edited by

                @MikeB Oh I see! I haven't really tried with declarations… only here and there in the code. this is kind of changing the scope, so not a good solution…

                Can't help pressing F5 in the forum...

                1 Reply Last reply Reply Quote 0
                • ulrikU
                  ulrik @MikeB
                  last edited by

                  @MikeB Aha, well spotted!

                  Hise Develop branch
                  MacOs 15.3.1, Xcode 16.2
                  http://musikboden.se

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  27

                  Online

                  1.8k

                  Users

                  12.1k

                  Topics

                  105.5k

                  Posts