-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Description
When first introduced, Centered Layout would only be active if there was a single editor (or if there was a horizontal split maybe? I never used that layout, so idk). If, while in the Centered Layout, a "split vertical" command was issued, the centered layout would be disabled until there was only one editor again.
In the most recent release (1.25.0), this behavior was changed such that, rather than disabling the centered layout while there's a vertical split, the editor stays centered with the same dimensions, and the split occurs inside this centered container. There was something in the release notes about how the old behavior was confusing or had unexpected results, but no details on what the actual unexpected behavior was.
I'm having trouble thinking of a situation in which this is ever what you want. For the Centered Layout to be most effective, the width of the editor should be close to the width of the actual text being edited, that way the text is actually centered in your view. When I say "give me another editor next to my current one," I never want two editors that are half the width of the text that I'm editing, but that's how the new centered layout behaves. You'd have to either
- Resize the centered container for the new split layout and then resize it again back to the original dimensions once you're done with the split
- Manually disable Centered Layout after splitting and manually re-enable it when you're back to one editor or
- Keep the width of your centered window large enough to accommodate a split. But then it's not actually centered.
If not a full reversion back to the old behavior, can we at least get a configuration option to re-enable it? Obligatory XKCD