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

Allow user to configure/remap key bindings? #17

Open
khughitt opened this issue Apr 30, 2023 · 4 comments
Open

Allow user to configure/remap key bindings? #17

khughitt opened this issue Apr 30, 2023 · 4 comments
Labels
Textual Issue Issues that are really down to how Textual works

Comments

@khughitt
Copy link

This way, I could configure things to behave more like other CLI tools I tend to use most often, e.g.:

/     find  (if added)
q    quit
e    edit (if added)
:     command mode
@davep
Copy link
Collaborator

davep commented Apr 30, 2023

External configuration of key bindings is something that is on the Textual roadmap, so I think it'll be likely that this will be left until that is a Textual feature.

I'll keep this open though as I see the value.

@Zylatis
Copy link

Zylatis commented May 1, 2023

+1 for this as cntrl q quits the terminal on ubuntu :)

@davep
Copy link
Collaborator

davep commented May 1, 2023

If it helps, right now Ctrl+C will also safely exit, and Escape in an empty input will too (hitting escape repeatedly should always result in an exit).

@khughitt
Copy link
Author

khughitt commented May 2, 2023

Makes sense.

I suspect this is already a consideration, but if there are going to be some common default keybindings used across Textual, it could be useful to see what other popular TUI tools use and adopt similar norms, when possible.. This way it's easy to jump between tools with minimal friction.

@davep davep added the Textual Issue Issues that are really down to how Textual works label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Textual Issue Issues that are really down to how Textual works
Projects
None yet
Development

No branches or pull requests

3 participants