beyond-all-reason / Beyond-All-Reason

Main game repository for Beyond All Reason.
https://www.beyondallreason.info/
Other
1.78k stars 296 forks source link

/give autocomplete issues #3709

Open sprunk opened 1 month ago

sprunk commented 1 month ago

1) image

Right now it autocompletes the entire first phrase (in this case a<tab> results in armaak). This is terrible because it forces you to type out enough of the name to be unambiguous, which in case of BAR's extremely abbreviated unitnames is often the entire name (like here it's completely impossible to benefit from autocomplete for armaap and armaas). Even for units with relatively unique names you have to type the entire faction name.

Ideally it would only autocomplete the unambiguous part. So if you type a<tab> it becomes just arm (everything that starts with a also starts with arm).

2) the set of suggestions is a bit inconsistent. If you do a<tab> it produces armaak and that's it, there aren't further suggestions and pressing tab again does nothing. But if you type the entire armaak manually it starts offering armaak_dead and a bunch of other options. BUT it doesn't seem to ever offer armaak_scav, only its wrecks.

image

3) autocompleting a full name does not append a space, which is annoying because you cannot give any other valid follow-up than space. For example /gi| currently autocompletes to /give| but should result in /give | because if I were to type anything further then I would always have to add the space anyway (the | is the cursor). Applies to units too, up to the dead/scav caveat above, and of course other /commands.