diff options
Diffstat (limited to 'default-plugins/fixture-plugin-for-tests/src/main.rs')
-rw-r--r-- | default-plugins/fixture-plugin-for-tests/src/main.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/default-plugins/fixture-plugin-for-tests/src/main.rs b/default-plugins/fixture-plugin-for-tests/src/main.rs index 0da45a2f4..cd4fb45a1 100644 --- a/default-plugins/fixture-plugin-for-tests/src/main.rs +++ b/default-plugins/fixture-plugin-for-tests/src/main.rs @@ -299,12 +299,20 @@ impl ZellijPlugin for State { switch_session_with_layout( Some("my_other_new_session"), LayoutInfo::BuiltIn("compact".to_owned()), + None, ); }, Key::Ctrl('8') => { let mut file = std::fs::File::create("/host/hi-from-plugin.txt").unwrap(); file.write_all(b"Hi there!").unwrap(); }, + Key::Ctrl('9') => { + switch_session_with_layout( + Some("my_other_new_session_with_cwd"), + LayoutInfo::BuiltIn("compact".to_owned()), + Some(std::path::PathBuf::from("/tmp")), + ); + }, _ => {}, }, Event::CustomMessage(message, payload) => { |