Skip to content

Different behaviour of Use Snippet Box #1063

@TLEBOT

Description

@TLEBOT

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

In the use snippet dialog box, the items are ordered by case, while in settings it is not ordered by case.

Expected Behavior

It shouldn't be sorted by case, and if there are multiple words, there should be word matching instead of whole string matching.

Steps To Reproduce

  1. Save some snippets in settings, with names in different case.
  2. Press Ctrl + T in the editor.
  3. Scroll and search using arrow keys.

CP Editor Version

6.9.2

OS

Arch Linux (Manjaro)

Are you willing to contribute to this?

  • I'm ready to fix this (and will open a PR soon)
  • I'd like to have a try (with the help of the maintainers)
  • No, thanks

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions