Mojira Archive
MC-182309

Command autocomplete doesn't sort strings that start with the given word to the top

The bug

The command autocomplete feature in the 1.16 snapshots now also considers parts following an underscore when searching for possible completions. However, this causes an issue when quickly typing commands.

For instance, when typing /setblock ~ ~ ~ sandston, the first result is minecraft:chiseled_red_sandstone, which is most likely not the block that should be on top and automatically selected.

This causes annoying delays when typing commands since the user needs to type the word fully (thus making the autocomplete feature superfluous) or use the arrow keys to scroll to the correct (short) word (which takes some time).

Instead, strings that do not start with the given string but have the given string following an underscore should be sorted below the strings that start with the given string.

Examples

  • /setblock ~ ~ ~ dir
    minecraft:coarse_dirt
  • /setblock ~ ~ ~ ston
    minecraft:chiseled_stone_bricks
  • /setblock ~ ~ ~ sandston
    minecraft:chiseled_red_sandstone
  • /setblock ~ ~ ~ terracott
    minecraft:black_glazed_terracotta
  • /summon minecar
    minecraft:chest_minecart

Fixed

[Mod] violine1101

[Mojang] Georgii Gavrichev

2020-05-04, 02:02 AM

2021-07-17, 10:32 PM

2020-06-15, 05:44 PM

13

10

Confirmed

Important

Commands, UI

20w18a - 1.16 Pre-release 320w18a, 20w20b, 20w21a, 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 3

1.16 Pre-release 6