-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
When run from within an existing tmux session, Teamocil behaves as expected by opening a new window at the next available index number, and so no issue exists. However, when run at the start of a new session, Teamocil opens the first window at index 1, rather than the setting of base-index (default 0). This is an issue as it breaks expected behavior, particularly in that creating a new window within that tmux session will index it at 0, while you would naturally expect that window to be indexed in sequence.
Steps to reproduce:
- Create a basic Teamocil configuration file (~/.teamocil/test.yml):
windows:
- name: test
- Create a new tmux session running Teamocil:
$ tmux new-session "teamocil test"
- Note that this creates a new session with a single window with index 1 rather than 0.
System information:
$ tmux -V
tmux 2.6
$ teamocil --version
1.4.2
$ lsb_release -d
Description: Ubuntu 18.04.3 LTS
$ uname -sr
Linux 4.15.0-74-generic
Metadata
Metadata
Assignees
Labels
No labels