Command and argument autocomplete #1977
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
currently the functionality is very basic
and just autocompletes command word
the plan is to
modify all command files to have them show their command and available arguments
take a command list from combining all commands from files instead of a preset array
check if thing to autocomplete is after a command so it should be an argument
take it from argument list of the command before so it matches the command
disable autocomplete for whole if the first character of the input is not a slash
make the autocomplete possibly server sided allowing autocomplete for custom server sided command on unmoded client
any suggestions please write a comment
and if someone knows a better way to get type's "List" length than this input.currentString.items[0..input.currentString.items.len].len