Skip to content

Truncate the start of file paths in the StatusLine - #1351

Merged
archseer merged 2 commits into
helix-editor:masterfrom
bbodi:fix/truncate-path-in-statusline
Dec 25, 2021
Merged

Truncate the start of file paths in the StatusLine#1351
archseer merged 2 commits into
helix-editor:masterfrom
bbodi:fix/truncate-path-in-statusline

Conversation

@bbodi

@bbodi bbodi commented Dec 24, 2021

Copy link
Copy Markdown
Contributor

Fixes the same issue as in #945 but for the StatusLine.

Before:
image

We can see that the file name is truncated, while this is more important to the user than the path.

And in the second red rectangle, we can see that the letters "od" from the path is rendered outside of the statusline area.

After:
image

@pickfire pickfire left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Tested and looks good to me. I tested but still if I split too many times it will panic (well, current master also panic).

@pickfire

Copy link
Copy Markdown
Contributor

Lints needs to be fixed first before I merge this.

@archseer archseer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good to me 👍

@archseer
archseer merged commit 60f3225 into helix-editor:master Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants