Inconsistent behaviour of autocomplete
type /gam and press tab -> cycles between gamerule and gamemode
type /gam and press space -> autocompletes current selection and adds a space
type /gam and press enter -> autocompletes current selection and doesn't add a space
type /gamem and press tab -> autocompletes gamemode and doesn't add a space
type /gamem and press space -> doesn't autocomplete and adds a space
type /gamem and press enter -> doesn't autocomplete and executes command
Basic rules that should make this consistent:
- Enter should never autocomplete anything and always run the command
- Behavior when having one option should be the same as having multiple options
- Auto-completing a full argument should always add a space
Created Issue:
Inconsistent behaviour of the autocomplete behavior
type /gam and press tab -> cycles between gamerule and gamemode
type /gam and press space -> autocompletes current selection and adds a space
type /gam and press enter -> autocompletes current selection and doesn't add a space
type /gamem and press tab -> autocompletes gamemode and doesn't add a space
type /gamem and press space -> doesn't autocomplete and adds a space
type /gamem and press enter -> doesn't autocomplete and executes commandBasic rules that should make this consistent:
- Enter should never autocomplete anything and always run the command
- Behavior when having one option should be the same as having multiple options
- Auto-completing a full argument should always add a space
Inconsistent behaviour oftheautocompletebehavior
EDIT: To Confirm 17w47b
I would like to add a logical reason why this should be fixed:
/scoreboard objectives setdisplay sidebar auto completes regardless if enter, space or tab, to /scoreboard objectives setdisplay sidebar.team.aquaThis is a problem because now I can't clear the sidebar. I have to remove the objective then readd it. Unless I am missing some new command that clears it?
Anyway, TAB should give the next possible in the list. ENTER should run the command regardless. (I have found that I need to press ENTER twice for things to work). SPACE shouldn't affect anything but adding an actual space (it's purpose). In short this auto complete would be less buggy if this was fixed.
Should work kind of as before:
tab - autocomplete current selection without spacebar. tab next time replaces last autocompletion with another one - as previous - you can autocomplete and switch between them only with one key. When autocomplete choosed proper function you can "approve/commit" chosed autocompletion by typing spacebar or other character like [, (, : etc.
up/down arrow - switch selections before tab-completion
space - space
enter - run current command
So you can: /gam[tab][tab][space] to get "/gamerule " or /gam[tab][space] to get "/gamemode "
/gam[tab][space][tab][enter] will execute "/gamemode adventure"
/gam[tab][space]s[tab][enter] will execute "/gamemode survival" etc.
It's now consistent as of 17w48a, and any complaints about cycling are covered in
MC-122624.