Skip to content

Sessions and windows cannot share name #280

@johnnyggalt

Description

@johnnyggalt

What happened?

I wanted a session to have the same name as one of its windows, but when I do so, things go awry:

[[session]]
name = "test"
startup_command = "tmux select-window -t 'test'; exit"
windows = ["test"]

[[window]]
name = "test"
startup_script = "tmux split-window -t test"

This results in:

  1. An extraneous window (which I am attempting to close with the exit in my startup_command.
  2. No split panes in the test window

If I change one or the other names to disambiguate then it works (notice it's case sensitive):

[[session]]
name = "Test"
startup_command = "tmux select-window -t 'test'; exit"
windows = ["test"]

[[window]]
name = "test"
startup_script = "tmux split-window -t test"

Version

2.17.1

Relevant log output

No response

Reviewed

  • Reviewed existing issues and made sure this bug has not already been submitted.
  • I have read the documentation and understand how sesh works before submitting this bug

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions