HISE Logo Forum
    • Categories
    • Register
    • Login

    Script Editor Multiple Cursors

    Scheduled Pinned Locked Moved Bug Reports
    15 Posts 2 Posters 2.4k 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.
    • d.healeyD
      d.healey
      last edited by

      There seems to be a bug with multiple cursors in the script editor when using the delete or backspace keys - could be others but those are the only ones I've come across so far.
      alt text

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

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

        Yes the delete key causes havoc (I don't remember why, but I remember that this was extremely messy to implement), but the backspace key should work fine as long as you are within the selection (in your case between v and a or a and r). I admit it's a bit glitchy, but once you get used to its special behaviour, it does the job just fine.

        1 Reply Last reply Reply Quote 1
        • d.healeyD
          d.healey
          last edited by

          Where have the multiple cursors gone?

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

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

            Huh? Are they gone? I am pretty sure I‘ve used this last week.

            1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey
              last edited by

              Maybe it's a Linux thing, a few keyboard shortcuts don't seem to be working. I'll try on Windows in my VM

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

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

                On macOS the shortcut is Cmd+D instead of Ctrl+D (which is the Win key on a standard Windows keyboard layout). Maybe Linux also uses this modifier key.

                1 Reply Last reply Reply Quote 1
                • d.healeyD
                  d.healey
                  last edited by

                  That didn't work but it got me experimenting, turns out it's ctrl+shift+D. Any chance that keyboard shortcuts could be made user assignable? :)

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

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

                    Superweird, theres nothing in my code that enforces the Shift key. Is this Linux only?

                    It might be possible that if I wrote D as shortcut character it actually wants an uppercase letter thus the shift key, but apart from that I am clueless.

                    1 Reply Last reply Reply Quote 0
                    • d.healeyD
                      d.healey
                      last edited by

                      Oh yeah Linux is very sensitive about upper and lower case so that could explain it. CTRL+c and CTRL+v work as expected, are they lower case in your code?

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

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

                        I‘ve just checked and yes, the idiot that wrote the code used the uppercase D there...

                        1 Reply Last reply Reply Quote 1
                        • d.healeyD
                          d.healey
                          last edited by

                          Easy solution though :)

                          Libre Wave - Freedom respecting instruments and effects
                          My Patreon - HISE tutorials
                          YouTube Channel - Public HISE tutorials

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

                            If you can‘t wait you can fix it yourself. It‘s in the file hi_scripting/components/ScriptingCodeEditor.cpp in the keyPressed method.

                            1 Reply Last reply Reply Quote 0
                            • d.healeyD
                              d.healey
                              last edited by d.healey

                              Thanks, I'll check it out

                              Edit: Done, that was simple enough, wish I knew more about C++ and JUCE to be able to make some real contributions.... one day maybe.

                              Libre Wave - Freedom respecting instruments and effects
                              My Patreon - HISE tutorials
                              YouTube Channel - Public HISE tutorials

                              1 Reply Last reply Reply Quote 0
                              • d.healeyD
                                d.healey
                                last edited by

                                I also changed CTRL+H (72) to CTRL+h (104). Isn't CTRL+f more standard for find/replace and F11 for full screen?

                                Libre Wave - Freedom respecting instruments and effects
                                My Patreon - HISE tutorials
                                YouTube Channel - Public HISE tutorials

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

                                  Yes I wanted to change that for quite some time.

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

                                  47

                                  Online

                                  1.7k

                                  Users

                                  11.7k

                                  Topics

                                  101.8k

                                  Posts