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

Tab Complete the /skript command #3531

Closed
MrScopes opened this issue Nov 8, 2020 · 1 comment
Closed

Tab Complete the /skript command #3531

MrScopes opened this issue Nov 8, 2020 · 1 comment
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).

Comments

@MrScopes
Copy link
Contributor

MrScopes commented Nov 8, 2020

/skript [reload|enable|disable] should have tab completions of all of the scripts
I did this with skbee:

on tab complete:
    event-string is "/skript" or "/sk"
    set tab completions for position 1 to "reload", "enable", "disable", "update" and "help"
    set tab completions for position 2 to all scripts
@TheDGOfficial
Copy link
Contributor

Yes, it can be useful. Also, reload and disable should only tab complete enabled scripts, while enable tab completing only disabled scripts. It should require a permission however, since not every server admin may want to show their script file names. Should also support script names with space and starting with an existing argument (i.e /sk reload aliases test.sk conflicting with /sk reload aliases), witch may not be easy.

Also adding tab complete for script commands without an addon would be nice. Maybe tab complete default arguments? (i.e command /hello <text=world>: will tab complete the first argument with "world") Or provide a tab-completer section that accepts a function name as parameter? (example function signature: function onTabComplete(sender: command sender, command: string, alias: string, args: strings) :: strings:)

@ShaneBeee ShaneBeee added enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements). labels Nov 11, 2020
@TPGamesNL TPGamesNL added the PR available Issues which have a yet-to-be merged PR resolving it label Apr 24, 2021
@TPGamesNL TPGamesNL added completed The issue has been fully resolved and the change will be in the next Skript update. and removed PR available Issues which have a yet-to-be merged PR resolving it labels Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Projects
None yet
Development

No branches or pull requests

5 participants