Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Configurable key shortcuts #328

Merged
merged 3 commits into from
Mar 6, 2022
Merged

Configurable key shortcuts #328

merged 3 commits into from
Mar 6, 2022

Conversation

3nprob
Copy link

@3nprob 3nprob commented Dec 7, 2021

By default no shortcuts are mapped.

Previous mappings included as sample (except q no longer closes modal)

Consider as alternative to #325

@3nprob 3nprob mentioned this pull request Dec 7, 2021
Copy link
Owner

@tulir tulir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default no shortcuts are mapped.

That doesn't sound very usable. The defaults need to be enabled by default. New shortcuts that are added later should probably also get enabled automatically for existing users, rather than users having to manually update their keybindings file.

The most sensible solution is probably loading the sample config as a base, then loading the user's config on top of that as overrides. The embed package may be useful to compile the sample file into the binary.

@tulir tulir merged commit f652501 into tulir:master Mar 6, 2022
prataffel added a commit to prataffel/gomuks that referenced this pull request May 28, 2022
This drops the hard-coded shortkeys in favor of the keybindings.yaml
file introduced in tulir#328
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants