Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tab-complete coding suggestions when adding to .executes with /configcommands build #29

Open
willkroboth opened this issue Dec 4, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@willkroboth
Copy link
Owner

willkroboth commented Dec 4, 2022

This suggestion is inspired by this example for Brigadier Suggestions from the CommandAPI.

Basically, there would be a command, functionline or something that gives suggestions for each step of writing a line of code when using /configcommands build. Some examples:

Typed: /functionline
Suggesting: [command, set, do, tag, if, goto, return]

Typed: /functionline set
Suggesting: All available variable names, ex: [<sender>, <commandIndex>]

Typed: /functionline set <commandIndex>
Suggesting: All the ways to make an Integer? ex: [Integer.new(, Integer.(, <commandIndex>]

Typed: /functionline command
Suggesting: All commands available on the server, use CommandAPI's CommandArgument

Once the user presses enter and the build menu intercepts the command as a message, if it is a /functionline command it can get intercepted and parsed to the correct syntax.

Sent: /functionLine set <commandIndex> Integer.("4")
Parsed: <commandIndex> = Integer.("4")

Sent: /functionLine command /say Hello World!
Parsed: /say Hello World!

This is probably easier said than done, and it's not very easy to say!

@willkroboth willkroboth added the enhancement New feature or request label Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant