Open diamondmx opened 1 year ago
I would have done it but there's a few problems. If you use the mouse wheel to scroll up, you'd need to be over the top half of the window for it to work properly, otherwise you'd split and then scroll up the bottom half (likely not what you wanted).
If you are using the scrollbar it also can't work since the split would be creating a new window and moving the scrollbar out from under your mouse causing it to be in the wrong scroll position.
So that limited it to the keyboard, which has no screen location. It could also split on line up/down vs just page up on the keyboard.
I would actually like the scroll to bottom -> unsplit to be an option. That's one thing that comes up as a slight annoyance. Rarely, but it does. I am wary of scroll up->split though, because of the problems described. Would it be possible to split at the mousebutton location, then move the mouse up 1 (or 10) pixels and continue scrolling as it does?
Much like we have split on PgUp, it would be handy if we could split any time we scroll up, so the scrolling applies to the top split, rather than the whole output window.
If you do this, you'd also want the split to disappear if you scroll back to present.
Also, ideally, the upper split would only include text that is not visible on the primary, so you can't see the same text on the top and bottom splits.
Up to you if you'd prefer to make this part of the existing split option, or make it a separate option.