mojira.dev
MC-123427

Common prefixes are no longer tab-completed

The bug

In 1.12.2, common prefixes were automatically tab-completed. This allowed people to easily narrow down the result set. As of 17w50a, this is no longer the case.

How to reproduce

  1. Type /scoreboard objectives add name m

  2. Hit tab

You will be given a huge list of tab-completion suggestions. Finding the one you need will be no faster than typing it. However, 1.12.2 Would first tab-complete to /scoreboard objectives add name minecraft. - from there, you could keep on specifying what you need, for example by adding a b at the end and hitting tab again, which would give you /scoreboard objectives add name minecraft.broken: and so on.

Linked issues

Attachments

Comments 16

Confirmed for 1.13-pre3

Confirmed for 1.13-pre5

I'd like to add something I said in my bug report (that is a duplicate). So I'll copy-paste that here. Like I said there, I'm not sure this was something that existed, but even if it wasn't, I'm hoping the devs couls add that while they're at it, because it would be so useful ! (at least for IDs such as scoreboard criterias) So here it is :

 

" I can't remember if something like that was there in 1.12, but a useful thing would be to have additionnal suggestions that would always be at the top (except if there are results that would end before having a "non-letter character") but that would never suggest anything after the next "non-letter character".

Explanation :

  • Start with nothing written for the criteria → Every ID is suggested

  • Type "d". Let's imagine you have a mod called "Doors" → Suggestions will be "deathCount", then "dummy", THEN "doors" items

  • Delete that "d", you actually wanted to type "minecraft" → Suggestions are "minecraft.", then all the full IDs starting by that

  • Add that dot → Suggestions are "minecraft.broken:", "minecraft.crafted:", "minecraft.custom:" etc (so we have a clear list of what is possible directly after "minecraft.", instead of having to scroll down for half a day or try every letter, and more than carefully since something like "crafted" and "custom" happens), and then we have all the full IDs starting by that

  • Tpye "c" → Suggestions are "minecraft.crafted:" and "minecraft.custom:", then all the full IDs starting by that (as usual)

► So, in short, nothing changes at all about which full IDs are shown, we only add what are all the categories in which they are scattered. "

Confirmed for 1.13.1-pre2

6 more comments

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 21w07a.

[Mod] redstonehelper

(Unassigned)

Confirmed

Platform

Normal

Commands

commands, tab-completion

Minecraft 17w50a, Minecraft 18w05a, Minecraft 18w06a, Minecraft 1.13-pre1, Minecraft 1.13-pre3, ..., 21w06a, 21w07a, 1.17, 1.20.1, 1.21.4

Retrieved