diff options
| author | Truffle <truffleagent@gmail.com> | 2026-07-10 03:07:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-10 12:07:19 +0200 |
| commit | 0871f5d2b6f2fed36c6818bc9871bbbb5703dabe (patch) | |
| tree | 2b3874f3dd3b1ae9ede273e9c47f68efb6272033 /zellij-utils/src/ipc/tests | |
| parent | Allow creating panes/tabs from the CLI without changing focus to them (#5346) (diff) | |
| download | sl0ppij-0871f5d2b6f2fed36c6818bc9871bbbb5703dabe.tar.gz sl0ppij-0871f5d2b6f2fed36c6818bc9871bbbb5703dabe.tar.xz sl0ppij-0871f5d2b6f2fed36c6818bc9871bbbb5703dabe.zip | |
fix(config): allow binding theme actions in config.kdl (#5302)
* fix(config): allow binding theme actions in config.kdl
ToggleTheme, SetDarkTheme and SetLightTheme work from the CLI
(`zellij action toggle-theme`) but the keybinding parser rejected them
with "Unsupported action", so they could not be bound in config.kdl.
The inner `parse_kdl_action_arguments!` macro already knew these
actions, but the main `match action_name` arm that dispatches to it had
no entry for them, so they fell through to the unsupported-action error.
Add the missing parse arms, and the matching `to_kdl` serialization arms
so the bindings round-trip.
Closes #5297
* add actions to round trip tests
* add pr
---------
Co-authored-by: Aram Drevekenin <aram@poor.dev>
Diffstat (limited to 'zellij-utils/src/ipc/tests')
| -rw-r--r-- | zellij-utils/src/ipc/tests/roundtrip_tests.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/zellij-utils/src/ipc/tests/roundtrip_tests.rs b/zellij-utils/src/ipc/tests/roundtrip_tests.rs index db0b8fc1..eb8a06de 100644 --- a/zellij-utils/src/ipc/tests/roundtrip_tests.rs +++ b/zellij-utils/src/ipc/tests/roundtrip_tests.rs @@ -2279,6 +2279,24 @@ fn test_client_messages() { is_cli_client: true, }); test_client_roundtrip!(ClientToServerMsg::Action { + action: Action::SetDarkTheme, + terminal_id: Some(1), + client_id: Some(100), + is_cli_client: true, + }); + test_client_roundtrip!(ClientToServerMsg::Action { + action: Action::SetLightTheme, + terminal_id: Some(1), + client_id: Some(100), + is_cli_client: true, + }); + test_client_roundtrip!(ClientToServerMsg::Action { + action: Action::ToggleTheme, + terminal_id: Some(1), + client_id: Some(100), + is_cli_client: true, + }); + test_client_roundtrip!(ClientToServerMsg::Action { action: Action::LaunchOrFocusPlugin { plugin: RunPluginOrAlias::RunPlugin(RunPlugin::default()), should_float: true, |
