Skip to content
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

Explicit names in command pane templates are ignored #2165

Closed
har7an opened this issue Feb 15, 2023 · 1 comment
Closed

Explicit names in command pane templates are ignored #2165

har7an opened this issue Feb 15, 2023 · 1 comment

Comments

@har7an
Copy link
Contributor

har7an commented Feb 15, 2023

Thank you for taking the time to file this issue! Please follow the instructions and fill in the missing parts below the instructions, if it is meaningful. Try to be brief and concise.

Basic information

zellij --version: latest main (5eb2d05)
stty size: 55 118
uname -av or ver(Windows): Linux 6.1.9-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb 2 00:21:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Steps to reproduce

Start zellij with the following layout:

layout {
    pane_template name="shell" {
        name "SHELL"
        cwd "/home/hartan"
        command "/bin/zsh"
    }

    shell
}
  • Expected result: Zellij starts with a single pane, which has "SHELL" as title
  • Actual result: Zellij starts with a single pane, which has "/bin/zsh" as title
@imsnif
Copy link
Member

imsnif commented Mar 1, 2023

Hey, so - I think this is not a bug. The "name" field is used to name the pane_template (shell). If you want the pane to have a name of its own, you could do

layout {
    pane_template name="shell" {
        name "SHELL"
        cwd "/home/hartan"
        command "/bin/zsh"
    }

    shell name="SHELL"
}

I get what you're trying to do though - and we could probably have an option to make this explicit by aliasing it to title.

@imsnif imsnif closed this as completed Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants