aboutsummaryrefslogtreecommitdiffstats
path: root/default-plugins/sequence/src/state/command_entry.rs
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 /default-plugins/sequence/src/state/command_entry.rs
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 'default-plugins/sequence/src/state/command_entry.rs')
-rw-r--r--default-plugins/sequence/src/state/command_entry.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/default-plugins/sequence/src/state/command_entry.rs b/default-plugins/sequence/src/state/command_entry.rs
index 96a0020b..4ca9350a 100644
--- a/default-plugins/sequence/src/state/command_entry.rs
+++ b/default-plugins/sequence/src/state/command_entry.rs
@@ -1,6 +1,5 @@
use super::{ChainType, CommandStatus};
use std::path::PathBuf;
-use std::time::Instant;
use zellij_tile::prelude::PaneId;
#[derive(Debug, Clone)]
@@ -9,7 +8,6 @@ pub struct CommandEntry {
cwd: Option<PathBuf>,
pub(super) chain_type: ChainType,
pub(super) status: CommandStatus,
- pub(super) start_time: std::time::Instant,
}
impl Default for CommandEntry {
@@ -19,7 +17,6 @@ impl Default for CommandEntry {
cwd: None,
chain_type: ChainType::default(),
status: CommandStatus::default(),
- start_time: Instant::now(),
}
}
}
@@ -32,10 +29,6 @@ impl CommandEntry {
..Default::default()
}
}
- pub fn with_and(mut self) -> Self {
- self.chain_type = ChainType::And;
- self
- }
pub fn get_text(&self) -> String {
self.text.clone()
}
@@ -74,9 +67,6 @@ impl CommandEntry {
pub fn clear_status(&mut self) {
self.status = CommandStatus::Pending;
}
- pub fn cycle_chain_type(&mut self) {
- self.chain_type.cycle_next();
- }
pub fn get_cwd(&self) -> Option<PathBuf> {
self.cwd.clone()
}