aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2026-02-17 15:43:28 +0100
committerGitHub <noreply@github.com>2026-02-17 15:43:28 +0100
commit4e66a0beff5e41bda1dbde521fa1d2858c46fe7b (patch)
tree380bee5eeac56bea2ebf341cccbe69615585e394 /src
parentFix startup message and cache file creation (#4705) (diff)
downloadsl0ppij-4e66a0beff5e41bda1dbde521fa1d2858c46fe7b.tar.gz
sl0ppij-4e66a0beff5e41bda1dbde521fa1d2858c46fe7b.tar.xz
sl0ppij-4e66a0beff5e41bda1dbde521fa1d2858c46fe7b.zip
Revamp the sequence plugin (#4713)
* initial pipe interface * initial open_x_pane_in_new_tab plugin api implementation * fix: send CommandPaneExited for command panes opened as initial_terminals in new tabs from plugins * open panes in place of specific pane id plugin commands - initial implementation * sequence and plugin api ux * focus self when starting * combine ui and pipe paths * highlight selected pane * initial sequence removal of editing capabilities * fix: translate plugin paths in api * properly trim commands when loaded from pipe or pasted text * minor ux fixes * get ctrl c to work properly * behavior fixes * more ui fixes * fix tests * close tab and end sequence properly * default to AND * zellij sequence alias * add alias * consolidate paths * rustfmt * fix ui padding * add pr * fix: reset scrolling when resetting terminal state
Diffstat (limited to 'src')
-rw-r--r--src/main.rs27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index de0b496c..2ff60a09 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -210,6 +210,33 @@ fn main() {
commands::send_action_to_session(command_cli_action, opts.session, config);
std::process::exit(0);
}
+ if let Some(Command::Sessions(Sessions::Sequence { payload, blocking })) = opts.command {
+ let args = if blocking {
+ let mut args: std::collections::BTreeMap<String, String> =
+ std::collections::BTreeMap::new();
+ args.insert("blocking".to_string(), "true".to_string());
+ Some(zellij_utils::input::layout::PluginUserConfiguration::new(
+ args,
+ ))
+ } else {
+ None
+ };
+ let command_cli_action = CliAction::Pipe {
+ name: None,
+ payload,
+ args,
+ plugin: Some("zellij:sequence".to_string()),
+ plugin_configuration: None,
+ force_launch_plugin: true,
+ skip_plugin_cache: false,
+ floating_plugin: None,
+ in_place_plugin: None,
+ plugin_cwd: None,
+ plugin_title: None,
+ };
+ commands::send_action_to_session(command_cli_action, opts.session, config);
+ std::process::exit(0);
+ }
}
if let Some(Command::Sessions(Sessions::ListSessions {