summaryrefslogtreecommitdiff
path: root/src/app/creation.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-14 02:43:45 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-14 03:47:07 +0300
commitfbd20ad6e488fb3b9efc1612fdffee6e672976c1 (patch)
treed21daf93241786f8aa6fde23b41cdb9e15182b79 /src/app/creation.rs
parentd35c642ef36ee5ac2afe7c1b18ad5a717bc807d8 (diff)
feat: add plugin v1 system
Add manifest-driven plugin actions, event hooks, pane entrypoints, link handlers, and host APIs. Support plugin link, GitHub install, build commands, installed plugin registry, pane movement, runtime context, and plugin docs.
Diffstat (limited to 'src/app/creation.rs')
-rw-r--r--src/app/creation.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/app/creation.rs b/src/app/creation.rs
index 7be324e5..a45dae03 100644
--- a/src/app/creation.rs
+++ b/src/app/creation.rs
@@ -112,6 +112,7 @@ impl App {
self.state.pane_scrollback_limit_bytes,
self.state.host_terminal_theme,
crate::pane::PaneShellConfig::new(&self.state.default_shell, self.state.shell_mode),
+ Vec::new(),
)?;
let root_pane = ws.tabs[idx].root_pane;
self.terminal_runtimes.insert(terminal.id.clone(), runtime);
@@ -140,8 +141,17 @@ impl App {
initial_cwd: PathBuf,
focus: bool,
) -> std::io::Result<usize> {
+ self.create_workspace_with_launch_env(initial_cwd, focus, Vec::new())
+ }
+
+ pub(crate) fn create_workspace_with_launch_env(
+ &mut self,
+ initial_cwd: PathBuf,
+ focus: bool,
+ extra_env: Vec<(String, String)>,
+ ) -> std::io::Result<usize> {
let (rows, cols) = self.state.estimate_pane_size();
- let (ws, terminal, runtime) = Workspace::new(
+ let (ws, terminal, runtime) = Workspace::new_with_extra_env(
initial_cwd,
rows,
cols,
@@ -151,6 +161,7 @@ impl App {
self.event_tx.clone(),
self.render_notify.clone(),
self.render_dirty.clone(),
+ extra_env,
)?;
self.terminal_runtimes.insert(terminal.id.clone(), runtime);
self.state.terminals.insert(terminal.id.clone(), terminal);