mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 06:12:16 +03:00
wezterm cli list: add is_active and is_zoomed fields to json output
is_active is true if the pane is considered to be the active pane within its containing tab. If you want to reason about the focused pane regardless of tab, `wezterm cli list-clients` has that pane_id. refs: https://github.com/wez/wezterm/issues/3413
This commit is contained in:
parent
9b67a71485
commit
96f1585b10
@ -136,6 +136,8 @@ struct CliListResultItem {
|
||||
top_row: usize,
|
||||
tab_title: String,
|
||||
window_title: String,
|
||||
is_active: bool,
|
||||
is_zoomed: bool,
|
||||
}
|
||||
|
||||
impl CliListResultItem {
|
||||
@ -151,6 +153,8 @@ impl CliListResultItem {
|
||||
physical_top,
|
||||
left_col,
|
||||
top_row,
|
||||
is_active_pane,
|
||||
is_zoomed_pane,
|
||||
size:
|
||||
TerminalSize {
|
||||
rows,
|
||||
@ -188,6 +192,8 @@ impl CliListResultItem {
|
||||
top_row,
|
||||
tab_title: tab_title.to_string(),
|
||||
window_title: window_title.to_string(),
|
||||
is_active: is_active_pane,
|
||||
is_zoomed: is_zoomed_pane,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user