Skip to content

Display idea: Rabbit Holes #31

@mathkimchi

Description

@mathkimchi

I am defining an organozational pattern called a Rabbit Hole. For normal trees, occur when there is a long chain of a node that has just one child and that node also has one child and so on.

Demonstration with bullet points:

Root
|- Whatever
|- Start of Rabbit Hole
|   \- Middle of Rabbit Hole
|       \- End of Rabbit Hole
|           |- Child 1 (to show that the last part of a rabbit hole can have multiple children)
|           \- Another child
\- Etc

Rabbit Holes could be better displayed to reduce the horizontal indentation they take up.

One way (how vs code displays folder rabbit holes) is to stack the rabbit hole horizontally:

Root
|- Whatever
|- Start of Rabbit Hole > Middle of Rabbit Hole > End of Rabbit Hole
|   |- Child 1 (to show that the last part of a rabbit hole can have multiple children)
|   \- Another child
\- Etc

But I don't like this way bc it ends up using a lot of horizontal space anyways and wrapping looks ugly. (Wrapping without much thought will get really ugly with a lot of indentation, exactly like code that is really really nested and therefore indented.)

I'd like some way to stack vertically, maybe with a special character:

Root
|- Whatever
|- Start of Rabbit Hole
|> Middle of Rabbit Hole
|> End of Rabbit Hole
|   |- Child 1 (to show that the last part of a rabbit hole can have multiple children)
|   \- Another child
\- Etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions