Searching language in code block doesn't show first match

Describe the bug
When I use the code block and want to change the language, I type the first character into the search field. The list then jumps to where the first hit is within that list, with that character.
But the view is shifted, so this works only correctly if the first character of the initial language is before the wanted language in the alphabet.

So changing from Basic to C looks fine.
Changing from PowerShell to C doesn’t look correct.

To Reproduce
Steps to reproduce the behavior:

  1. Create code block
  2. Select “Powershell”
  3. open the language picker again and type a “C”
  4. See the “C” language not being shown

Expected behavior
To see the language picker to show the first result with the searched character.

System Information:

  • OS: Linux
  • Anytype Version: 0.25.4
2 Likes

Wo good one, that’s a deep cut.