aboutsummaryrefslogtreecommitdiffstats
path: root/default-plugins
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2026-02-10 10:42:46 +0100
committerGitHub <noreply@github.com>2026-02-10 10:42:46 +0100
commit860e8e323a0d9b94280e1e25d0c626ff5bc03687 (patch)
tree53b7bdccd075f93e93a7d93d8bb79878061aa000 /default-plugins
parentchore: Fix the issue template to match existing labels (#4637) (diff)
downloadsl0ppij-860e8e323a0d9b94280e1e25d0c626ff5bc03687.tar.gz
sl0ppij-860e8e323a0d9b94280e1e25d0c626ff5bc03687.tar.xz
sl0ppij-860e8e323a0d9b94280e1e25d0c626ff5bc03687.zip
Improve plugin API ergonomics and add CLI goodies (#4690)
* return created tab_id from relevant plugin API methods * add to cli * return Option<PaneId> in plugin API methods that create panes * return created pane_id in cli for relevant actions * allow plugins to query for pane_info based on pane_id * allow plugins to query for TabInfo by its id * allow plugins to query pane command/cwd synchronously * zellij action list-panes * style and formatting * fix e2e tests * add pr
Diffstat (limited to 'default-plugins')
-rw-r--r--default-plugins/fixture-plugin-for-tests/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/default-plugins/fixture-plugin-for-tests/src/main.rs b/default-plugins/fixture-plugin-for-tests/src/main.rs
index be8efe83..408fb4c0 100644
--- a/default-plugins/fixture-plugin-for-tests/src/main.rs
+++ b/default-plugins/fixture-plugin-for-tests/src/main.rs
@@ -99,7 +99,7 @@ impl ZellijPlugin for State {
);
},
BareKey::Char('c') if key.has_no_modifiers() => {
- new_tab(Some("new_tab_name"), Some("/path/to/my/cwd"))
+ new_tab(Some("new_tab_name"), Some("/path/to/my/cwd"));
},
BareKey::Char('d') if key.has_no_modifiers() => go_to_next_tab(),
BareKey::Char('e') if key.has_no_modifiers() => go_to_previous_tab(),
@@ -166,7 +166,7 @@ impl ZellijPlugin for State {
},
BareKey::Char('d') if key.has_only_modifiers(&[KeyModifier::Ctrl]) => {
let tab_name = "my tab name";
- focus_or_create_tab(tab_name)
+ focus_or_create_tab(tab_name);
},
BareKey::Char('e') if key.has_only_modifiers(&[KeyModifier::Ctrl]) => {
let tab_index = 2;