HISE Logo Forum
    • Categories
    • Register
    • Login

    Script drop down

    Scheduled Pinned Locked Moved Feature Requests
    5 Posts 2 Posters 1.0k 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

      Is there a shortcut key to make this menu popup? Also could you add a feature so that the back and forward buttons on a mouse let you switch between the items in this menu (like tab switching in Sublime Text)?

      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

        Nice suggestion, I need to come up with a shortcut that isn't consumed by the code editor yet. But are the forward / backward buttons on a mouse standardised hot keys? I thought this is heavily dependent on the model / manufacturer.

        BTW, you can also "undo" and "redo" switching of those items using the "Undo / Redo" buttons on the main bar.

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

          I'm not sure if they're standardized, I know on some fancy mouses they can be reassigned. I suggest CTRL+R for that drop-down, only because it's the one used by Sublime Text. Can HISE's editor auto-complete functions from included files? In Sublime I've set up a ton of snippets for a lot of my custom library functions so I don't have to remember all of their names and parameters it would be good if there was a similar feature in HISE.

          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 Christoph Hart

            Yes, the autocomplete shows all functions and variables available (since the last compilation). You can even add a descriptive comment using /** ... **/ on the line before the function and it will show up in the popup.

            Also you can right click the function call and use Jump to definition which will open the location of the function definition.

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

              Alright, I've just pushed a change that enables the mouse buttons 4 + 5 to scroll through tabs of the code editor.

              There are two modes:

              1. By default, the mouse buttons scroll through the different callbacks (and external files) of a script editor. But:
              2. If the code editor is in a tab container (like in the scripting workspace) AND the container has more than 1 tab , then pressing those buttons will scroll through the tabs. This allows you to jump between selected code locations and not having to iterate through all callbacks (it also retains the positions).

              I had to hack around in the internal OS APIs to enable this so out of lazyness this feature is currently Windows only (but if someone heavily needs this on OSX, I'll add this).

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

              53

              Online

              1.7k

              Users

              11.7k

              Topics

              101.9k

              Posts