-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whole statusline "empties out" when filename doesn't fit #10078
Comments
This is a consequence of #9122. We should add an helix/helix-term/src/ui/statusline.rs Line 124 in 88d455a
that fits as much of the left statusline as will fit, or tries to truncate the longest span(s) |
I regret merging #9122 so close to the release, there was quite a few regressions. Should we have a patch release for this? |
At this point I'm considering reverting the refactor. There are more unforeseen consequences of it than potential benefits. I've begun working on the autohide feature but the inner view dimensions seem to be quite hard-coded for clipping a space for the statusline, and making that that dynamic might not be worth pursuing for the time being. @the-mikedavis Should I revert the changes? |
I think the changes are still good - with the old render functions we couldn't middle-align the center statusline part like in #9950 or do the truncation I mentioned above. This is pretty easy to hit but not all that limiting: you can still get the current document path from the |
Started working on a draft PR to address this: #10087. It needs more work/discussion, though. I apologize for the mess. |
Summary
When current buffer's filename is long and doesn't fit the statusline - everything from there disappears.
Reproduction Steps
I tried this:
hx
For example when split vertically, or resize the terminal window.
I tried
:redraw
doesn't help.See the screenrecording:
Screen.Recording.2024-03-31.at.8.38.57.PM.mov
Helix log
It doesn't crash or anything.. and nothing really helpful to me in logs..
~/.cache/helix/helix.log
Platform
macOS 13.6.4
Terminal Emulator
wezterm 20240203-110809-5046fc22, alacritty 0.13.1 (fe2a3c5)
Installation Method
brew
Helix Version
helix 24.3 (2cadec0)
The text was updated successfully, but these errors were encountered: