HISE Logo Forum
    • Categories
    • Register
    • Login

    How to auto complete from API list?

    Scheduled Pinned Locked Moved General Questions
    8 Posts 4 Posters 444 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.
    • O
      observantsound
      last edited by

      I've seen this in Davids videos. I thought it was just double clicking on the API command but that doesn't seem to work for me...?

      d.healeyD Matt_SFM 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @observantsound
        last edited by

        @observantsound That hasn't worked for a long time :(

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

        1 Reply Last reply Reply Quote 2
        • Matt_SFM
          Matt_SF @observantsound
          last edited by

          @observantsound pressing 'enter' works on PC here.
          On MacOS the auto complete doesn't even appear most of the time.

          Develop branch
          Win10 & VS17 / Ventura & Xcode 14. 3

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

            @Matt_SF I don't think he's talking about the auto-complete popup. It used to be the case that you could double-click an item in the API browser and it would add it to your script, but that no longer works.

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

            Matt_SFM 1 Reply Last reply Reply Quote 1
            • Matt_SFM
              Matt_SF @d.healey
              last edited by

              @d-healey oh you're right (it seems I'm lacking focus today) , yeah this has been broken for a while indeed. Too bad, that was useful.

              Develop branch
              Win10 & VS17 / Ventura & Xcode 14. 3

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

                @Matt_SF But still you're right, the auto-complete doesn't always work as intended. For instance Console.print() is not always showing...
                Would be good to get back the double-click on the APIs as well, and the "All component folded" I added a while ago when opening the project... This somehow disappeared, I'll have a look if I can do something

                EDIT: In fact the component list can be collapsed with a right click => Open tree by default (which is not recalled, but since it's at one click...)

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

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

                  @ustk The API double-ckick (or press return key) has not been implemented for the new code editor and is beyond my skills:

                  void MainController::insertStringAtLastActiveEditor(const String &string, bool selectArguments)
                  {
                  #if USE_BACKEND
                  	if (lastActiveEditor.getComponent() != nullptr)
                  	{
                  		auto ed = dynamic_cast<PopupIncludeEditor::EditorType*>(lastActiveEditor.getComponent());
                  
                  #if !HISE_USE_NEW_CODE_EDITOR
                  
                  		ed->getDocument().deleteSection(ed->getSelectionStart(), ed->getSelectionEnd());
                  		ed->moveCaretTo(CodeDocument::Position(ed->getDocument(), lastCharacterPositionOfSelectedEditor), false);
                  		ed->insertTextAtCaret(string);
                  
                  		if (selectArguments)
                  		{
                  			ed->moveCaretLeft(false, false);
                  
                  			while (!ed->getTextInRange(ed->getHighlightedRegion()).contains("("))
                  				ed->moveCaretLeft(false, true);
                  
                  			ed->moveCaretRight(false, true);
                  		}
                  
                  #endif
                  		ed->grabKeyboardFocus();
                  	}
                  #endif
                  }
                  

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

                  1 Reply Last reply Reply Quote 0
                  • O
                    observantsound
                    last edited by

                    Ok good to know that the whole auto complete is a bit inconsistent.
                    So it's not just me doing it wrong!

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

                    52

                    Online

                    1.7k

                    Users

                    11.7k

                    Topics

                    102.1k

                    Posts