wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
14.91k stars 674 forks source link

pane name [iterm2 badge] #3312

Open yanickxia opened 1 year ago

yanickxia commented 1 year ago

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

bew commented 1 year ago

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

yanickxia commented 1 year ago

@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

wez commented 1 year ago

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 commented 1 year ago

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

bew commented 1 year ago

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...

yanickxia commented 1 year ago

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.

wez commented 1 year ago

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.

woodgear commented 3 months ago

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.

xiangpeng2008 commented 3 months ago

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 commented 2 months ago

Do we have any plan to add this feature ?

xiangpeng2008 commented 1 month ago

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 commented 1 month ago

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