Skip to content

Teamocil does not respect base-index #135

@kylebarbour

Description

@kylebarbour

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:

  1. Create a basic Teamocil configuration file (~/.teamocil/test.yml):
windows:
  - name: test
  1. Create a new tmux session running Teamocil:
    $ tmux new-session "teamocil test"
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions