diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-02-28 16:12:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-28 16:12:12 +0100 |
| commit | 6340b5e312cd4c52fa7a967b44aa331253c64779 (patch) | |
| tree | 425a42f6c42599f5e348df54028321ff04f65739 /default-plugins/fixture-plugin-for-tests/src | |
| parent | docs(changelog): plugin aliases (diff) | |
| download | sl0ppij-6340b5e312cd4c52fa7a967b44aa331253c64779.tar.gz sl0ppij-6340b5e312cd4c52fa7a967b44aa331253c64779.tar.xz sl0ppij-6340b5e312cd4c52fa7a967b44aa331253c64779.zip | |
fix(plugins): respect cwd and start filepicker at filesystem root (#3161)
* allow padding cwd to plugins
* improve strider performance and fix alias cwd issue
* style(fmt): rustfmt
Diffstat (limited to 'default-plugins/fixture-plugin-for-tests/src')
| -rw-r--r-- | default-plugins/fixture-plugin-for-tests/src/main.rs | 5 |
1 files changed, 5 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 fe740f74..0da45a2f 100644 --- a/default-plugins/fixture-plugin-for-tests/src/main.rs +++ b/default-plugins/fixture-plugin-for-tests/src/main.rs @@ -1,5 +1,6 @@ use serde::{Deserialize, Serialize}; use std::collections::BTreeMap; +use std::io::prelude::*; use zellij_tile::prelude::*; // This is a fixture plugin used only for tests in Zellij @@ -300,6 +301,10 @@ impl ZellijPlugin for State { LayoutInfo::BuiltIn("compact".to_owned()), ); }, + Key::Ctrl('8') => { + let mut file = std::fs::File::create("/host/hi-from-plugin.txt").unwrap(); + file.write_all(b"Hi there!").unwrap(); + }, _ => {}, }, Event::CustomMessage(message, payload) => { |
