-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate items in function and word autocomplete #13061
Comments
The duplication in list when auto-completion of word & function is enabled is not a bug to me. |
From what I can see, there is no benefit to having two (or more) same entries in the list. After inserting the word, we have the same effect. It just makes the list grow unnecessarily. If two entries are only informative (that we have something from [] abc > no icon same as now, symbolize word from file [?] abc > function from xml and word from file (maybe fx icon should look different?) Btw, I see that same function/keyword can appear in xml, so actually in some cases we can have even 3 of the same entries in list. |
@ArkadiuszMichalski @mpheath If yes, the pixmaps shouldn't be there. The pixmap is for distiguishing functions and keywords from words. |
@donho
The answer is No. It also affects Function and Word completion. If
The Word completion can be informative with piximaps as:
I agree with your last quoted statement 100% though what you claim as piximaps shouldn't be there is based on what exactly? Perhaps the styling in the document is a mistake in your opinion and should be styled as just black coloured words? You cannot have it both ways and still claim that your right. |
I prefer word completion without "box" and "fx" icons |
I thought it was @vinsworldcom who provided this pixmap: c394a89 Anyway, even you are Vince or, Vince integrated your suggestion, I don't find it ironic: it means that these images have become the one of essential parts of Notepad++, which is difficult to change. But I do understand it's ironic from your viewpoint. After playing around your PR, I told myself "why not" - the list is shorter (as the main point of @ArkadiuszMichalski) and it adapts to the environment (func pixmap appears only according the set language). So OK for the PR. Thank you for your explanation and your contribution. |
I noted this - word autocomplete and function autocomplete would create duplicates - in my original issue and my original pull request that added the icons in the first place. I couldn't find a solution then without some pretty gnarly changes and just wanted the feature to be accepted with minimal impact. Happy to see it's improving and by eliminating the duplicates now and other changes I've seen to autocomplete (re-filtering), it's getting much better! Thanks @mpheath and @donho for creating and accepting this new PR. Cheers. |
Description of the Issue
Autocomplete setting is function and word autocomplete so that words are also searched in the document. Some of the words can be keywords or function names and are compared with those from the xml, though the xml processing adds type separators with an ID so are different strings. This difference causes duplicates in the autocomplete.
Steps to Reproduce the Issue
Expected Behavior
An autocomplete list without duplicate items
Actual Behavior
An autocomplete list with duplicate items
Debug Information
The text was updated successfully, but these errors were encountered: