Skip to content

tab bar becomes visible when file is opened #2081

Closed as not planned
Closed as not planned

Description

@brainchild0

Description

If the tab bar is hidden and one file is open, then the tab bar becomes visible when a new file is opened in the same window.

Steps to reproduce

  1. Create new window with only one open file.
  2. Hide the tab bar.
  3. Open a new file in the same window.

Expected behavior

Tab bar remains hidden.

Actual behavior

Tab bar becomes visible.

Versions

  • Mark Text: 0.16.1
  • Operating system: Linux Mint 19.2

Activity

  1. fxha commented on Jun 11, 2020

    @fxha
    Contributor

    Thank you for reporting the issue. The described behavior is how it's expected to work because there are more than one tab open. Why did you think we should keep the tabs hidden, the user thinks the first tab disappeared/is lost?

  2. added
    🐤 blocked/need info
    on Jun 11, 2020
  3. brainchild0 commented on Jun 11, 2020

    @brainchild0
    ContributorAuthor

    If multiple files are open, then the application permits hiding the tab bar and keeping it hidden. Equally, if multiple files are already open, and a new file is opened, then a hidden state of the tab bar is preserved.

    Only in the special case that 1) exactly one file is already open, and 2) a second one is then opened, does the application automatically make the tab bar visible.

  4. fxha commented on Jun 16, 2020

    @fxha
    Contributor

    The reason for this is that you already know that there are multiple tabs hidden but if only one tab exists this is not visible to the user.

  5. brainchild0 commented on Jun 16, 2020

    @brainchild0
    ContributorAuthor

    I personally find this behavior confusing and nonstandard. Perhaps you would consider keeping the topic open for further comments from users.

    I am doubtful that the assumption about what a users knows or does not know in each case is necessarily accurate, meanwhile, a completely straightforward use case is prevented by the current choice of behavior.

  6. reopened this on Jun 16, 2020
  7. added
    🦁 need discuss
    and removed
    🐤 blocked/need info
    on Jun 16, 2020
  8. Jocs commented on Jun 27, 2026

    @Jocs
    Member

    Thank you for the detailed report and follow-up. After reviewing the current code and the discussion in this thread, the behavior you're seeing is intentional: when only one tab is open and hidden, and a second tab is opened, the tab bar is made visible so the user can discover that multiple tabs now exist. When two or more tabs are already open with the tab bar hidden, hiding is preserved on further opens — the special case only applies to the 1→2 transition for discoverability reasons. This was confirmed by a maintainer in the comments above. Because the behavior is by design, we're closing this as not a bug. If you'd like to propose a preference toggle (e.g. "always respect the tab-bar hidden setting regardless of tab count"), please open a feature request and we'd be happy to discuss it.

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

    🦁 need discuss

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions