Skip to content

Feature: Allow Tree flatten if fits #948

Description

@sakshamgoyal-01

Prerequisites

Proposal

Is there a way to configure the flattenEmptyDirectories for trees so that it only flattens if the flattened text will fit without overflowing?

eg: if the directory is foo/bar/baz/foo2/bar2/baz2 and the container is too small, instead of showing something like /f./.b./b./f./b./b. it will simplify not flatten it in the first place. if the container is expanded and the text will fit if flattened, then convert it to flatten.

this way it can respond to changing containers and flow nicely instead of showing an ellipsis, which is not easy to use if there is a very long directory.

Motivation and context

I have lots of nested directories with very long names (total of potentially 300 char long path). This will not fit in the size of container we want to use.
However, the user can choose to resize it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions