Skip to content

Compact path when prompt becomes wider than the terminal columns #29

@LucaScorpion

Description

@LucaScorpion

For example, in a resized terminal:

image

the path is too long, and wraps. This should be made to the middle section is replaced with an ellipsis.

We always want to display the first path part, then the ellipsis, and as much of the tail of the path as the width allows. E.g.:

  • example/.../some/folder
  • ~/.../some/folder
  • /.../some/folder

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