Skip to content

Tabs with same name not disambiguated with custom prompt #583

Closed

Description

@jeremypw

What Happened

Tabs with the same name are not disambiguated if a custom prompt is used

Expected Behavior

Enough of the path to disambiguate the tab name should be used as the tab label.

Steps to Reproduce

1 Edit ~/.bashrc to include PS1="custom prompt >"
1 Open a tab at e.g. ..../xxx/build
2 Open a second tab at e.g. .../yyy/build
3. Both tabs are labelled "build"
4. Window title stays as "Terminal" regardless of selected tab

Logs

Platform Information

Elementary 6 daily

Activity

  1. jeremypw commented on May 23, 2021

    @jeremypw
    CollaboratorAuthor

    I have now remembered that I changed my .bashrc file to show a custom prompt which stops the window title updating to show the path and, indirectly stops the code that disambiguates the labels running. This is annoying as I do not want an excessively long prompt but I do want disambiguated tabs 😞 Not sure if there is a workaround for this.

  2. changed the title [-]Regression: tabs with same name not disambiguated[/-] [+]Tabs with same name not disambiguated with custom prompt[/+] on May 23, 2021
  3. felix-andreas commented on May 24, 2021

    @felix-andreas
    Member

    Doesn't this issue have the same cause as #567 ? And shouldn't that be also solved by your PR #568 ?

  4. jeremypw commented on May 24, 2021

    @jeremypw
    CollaboratorAuthor

    Huh - I'd completely forgotten about that. This issue is described differently to #567 but you are right the underlying cause is the same part of the code. I have written a new PR which is quite similar to the old one (#568) but I think may be slightly better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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