-
-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Add pane names #928
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, works great!
I think in the future it would be good to find a solution that could unify the handling
of the TabName
and PaneName
inputs, and similar ones.
But that is totally a different issue.
@kunalmohan - thanks for this feature, its just what I need. Only I can't get it to work in 0.24.0. Please could you comment on what I'm doing wrong? I'm launching with the yaml below as follows
Thanks ---
# this template is for the root Pane on each tab. It provides the
# header tab-bar and footer status-bar
template:
direction: Horizontal
parts:
- direction: Vertical # part 1
borderless: true
split_size:
Fixed: 1
run:
plugin:
location: "zellij:tab-bar"
- direction: Vertical # part 2
body: true
- direction: Vertical # part 3
borderless: true
split_size:
Fixed: 2
run:
plugin:
location: "zellij:status-bar"
# this does not work - the docs don't specify at which level to place session
session:
name: "k8s-session"
attach: true
tabs:
- name: "K8s Monitor"
direction: Vertical
parts:
- direction: Horizontal
borderless: true
parts:
- split_size:
Fixed: 3
borderless: true
run:
command: {cmd: ssh, args: ["-t", "pi1", "watch -t \"hostname && vcgencmd measure_temp\""]}
- pane_name: pi1
split_size:
Percent: 30
run:
command: {cmd: ssh, args: ["-t", "pi1", "top && bash"]}
- run:
command: {cmd: ssh, args: ["-t", "pi1", "journalctl -fu k3s"]}
- direction: Horizontal
borderless: false
parts:
- split_size:
Fixed: 3
borderless: true
run:
command: {cmd: ssh, args: ["-t", "pi2", "watch -t \"hostname && vcgencmd measure_temp\""]}
- split_size:
Percent: 30
run:
command: {cmd: ssh, args: ["-t", "pi2", "top && bash"]}
- run:
command: {cmd: ssh, args: ["-t", "pi2", "journalctl -fu k3s"]}
- direction: Horizontal
borderless: false
parts:
- split_size:
Fixed: 3
borderless: true
run:
command: {cmd: ssh, args: ["-t", "pi3", "watch -t \"hostname && vcgencmd measure_temp\""]}
- split_size:
Percent: 30
run:
command: {cmd: ssh, args: ["-t", "pi3", "top && bash"]}
- run:
command: {cmd: ssh, args: ["-t", "pi3", "journalctl -fu k3s"]}
- direction: Horizontal
borderless: false
parts:
- split_size:
Fixed: 3
borderless: true
run:
command: {cmd: ssh, args: ["-t", "gknuc", "watch -t \"hostname && sensors | grep Package\""]}
- split_size:
Percent: 30
run:
command: {cmd: ssh, args: ["-t", "gknuc", "top && bash"]}
- run:
command: {cmd: ssh, args: ["-t", "gknuc", "journalctl -fu k3s"]}
|
Hey @gilesknap, thank you for reaching out!
Edit: I tried to omit the commands from your setup and it seems that I get the behaviour Do you mind also testing this layout:
|
Hey @gilesknap, sorry for the experience. |
fix #850
Users can add names to panes from the layout and rename them at runtime.
At runtime, user can press "c" in pane mode to rename a pane.
Pane name (set by user), when set, is preferred and displayed over pane title (set by terminal applications).