Skip to content

Deeply nested filenames show only … in the Files sidebar #1344

Open

Description

@toxyduck

What happened?

In the Files sidebar, deeply nested file rows can show only … where the filename should be. The status marker and change counts are still visible, but it’s hard to tell the files apart.

Steps to reproduce

  1. Open a diff that changes several deeply nested files, for example 12 directories deep.
  2. Open the Files sidebar and expand the folder tree to the deepest changed files.
  3. Look at the filenames in those rows. Some appear as just ….

Expected behavior

Filenames should stay readable at any nesting depth. When indentation would leave room for only …, cap the indentation so the filename starts farther left.

Version

Reproduced on Hunk 0.25.0 on macOS arm64 in a 240-column by 40-row terminal.

image

Activity

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