Skip to content

Tab Completions  #3894

Description

@MrScopes

I couldn't find a good open issue to leave this comment on, but I think with a tab completion event, there could also be an option in commands:

command /hello <text> <text>:
    tab complete:
        set completions to "hello" and "hi" # this sets both position 1 and 2
        # set completions to ("hello" and "hi") and "epic" - this could also work to set position 1 and 2
        set completions for tab arg 2 to "sup" if tab arg 1 is "hello" # so, if the user puts "hello", the next completion will be "sup"
    trigger:
        doStuff

tab arg 1 acting as the user input, completions for tab arg 1 acting as what you set
event-player and etc would work in tab complete:
I'd like to hear what people think about this

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR availableIssues which have a yet-to-be merged PR resolving itenhancementFeature request, an issue about something that could be improved, or a PR improving something.priority: lowIssues that are not harmful to the experience but are related to useful changes or additions.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Status
    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions