diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-07-09 16:52:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-09 16:52:50 +0200 |
| commit | 4bfda976b110b5d3182fca004ee7031f6322253e (patch) | |
| tree | ff16cdbec15673861ee0907181a25f709565b4fd /zellij-utils/src/kdl | |
| parent | fix: focus last pane correctness issues (#5344) (diff) | |
| download | sl0ppij-4bfda976b110b5d3182fca004ee7031f6322253e.tar.gz sl0ppij-4bfda976b110b5d3182fca004ee7031f6322253e.tar.xz sl0ppij-4bfda976b110b5d3182fca004ee7031f6322253e.zip | |
Allow creating panes/tabs from the CLI without changing focus to them (#5346)
* feat: allow opening panes and tabs from the cli without focusing them
* rustfmt
* fix flake
* rustfmt
* add pr
Diffstat (limited to 'zellij-utils/src/kdl')
| -rw-r--r-- | zellij-utils/src/kdl/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zellij-utils/src/kdl/mod.rs b/zellij-utils/src/kdl/mod.rs index 30495d5f..94848e63 100644 --- a/zellij-utils/src/kdl/mod.rs +++ b/zellij-utils/src/kdl/mod.rs @@ -573,6 +573,7 @@ impl Action { command: None, pane_name: None, near_current_pane: false, + no_focus: false, tab_id: None, }); } else { @@ -2038,6 +2039,7 @@ impl TryFrom<(&KdlNode, &Options)> for Action { x, y, width, height, pinned, borderless, ), near_current_pane: false, + no_focus: false, tab_id: None, }) } else if in_place { @@ -2045,6 +2047,7 @@ impl TryFrom<(&KdlNode, &Options)> for Action { command: Some(run_command_action), pane_name: name, near_current_pane: false, + no_focus: false, pane_id_to_replace: None, close_replaced_pane, tab_id: None, @@ -2054,6 +2057,7 @@ impl TryFrom<(&KdlNode, &Options)> for Action { command: Some(run_command_action), pane_name: name, near_current_pane: false, + no_focus: false, tab_id: None, }) } else { @@ -2062,6 +2066,7 @@ impl TryFrom<(&KdlNode, &Options)> for Action { command: Some(run_command_action), pane_name: name, near_current_pane: false, + no_focus: false, borderless: None, tab_id: None, }) @@ -2171,6 +2176,7 @@ impl TryFrom<(&KdlNode, &Options)> for Action { skip_cache: skip_plugin_cache, cwd: None, // we explicitly do not send the current dir here so that it will be // filled from the active pane == better UX + no_focus: false, tab_id: None, }) }, |
