Merged
Conversation
…closest possible command matches are returned. Updating presentation of messages and help. Updating unit tests for the new presentation of messages
… repeat the previous one, .! [#] to repeat the # back command, and .! list to list out the last 10 command history for the user.
Base automatically changed from
feature/Closest_command_recommendation_and_updating_message_presentation
to
dev/v0.10.3
May 27, 2025 17:20
Odjit
added a commit
that referenced
this pull request
May 31, 2025
* .help by default lists all the plugins with commands you can use Added a second level of filtering to .help so you can filter commands with a plugin or second filter for the command search .help now has commands and plugins sorted Adds .help-all which functions similar to previous .help except its ordered Added new unit tests * Commands can now be overloaded. If there is ambiguity in which command was intended to be called then you will be presented with the options and asked to pick one with .# Can specify a command for a specific plugin by using the name of it first before the command * .help by default lists all the plugins with commands you can use Added a second level of filtering to .help so you can filter commands with a plugin or second filter for the command search .help now has commands and plugins sorted Adds .help-all which functions similar to previous .help except its ordered Added new unit tests * When you submit a command but its not quite right up to three of the closest possible command matches are returned. Updating presentation of messages and help. Updating unit tests for the new presentation of messages * Command History and Recall Feature (#33) * When you submit a command but its not quite right up to three of the closest possible command matches are returned. Updating presentation of messages and help. Updating unit tests for the new presentation of messages * Adds the ability to repeat any of the last 10 commands. Can use .! to repeat the previous one, .! [#] to repeat the # back command, and .! list to list out the last 10 command history for the user. * Unit tests added for repeat commands * Updating README.md reflecting all changes Added additional colors correlating to various colors in VRising * Adding reference to V Roles in the Middleware section as an example plugin already using the middleware. * Guess different version of .net is being used on the GitHub Action workflow than in the project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR introduces a new "command history" feature allowing players to recall and reuse previously executed commands. This quality-of-life improvement helps players avoid retyping complex or frequently used commands.
Features
Command Repeat (.!)
• Instantly repeats the most recently executed command
• Shows feedback indicating which command is being repeated
• Example: After using .echo hello, typing .! will execute .echo hello again
Command History Listing (.! list or .! l)
• Displays a numbered list of your 10 most recently executed commands
• Most recent commands appear at the top of the list
• Each command is prefixed with its history index number
Command History Recall by Index (.! )
• Executes a specific command from your history using its index number
• Example: .! 2 will execute the command listed as #2 in your history
Implementation Details
• Command history is user-specific (each player has their own isolated command history)
• History is limited to the 10 most recent commands per player
• Graceful error handling for users with no command history
• Invalid history indices trigger helpful error messages
• The feature structure uses placeholder commands in RepeatCommands.cs for help documentation, with the actual implementation in CommandRegistry.HandleCommandHistory
This feature enhances the user experience by reducing repetitive typing and making complex command sequences more accessible.