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

Change command palette key #4857

Closed
willmcgugan opened this issue Aug 9, 2024 · 6 comments
Closed

Change command palette key #4857

willmcgugan opened this issue Aug 9, 2024 · 6 comments
Labels
good first issue Good for newcomers

Comments

@willmcgugan
Copy link
Collaborator

ctrl+\ is awkward on some keyboards. Maybe it should just be ctrl+p?

@willmcgugan willmcgugan added the good first issue Good for newcomers label Aug 9, 2024
@phershbe
Copy link

phershbe commented Aug 10, 2024

I found this on a website that aggregates issues tagged as good first issue and would like to work on it if you are open to a new contributor and sure that you want to make the change.

Am I correct in assuming that it is basically as simple as changing the binding in app.py and then updating the corresponding documentation and tests?

@TomJGooding
Copy link
Contributor

TomJGooding commented Aug 10, 2024

I assumed that Ctrl+\ was chosen because this is unlikely to clash with other bindings?

If the command palette binding is going to change to something like Ctrl+p, I'd suggest adding something to the FAQ as I suspect this will create some issues!

@willmcgugan
Copy link
Collaborator Author

Am I correct in assuming that it is basically as simple as changing the binding in app.py and then updating the corresponding documentation and tests?

It is likely as simple as that, yes!

@willmcgugan
Copy link
Collaborator Author

I assumed that Ctrl+\ was chosen because this is unlikely to clash with other bindings?

If the command palette binding is going to change to something like Ctrl+p, I'd suggest adding something to the FAQ as I suspect this will create some issues!

Pretty much, but on some keyboards that combo is tricky. ctrl+p has a higher likelyhood of clashing, but it is often used for a command palette, and muscle memory is hard to change.

A FAQ entry may be a good idea. As would a note how to change it in the docs.

@TomJGooding
Copy link
Contributor

It looks like the command palette binding was changed in #4867.

This change and the new COMMAND_PALETTE_BINDING variable probably needs adding to the CHANGELOG?

Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants