dev: Custom keybinds & better input support#11
Merged
Conversation
ChangelogSee GitHub Releases and the Bevy REPL Book for details. 0.3.1 - 2025-08-29📚 Documentation
🧪 Experimental
⚙️ Repository
📜 Full ChangelogChangelogSee GitHub Releases and the Bevy REPL Book for details. [0.3.0] - 2025-08-14📚 Documentation
🐛 Bug Fixes
🧪 Experimental
New Contributors ❤️
|
philiplinden
had a problem deploying
to
github-pages
August 29, 2025 06:15 — with
GitHub Actions
Failure
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.
Highlights
RatatuiContextresource)The custom keybinds was a happy accident, really. I started chasing the root cause of the issue with the shift key and the natural solution led to customizeable actions. It's not fully baked, though, and often breaks if you try to get fancy with the mappings.
It is pretty reliable to handle actions outside the REPL by handling bevy keyboard input events in
ReplSet::Pre(before the REPL runs and clears the events). I haven't seen how this might interact with other input event systems yet.Copilot summary
This pull request introduces several improvements and updates across the documentation, configuration, and examples for the Bevy REPL crate. The most significant changes are the addition of customizable keybinds, enhanced documentation for key event handling and logging, and updates to example organization and dependencies to support new features. These changes improve usability, clarify advanced configuration options, and make the REPL more flexible for different use cases.
Keybinds and Input Handling:
PromptKeymapand handling modifier combinations. This includes a new example (examples/keybinds.rs) and updated docs explaining advanced key mapping and caveats with modifier detection. [1] [2] [3] [4]Logging and Output:
LogPluginand Ratatui, including instructions for routing log output to the REPL renderer and when to disable the default logger. [1] [2]color-eyre.Examples and Configuration:
Cargo.tomlto showcase new features and better demonstrate configuration options.DefaultPluginswhere appropriate and removed unnecessary plugin inclusions for clarity and consistency. [1] [2] [3]Documentation and Known Issues:
These changes collectively make the REPL more configurable, better documented, and easier to integrate with custom workflows and TUI contexts.