refactor: remove unused maxchars dead code#740
Conversation
|
Alternatively, should we turn this It was requested here #726 by @yannikthegenius (it's how I realized this was deadcode all this time) My objection isn't the feature itself, it's how it makes the title(s) look. |
The shrinking is probably not the best idea. It's better to have only ellipsis when the title exceeds. I was playing around with it here: Keith94@b1b8dc4 User option is likely not necessary. |
|
I agree that shrinking is undesirable. |
Beautiful, much cleaner.
Either way, I'll merge this, then you feat PR your idea, sounds good? |
Okay, sounds great. I'll do it tomorrow. |
Changes:
maxcharsdead codemaxcharswas set tonil, so the condition is never true and never runsosc.luawith fixed width layouts, ours is more dynamic and adjusts based on window sizeNote:
While we can simply assign an arbitrary value to
maxchars(e.g.150characters), the change it applies looks unpleasant. It's not just a simple adding of three dots at the end. It uses\\fscxto shrink it, which makes the title look compressed and weird.However, I'm open to suggestions, this doesn't have to be removed if it can be used properly.