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

Implement basic command flag suggestion filter #1304

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

Pugzy
Copy link
Contributor

@Pugzy Pugzy commented Mar 3, 2024

Our current no-filter approach suggests command flags first (and incorrectly) instead of partly formed inputs.

Currently running /ban den[tab] changes the input to /ban --silent and then /ban --time.

This change means that command flags will only be suggested if:

  • Input string currently empty
  • Input string starts with a flag -/--
  • Matches the start of the command flag

The above ban command example is from Community which extends the PGM command graph, to see an example baked in to PGM the /setnext command can be used which has --force and --reset flags.

@Pugzy Pugzy requested a review from Electroid as a code owner March 3, 2024 16:36
@Pablete1234 Pablete1234 added ready PR is ready to merge bug Something isn't working labels Apr 1, 2024
@Electroid Electroid merged commit 639b4b3 into PGMDev:dev Apr 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready PR is ready to merge
Development

Successfully merging this pull request may close these issues.

3 participants