wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

pane name [iterm2 badge]

Open yanickxia opened this issue 1 year ago • 10 comments

Describe the solution you'd like if tab contains multi pane, maybe want add name for there pane

image

today, switch pane the tab name will change, it's cool

if impl iterm2 badge better image

yanickxia avatar Mar 21 '23 11:03 yanickxia

You don't want this anymore? I think it's quite nice

bew avatar Mar 27 '23 07:03 bew

@bew still want it, but Placing it in a discussion board is more suitable for the point. here https://github.com/wez/wezterm/discussions/3383

yanickxia avatar Mar 27 '23 07:03 yanickxia

FWIW, I prefer to track feature requests as enhancement issues, because the issue management interface cannot include discussions, so they effectively vanish when I'm triaging and reviewing the backlog.

wez avatar Mar 27 '23 14:03 wez

Implementation wise, I think this would be done similarly to https://wezfurlong.org/wezterm/config/lua/window/set_right_status.html, but scoped to the pane instead of the window. https://wezfurlong.org/wezterm/config/lua/window-events/update-status.html could be used to determine when to call/update the pane status.

The pane status would always render over the top right of the pane, and there would be some config to set padding and margins, as well as the font and font size.

However, there is some conceptual overlap with:

  • https://github.com/wez/wezterm/issues/1970

so it's worth also thinking a bit about that before sitting down to code anything around this

wez avatar Mar 28 '23 05:03 wez

The pane status would always render over the top right of the pane

I'd have though to have the pane status/name be kind of behind the text, as some background info #user-specific-needs...

bew avatar Mar 28 '23 07:03 bew

Implementation wise, I think this would be done similarly to https://wezfurlong.org/wezterm/config/lua/window/set_right_status.html, but scoped to the pane instead of the window. https://wezfurlong.org/wezterm/config/lua/window-events/update-status.html could be used to determine when to call/update the pane status.

The pane status would always render over the top right of the pane, and there would be some config to set padding and margins, as well as the font and font size.

However, there is some conceptual overlap with:

so it's worth also thinking a bit about that before sitting down to code anything around this

Yeah, it seems the right statue to pane scope will be wonderful.

yanickxia avatar Mar 29 '23 06:03 yanickxia

behind the text,

Because the pane renderer produces opaque renderings (by default, unless the user has taken care to render with opacity), that would require interleaving the display logic for the pane renderer with the status renderer to insert the status over the top of the terminal background painting stage, which would make both of those things more complex than they already are.

It is much much simpler to render the status over the top of the pane after the pane is drawn.

wez avatar Mar 29 '23 06:03 wez

agree. standalone panel title would be great. When there is more than one panel, a panel title is a must, I often have 5-6 panes in a tmux window, and if I don't have a name for them, it's easy to forget what each panel does when I cut back from another tmux session. the current workload ”show pane name in tabbar“ has a flaws,you must click one pane,then could know his name.

woodgear avatar Mar 11 '24 06:03 woodgear

I agree with @woodgear , it would be great if we could have a shortcut to show all pane id just on top of each panel, and press any key to make them disappear

xiangpeng2008 avatar Mar 17 '24 11:03 xiangpeng2008

Do we have any plan to add this feature ?

xiangpeng2008 avatar Apr 22 '24 12:04 xiangpeng2008

it would also work if we could just add an option of setting

show_pane_titles=true

while we have already show_pane_ids=true https://wezfurlong.org/wezterm/config/lua/keyassignment/PaneSelect.html it should be straight forward to add this feature.

xiangpeng2008 avatar Jun 04 '24 05:06 xiangpeng2008

also could we add PaneSelect to wezterm cli ? I want to call it from vim script.

xiangpeng2008 avatar Jun 04 '24 06:06 xiangpeng2008