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

Provide a method of overriding the default application command keyboard bindings #69

Merged
merged 4 commits into from
Apr 1, 2025

Conversation

davep
Copy link
Owner

@davep davep commented Apr 1, 2025

This PR adds a simple method of providing keyboard binding overrides for the main application commands. It also provides a new command line switch for Hike which will list all of the commands that can be overridden. For example:

Screenshot 2025-04-01 at 16 55 37

Binding overrides as set via the configuration file; this is a dictionary in the file with the key being the name of the command and the value being the key or keys to bind, as a comma-separated list (note that due to a bug in Textual there must be no whitespace in the list). Key names are those that are defined by Textual.

Closes #56.

@davep davep added Enhancement New feature or request TODO A thing I'm planning on doing labels Apr 1, 2025
@davep davep self-assigned this Apr 1, 2025
@davep davep marked this pull request as ready for review April 1, 2025 21:23
@davep davep merged commit 56d638d into main Apr 1, 2025
4 checks passed
@davep davep deleted the rebind-commands branch April 1, 2025 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request TODO A thing I'm planning on doing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the ability to configure many of the headline command keys
1 participant