frogmouth icon indicating copy to clipboard operation
frogmouth copied to clipboard

Allow user to configure/remap key bindings?

Open khughitt opened this issue 2 years ago • 4 comments

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

khughitt avatar Apr 30 '23 21:04 khughitt

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.

davep avatar Apr 30 '23 21:04 davep

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

Zylatis avatar May 01 '23 00:05 Zylatis

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).

davep avatar May 01 '23 05:05 davep

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.

khughitt avatar May 02 '23 00:05 khughitt