• Login
Community
  • Login

Autocomplete Items Order Issue

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
35 Posts 6 Posters 6.3k 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.
  • M
    Michael Vincent @Michael Vincent
    last edited by Feb 17, 2022, 8:40 PM

    @michael-vincent said in Autocomplete Items Order Issue:

    get an issue and pull request accepted

    Done and Done. Well, submitted at least, the accepted part will need to wait a bit.

    Cheers.

    1 Reply Last reply Reply Quote 4
    • V
      Valery Bogomolov @PeterJones
      last edited by Feb 17, 2022, 9:29 PM

      @peterjones I’m sorry for the “snippet-abuse”, I just wanted to get the most from the Npp’s auto-complete interface. I experimented with autocomplete a lot before developing the parser that generates KeyWords for my favorite language PHP. I wrote about it here

      Unexpectedly, I figured out that I was able, for example, to write faster SQL queries code rather than using any other editor for that.

      FingerText is not compatible with my configured Notepad++, QuickText is not convenient for me to use, but I use it. NppSnippets is a great plugin, but I have to search for a specific item in a dialog to insert a snippet and it takes some time.

      Regards.

      M A 2 Replies Last reply Feb 18, 2022, 12:51 PM Reply Quote 0
      • M
        Michael Vincent @Valery Bogomolov
        last edited by Feb 18, 2022, 12:51 PM

        @valery-bogomolov

        You can try the pull request AppVeyor build by downloading, and replacing your current notepad++.exe with the appropriate downloaded, renamed version. Of course, save your current notepad++.exe (notepad++.exe.orig) so you can revert back when done testing.

        Cheers.

        V 1 Reply Last reply Feb 18, 2022, 3:31 PM Reply Quote 3
        • A
          Alan Kilborn @Valery Bogomolov
          last edited by Feb 18, 2022, 1:01 PM

          @valery-bogomolov

          @michael-vincent said in Autocomplete Items Order Issue:

          You can try the…

          More details (if you need them) on exactly how you’d do that are HERE .

          1 Reply Last reply Reply Quote 3
          • V
            Valery Bogomolov @Michael Vincent
            last edited by Feb 18, 2022, 3:31 PM

            @michael-vincent Thank you for the great work, but personally, I don’t like the new UX of the autocomplete: the fx icon is really distracting and I have to look down a couple of lines to see the first result. I would prefer to have the old autocomplete if it could be possible, sorry

            M 1 Reply Last reply Feb 18, 2022, 3:37 PM Reply Quote 1
            • M
              Michael Vincent @Valery Bogomolov
              last edited by Feb 18, 2022, 3:37 PM

              @valery-bogomolov said in Autocomplete Items Order Issue:

              Thank you for the great work

              Assuming that means is sorts as you expect now?

              V 2 Replies Last reply Feb 18, 2022, 4:09 PM Reply Quote 1
              • V
                Valery Bogomolov @Michael Vincent
                last edited by Valery Bogomolov Feb 18, 2022, 4:11 PM Feb 18, 2022, 4:09 PM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • V
                  Valery Bogomolov @Michael Vincent
                  last edited by Feb 18, 2022, 4:20 PM

                  @michael-vincent Ok, now it works. I compared it with the old autocomplete version and the results seem to be the same.

                  Only fx icon is everywhere. There is a func="yes", or func="no" attribute in XML that describes the KeyWord, and the func attribute is not always required. There could be some language expression like return, but it’s not fx, right?

                  Best regards.

                  M 1 Reply Last reply Feb 18, 2022, 5:07 PM Reply Quote 1
                  • M
                    Michael Vincent @Valery Bogomolov
                    last edited by Feb 18, 2022, 5:07 PM

                    @valery-bogomolov

                    The “fx” distinguishes the option comes from an autocomplete/*.xml file versus a word from the current file when both word and API autocomplete is active.

                    Scintilla autocomplete has a lot to be desired and Notepad++ does the best it can with it, but plugins can use autocomplete too (e.g., QuickText, TagLEET, I have PythonScripts that do it to provide Python-IDE-like features with jedi). Only you can’t merge the lists - only 1 autocomplete is active at any time. So which suggestion is coming from what source?

                    TagLEET global tags file:
                    df1fbbe0-ccc1-46d5-80f8-57cf3b120ab5-image.png

                    TagLEET local tags file:
                    710d17f3-bc6d-477e-b6af-cea349052caf-image.png

                    QuickText:
                    e6a76f98-3b3f-4ec2-8564-154fc336970a-image.png

                    PythonScript custom Python IDE:
                    99fc1b29-3886-432a-8c57-769cf47e4421-image.png

                    523668f6-5208-4226-93f7-d0053f27df19-image.png

                    It’d be nice to see them all in the same list, but alas, each time a character is typed and a best match is found, whatever Notepad++ / Plugin matches best displays it’s abbreviated list. The Icons help determine where in the heck this suggestion is coming from.

                    This is no different than most other editors that offer autocomplete (VS Code example )
                    7a6eba30-6a8b-40f1-aacf-e7acb2193295-image.png

                    Cheers.

                    V 1 Reply Last reply Feb 18, 2022, 5:54 PM Reply Quote 3
                    • L
                      Lycan Thrope
                      last edited by Feb 18, 2022, 5:24 PM

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • L
                        Lycan Thrope
                        last edited by Lycan Thrope Feb 18, 2022, 5:26 PM Feb 18, 2022, 5:24 PM

                        @michael-vincent ,

                        Okay, to differentiate which is document words and which are autocomplete words seems to make sense, unless you factor in that if you don’t want the words from the document being introduced and only use it for the autocomplete list, the fx is actually redundant to that purpose. Now, if you want to show an icon for words from the document, that triggers if you switch that option on, that makes more sense. Since if the word is from an autocomplete it won’t matter, it’s a different procedure for you to autocomplete a function, and the keyword is just that, so you select it whether it has been in the document previously or not, but if it’s only from the document, that would make more sense to highlight that with a different character glyph. Just my two cents worth. :)

                        Wow, forum is slow and double posting posts. :(

                        1 Reply Last reply Reply Quote 0
                        • V
                          Valery Bogomolov @Michael Vincent
                          last edited by Feb 18, 2022, 5:54 PM

                          @michael-vincent fx means function of x in math… I would use something from what Notepad++ already has in its UI. For example, the cube icon from the Function List panel with light grey color, so not to distract the user and black color for the font in results, as it has right now :)

                          The example icon from the Function List panel
                          Npp_Autocomplete_Icon.png

                          and I would prefer to use unicode character instead of png, so it could be scalable and faster to load :)

                          P.s.: btw, I have also issue with NppGTags autocomplete as it shows me gibberish in results. It’s my favorite plugin :( Maybe, the engoding of generated tags file is wrong… no ideas how to fix
                          Npp_Autocomplete_ NppGTags.png

                          Cheers.

                          M P 2 Replies Last reply Feb 18, 2022, 6:01 PM Reply Quote 1
                          • M
                            Michael Vincent @Valery Bogomolov
                            last edited by Feb 18, 2022, 6:01 PM

                            @valery-bogomolov said in Autocomplete Items Order Issue:

                            I would use something from what Notepad++ already has in its UI

                            I did:

                            7e6761fe-97c5-46df-9c80-37c7ee263868-image.png

                            @valery-bogomolov said in Autocomplete Items Order Issue:

                            and I would prefer to use unicode character instead of png, so it could be scalable and faster to load :)

                            No characters, it’s not a PNG. Scintilla has only 2 options .

                            @valery-bogomolov said in Autocomplete Items Order Issue:

                            P.s.: btw, I have also issue with NppGTags autocomplete as it shows me gibberish in results

                            I would contact the author @pnedev and open an issue . He’s been very responsive fixing the Compare Plugin .

                            Cheers.

                            A 1 Reply Last reply Feb 18, 2022, 6:05 PM Reply Quote 4
                            • A
                              Alan Kilborn @Michael Vincent
                              last edited by Feb 18, 2022, 6:05 PM

                              @michael-vincent

                              My function list icon looks like this, not yours:

                              02fe184f-c743-403f-96ea-c8780215cfd4-image.png

                              M 1 Reply Last reply Feb 18, 2022, 6:08 PM Reply Quote 0
                              • M
                                Michael Vincent @Alan Kilborn
                                last edited by Feb 18, 2022, 6:08 PM

                                @alan-kilborn said in Autocomplete Items Order Issue:

                                My function list icon looks like this, not yours:

                                33a111fe-c2a6-46cd-b942-cf6cc12891c9-image.png

                                You’ll need to restart Notepad++.

                                1 Reply Last reply Reply Quote 2
                                • P
                                  pnedev @Valery Bogomolov
                                  last edited by Feb 24, 2022, 8:35 AM

                                  @valery-bogomolov ,

                                  This thread is becoming rather mixed-up.
                                  Please open an issue in NppGTags repo to discuss its autocomplete problem there.

                                  At first look it seems that the parser you are using (GTags maybe) is not recognizing some symbols in your codebase. AFAIR, the parser won’t be able to parse Unicode right if you are using it.

                                  1 Reply Last reply Reply Quote 3
                                  29 out of 35
                                  • First post
                                    29/35
                                    Last post
                                  The Community of users of the Notepad++ text editor.
                                  Powered by NodeBB | Contributors