mirror of
https://github.com/tmux/tmux.git
synced 2026-06-04 00:56:17 +00:00
Add pane_x, y, z format variables and show in list-panes.
This commit is contained in:
@@ -110,22 +110,28 @@ cmd_list_panes_window(struct cmd *self, struct session *s, struct winlink *wl,
|
||||
switch (type) {
|
||||
case 0:
|
||||
template = "#{pane_index}: "
|
||||
"[#{pane_width}x#{pane_height}] [history "
|
||||
"[#{pane_width}x#{pane_height}"
|
||||
"#{?pane_floating_flag, "
|
||||
"#{pane_x}#,#{pane_y}#,#{pane_z}}] [history "
|
||||
"#{history_size}/#{history_limit}, "
|
||||
"#{history_bytes} bytes] #{pane_id}"
|
||||
"#{?pane_active, (active),}#{?pane_dead, (dead),}";
|
||||
break;
|
||||
case 1:
|
||||
template = "#{window_index}.#{pane_index}: "
|
||||
"[#{pane_width}x#{pane_height}] [history "
|
||||
"[#{pane_width}x#{pane_height}"
|
||||
"#{?pane_floating_flag, "
|
||||
"#{pane_x}#,#{pane_y}#,#{pane_z}}] [history "
|
||||
"#{history_size}/#{history_limit}, "
|
||||
"#{history_bytes} bytes] #{pane_id}"
|
||||
"#{?pane_active, (active),}#{?pane_dead, (dead),}";
|
||||
break;
|
||||
case 2:
|
||||
template = "#{session_name}:#{window_index}."
|
||||
"#{pane_index}: [#{pane_width}x#{pane_height}] "
|
||||
"[history #{history_size}/#{history_limit}, "
|
||||
"#{pane_index}: [#{pane_width}x#{pane_height}"
|
||||
"#{?pane_floating_flag, "
|
||||
"#{pane_x}#,#{pane_y}#,#{pane_z}}] [history "
|
||||
"#{history_size}/#{history_limit}, "
|
||||
"#{history_bytes} bytes] #{pane_id}"
|
||||
"#{?pane_active, (active),}#{?pane_dead, (dead),}";
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user