aboutsummaryrefslogtreecommitdiffstats
path: root/default-plugins/fixture-plugin-for-tests
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2025-09-24 12:56:56 +0200
committerGitHub <noreply@github.com>2025-09-24 12:56:56 +0200
commit533140831d825829afaf864d940c435056788d3e (patch)
tree9fe6b7da3955663c8373776499f85addfd044d40 /default-plugins/fixture-plugin-for-tests
parentrefactor(client-server-contract): config + layout (#4383) (diff)
downloadsl0ppij-533140831d825829afaf864d940c435056788d3e.tar.gz
sl0ppij-533140831d825829afaf864d940c435056788d3e.tar.xz
sl0ppij-533140831d825829afaf864d940c435056788d3e.zip
fix(ipc): make sessions compatible between versions (#4439)
* translate ipc tuple enum variants to struct enum variants * initial client/server contract * tests and missing types * migrate web server and remove rmp_serde * change socket folder * fix crash on unknown messages * fix client logout on unknown message * fix web client logout on unknown message * rustfmt * add comment and change log level * address compilation warnings * style(fmt): rustfmt * fix plugin system test assertions * add pr
Diffstat (limited to 'default-plugins/fixture-plugin-for-tests')
-rw-r--r--default-plugins/fixture-plugin-for-tests/src/main.rs32
1 files changed, 24 insertions, 8 deletions
diff --git a/default-plugins/fixture-plugin-for-tests/src/main.rs b/default-plugins/fixture-plugin-for-tests/src/main.rs
index 8ca23557..01489860 100644
--- a/default-plugins/fixture-plugin-for-tests/src/main.rs
+++ b/default-plugins/fixture-plugin-for-tests/src/main.rs
@@ -490,42 +490,58 @@ impl ZellijPlugin for State {
(
InputMode::Locked,
KeyWithModifier::new(BareKey::Char('a')).with_ctrl_modifier(),
- vec![actions::Action::SwitchToMode(InputMode::Normal)],
+ vec![actions::Action::SwitchToMode {
+ input_mode: InputMode::Normal,
+ }],
),
(
InputMode::Normal,
KeyWithModifier::new(BareKey::Char('a')).with_ctrl_modifier(),
- vec![actions::Action::SwitchToMode(InputMode::Locked)],
+ vec![actions::Action::SwitchToMode {
+ input_mode: InputMode::Locked,
+ }],
),
(
InputMode::Pane,
KeyWithModifier::new(BareKey::Char('a')).with_ctrl_modifier(),
- vec![actions::Action::SwitchToMode(InputMode::Locked)],
+ vec![actions::Action::SwitchToMode {
+ input_mode: InputMode::Locked,
+ }],
),
(
InputMode::Tab,
KeyWithModifier::new(BareKey::Char('a')).with_ctrl_modifier(),
- vec![actions::Action::SwitchToMode(InputMode::Locked)],
+ vec![actions::Action::SwitchToMode {
+ input_mode: InputMode::Locked,
+ }],
),
(
InputMode::Resize,
KeyWithModifier::new(BareKey::Char('a')).with_ctrl_modifier(),
- vec![actions::Action::SwitchToMode(InputMode::Locked)],
+ vec![actions::Action::SwitchToMode {
+ input_mode: InputMode::Locked,
+ }],
),
(
InputMode::Move,
KeyWithModifier::new(BareKey::Char('a')).with_ctrl_modifier(),
- vec![actions::Action::SwitchToMode(InputMode::Locked)],
+ vec![actions::Action::SwitchToMode {
+ input_mode: InputMode::Locked,
+ }],
),
(
InputMode::Search,
KeyWithModifier::new(BareKey::Char('a')).with_ctrl_modifier(),
- vec![actions::Action::SwitchToMode(InputMode::Locked)],
+ vec![actions::Action::SwitchToMode {
+ input_mode: InputMode::Locked,
+ }],
),
(
InputMode::Session,
KeyWithModifier::new(BareKey::Char('a')).with_ctrl_modifier(),
- vec![actions::Action::SwitchToMode(InputMode::Locked)],
+ vec![actions::Action::SwitchToMode {
+ input_mode: InputMode::Locked,
+ }],
),
];
rebind_keys(keys_to_unbind, keys_to_rebind, write_to_disk);