zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
20.92k stars 639 forks source link

feat(ui): configuration screen + configure non-colliding keys at runtime #3502

Closed imsnif closed 2 months ago

imsnif commented 2 months ago

This PR adds a configuration screen that currently allows us to configure non-colliding keys at runtime (triggered by default now with Ctrl o + c).

2024-07-17 14-47-24

Through this configuration screen, we are now also able to change the leader keys to either the default config or the new non-colliding config.

In the future, we'll be able to change the entire application config from this screen at runtime, as well as optionally save it so that it persists between sessions.

This PR changes the "rebind_keys" API call to "reconfigure" to reflect the fact that it will gradually accept an entire KDL configuration to override that of the current session. Right now, "reconfigure" supports "keybinds" and "default_mode".

Context

This is almost the last PR in the effort to solve the "colliding keybindings" problem. Some previous related PRs: #3422, #3383, #3475

The last piece left which will be added in an upcoming PR is to allow saving these configuration changes to disk so that they persist between sessions (right now they are limited to the current session).