domtronn / spaceline-all-the-icons.el

A Spaceline Mode Line theme using All The Icons for Emacs
MIT License
235 stars 25 forks source link

Split frame causes active modeline to "hide" middle part #46

Closed publicimageltd closed 7 years ago

publicimageltd commented 7 years ago

When I am splitting the frame (i.e. C-x 3), the active modeline (on the right) looks like this:

emacs-modeline

So the name part and the major modes get lost. Actually it looks like an involuntary application of the behavior for the inactive modeline on the left side.

domtronn commented 7 years ago

Yes, I'm aware of this, unfortunately it's a regression/change in Spaceline 😞 They've added a feature to make the mode line "responsive", so that as you split your windows, the spaceline segments will be hidden if they overflow.

Personally, I dislike this feature as it lends itself hiding useful information more often than is necessary! I've raised TheBB/spaceline#146 to discuss the feature and try and work with the guys maintaining it to come up with a solution, but I don't have much time at the moment. I'd like to be able to optionally enable/disable this feature rather than have it only work this way...

They've also added in a priority feature which lets you define which segments should be hidden over others but it still results in hiding a lot of the mode line 😕 But that could improve things for people!

jwintz commented 7 years ago

That is not indeed related to spaceline-all-the-icons.

However, I think that, projectile-current-root or vc-current-branch and flycheck-issues are in the same segment.

Should the modeline be responsive, it would be great to keep the current git branch shown even if there is no space left to show flycheck results.

jwintz commented 7 years ago

Here is a dirty quick fix: in spaceline-all-the-icons-segments.el, comment line 1017 and don't forget to add an extra closing parenthesis.

Apparently, it is caused by the rightmost segment, i.e., the clock, which adds extra space, and then, it overflows.

I'll dig more into it.

screen shot 2017-08-16 at 13 02 11

jwintz commented 7 years ago

Actually, keep the line and change the width to 1 gives the expected rendering without the overflow.