Menu

drop down Auto completion (auto dropdown)

2007-09-14
2012-11-13
  • Nobody/Anonymous

    Hi all,

    often discussed ...
    What about an option for automatically opening for the dropdown list for auto complete?
    With a box to tell that drop down list shall be opend when 2, 3, 4, 5, 6 characters written.

    If this feature is too slow for someone's PC, "he" should not switch it on.
    But I like (love) this feature!

    Greetings,
    Th. de Buhr

     
    • young

      young - 2007-09-17

      similar topic i have posted before (title not interesting enough?)

      http://sourceforge.net/forum/forum.php?thread_id=1820179&forum_id=331753

      together with the automatic dropdown list for auto complete it would be great to have the api files (containing keywords for completion) in xml with additional info, so when the dropdown pops up, it would look something like this

      http://doc.waterproof.fr/var/news/storage/images/media/images/codeinsightphpkeywords/2639-1-eng-GB/codeinsightphpkeywords.png

       
    • Nobody/Anonymous

      //Autocomplete
      if Notification.nmhdr.code = SCN_CHARADDED then
      begin
        if isAlNum(Chr(Notification.ch)) then
        begin
          Inc(Autocomplete_Chars);
          if Autocomplete_Chars = 3 then
            begin
              Autocomplete_Chars := 0;
              SendMessage(LocalNppData._nppHandle, WM_COMMAND, hiword(BN_CLICKED) and loword(IDC_AUTOCOMPLETE), 0);
            end;
        end
        else
        begin
          Autocomplete_Chars := 0;
        end;
      end;

      Include the following code into a plugin's notification procedure. This should open the dialog after 3 character.
      Not tested and code is not checking for cursormodification were the counter has to be reseted too.
      But it's the basic for the plugin you need. Have fun with it.

       
    • Don HO

      Don HO - 2007-09-14

      This feature (trigger auto-completion on each key-stroke) will be optional in next release (v4.3).

      Don

       
      • Nobody/Anonymous

        Will it be on EACH key? Or maybe better on character-key only? Autocomletion popup after each Space or Enter isn't so good %)

         
      • Nobody/Anonymous

        It is for word completion or function completion?

        Can the drop down list item be selected from the end of the list if Up arrow is pressed from the top of the list?

         
        • Don HO

          Don HO - 2007-09-15

          > It is for word completion or function completion?

          User can choose between both list in Preferences dialog.

          > Can the drop down list item be selected from the end of the list if Up arrow is pressed from the top of the list?

          No.

          Don

           
          • Nobody/Anonymous

            It is so inconvenience when the list is long, and you known the item you want is at the near end of the list. Can this feature (select from the end) be added to Notepad++?

             
    • Nobody/Anonymous

      How about using pgdn or end on the keyboard? Or maybe hold control key or use scroll button on mouse (could become useless when using laptop with trackpad.. my trackpad doesn't have scroll capabilities.)..

        Also, what would be great is when you choose a function, it gives a small pop-in with required/[accepted] arguments.

        Thanks.