Skip to content

Autocompletion for ignoreCase="yes" and mixed words case works incorrect #12495

@ArkadiuszMichalski

Description

@ArkadiuszMichalski

When we have ignoreCase="yes" (default) and mixed words in xml file then the popup does not work properly.

Str:

  1. Open Notepad++ and select ActionScript language.
  2. Press a. We will get:
    image
    This is correct. We get a list of words starting with a and A (because we ignore case), and a is selected because it fits better in the text.
  3. Press b. Popup will be closed. It's wrong because the word abs exist on list.

Same happend when in step 3. we press c or d. The interesting thing is that there is no problem with e.g. l, n, p, s.

Another casae:

  1. Open Notepad++ and select ActionScript language.
  2. Press a. We will get:
    image
    This is correct. We get a list of words starting with a and A (because we ignore case), and a is selected because it fits better in the text.
  3. Press r. We will get:
    image
    Still acceptable because it fits better than Array.
  4. Press r. Popup will be closed. It's wrong because the word Array exist on the list.

This works fine when we have only one variant of name value in .xml (only upper or only lower) or when we set ignoreCase="no".
But still I want to be able to put on the list mixed case even when language is case insensitive (names are more readable and often appear in this form in the specification).

Another question: would not be better if pressing next case will refresh popup list to show only the matching items? Now when we press one char like a we get list of all words started with a, now when press b this list is the same (still show all words started with a) but select ab word.
The problem is when we have AZ1, AZ2, AZ3... and az word and there are a lot of other words started wit a or A between them. Now when on the list az word was selected we don't see (don't know) that words like AZ1, AZ2, AZ3.... exist (we don't see it). If pressing next case will refresh popup list to show only the matching items then this problem would be reduced (even if a scroll appears, it won't be so long).

Notepad++ v8.4.6   (32-bit)
Build time : Nov  7 2022 - 21:47:42
Path : D:\_test\NPPClean\notepad++.exe
Command Line : -multiInst
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 11 (64-bit) 
OS Version : 21H2
OS Build : 22000.1219
Current ANSI codepage : 1250
Plugins : 
    mimeTools (2.8)
    NppConverter (4.4)
    NppExport (0.4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions