Skip to content

Cannot find window if name is duplicated #2601

@agguser

Description

@agguser

Issue description

select-window -t $name cannot find a window if the name is of multiple windows!

$ tmux -f /dev/null
$ tmux neww -n vim vim   # create a window with a name
$ tmux selectw -t vim   # OK, found
$ tmux neww -n vim vim    # create another window with the same name
$ tmux selectw -t vim   # ERROR
can't find window: vim

If this is by design, please add an option to switch to a window with such name, instead of error and do nothing.

Required information

$ uname -sp && tmux -V && echo $TERM
Linux unknown
tmux next-3.3
screen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions