You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, I escape quotes so when a user types the command, it would result in something like this :
/testcommand "Text with spaces" false
Problem 1 is :
When the user press tab multiple times, the choices should be displayed in turns, one by one, but in fact the completion restarts each time tab is pressed at the last space. For example :
Typing /testcommand
Pressing tab once and get /testcommand "Text with spaces"
Pressing tab again and get /testcommand "Text with "Another string"
Pressing tab again and get /testcommand "Text with "Another "Text with spaces"
Pressing tab again and get /testcommand "Text with "Another "Text with "Another string"
over and over... it never stops
Problem 2 is :
When the choices element is filled with text that start with similar sub text, the completion just stops. For example with this following command structure :
Typing /testcommand
Pressing tab once and get /testcommand "Text with
Here it stops at the end of the longest common prefix, which is totally normal and expected
However, when user press tab again, nothing is filled anymore.
We expect that the command would be filled with the remainings text after the longest common prefix, in this case : spaces" or something".
I guess that the completion broke because of the space after Text with.
Do not hesitate to ask me for more information or more tests, I'm ready to help.
Thank you for reading this issue.
The text was updated successfully, but these errors were encountered:
Similar to #2254, I don't see this as something we're really going to look at - though less minor than that issue, I don't see this as a major bug and with the way API 7's commands work, I feel like this would be a complicated fix for little gain. I may get time to look at it but I have many other foci right now that the time spent fixing this will far eclipse the value.
Again, you're welcome to investigate yourself and provide a PR if you feel up to it!
Hey, it's me (again) for another issue 😅
I already spoke about it in Discord but I found an issue using quotes for commands in Sponge.
For example, I have this command following command structure that gives me the choice between two strings containing spaces :
As you can see, I escape quotes so when a user types the command, it would result in something like this :
/testcommand "Text with spaces" false
When the user press tab multiple times, the choices should be displayed in turns, one by one, but in fact the completion restarts each time tab is pressed at the last space. For example :
Typing
/testcommand
Pressing tab once and get
/testcommand "Text with spaces"
Pressing tab again and get
/testcommand "Text with "Another string"
Pressing tab again and get
/testcommand "Text with "Another "Text with spaces"
Pressing tab again and get
/testcommand "Text with "Another "Text with "Another string"
over and over... it never stops
When the choices element is filled with text that start with similar sub text, the completion just stops. For example with this following command structure :
Typing
/testcommand
Pressing tab once and get
/testcommand "Text with
Here it stops at the end of the longest common prefix, which is totally normal and expected
However, when user press tab again, nothing is filled anymore.
We expect that the command would be filled with the remainings text after the longest common prefix, in this case :
spaces"
orsomething"
.I guess that the completion broke because of the space after
Text with
.Do not hesitate to ask me for more information or more tests, I'm ready to help.
Thank you for reading this issue.
The text was updated successfully, but these errors were encountered: