[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Prefer to split along the longest edge
From: |
Juri Linkov |
Subject: |
Re: Prefer to split along the longest edge |
Date: |
Sun, 15 Dec 2024 09:34:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) |
> I don't want to scroll twice more because of a vertical split, whereas I
> have the 2/3 of my screen free to show another buffer of code.
What frame dimensions do you consider in this case? Does the frame width allow
showing two horizontally split windows with enough number of columns?
> In this scenario both splits would succeed because the frame dimension
> exceeds by a lot their respective threshold.
Maybe increasing the value of split-height-threshold will help you?
For example, I customized it to a large value, so I have no problems
because then windows are split only horizontally.
> My point is about the order in which splits are tried. I would like it to
> first tries the longest edge.
Trying the longest edge might cause problems. For example, for
frame dimension 100x90, the longest edge is the width 100.
But splitting the frame horizontally will create two windows
with only 50 columns that are too narrow for comfortable editing.
> So that if it succeed it is likely to be the direction where there is the
> more space available.
Not only the criteria for more available space is important.
Another criteria to not make too narrow window has no less importance.
> But I understand the bias toward vertical splitting, that's why I added a
> condition to prioritize vertical split if the width is less than 80. This
> heuristic could be improved, thought.
I don't see the bias toward vertical splitting.
But if you could write in a clear form the current rules for an overview
and what changes do you propose, then the heuristic could be improved.
For example, how these rules could look:
1. split vertically if the width is less than 80
2. split horizontally if split-width-threshold is more than 160
3. split vertically otherwise
...
- Re: Prefer to split along the longest edge, (continued)
Re: Prefer to split along the longest edge, martin rudalics, 2024/12/14
Re: Prefer to split along the longest edge, Juri Linkov, 2024/12/14
- Re: Prefer to split along the longest edge, Nicolas Desprès, 2024/12/14
- Re: Prefer to split along the longest edge,
Juri Linkov <=
- Re: Prefer to split along the longest edge, Nicolas Desprès, 2024/12/15
- Re: Prefer to split along the longest edge, Juri Linkov, 2024/12/16
- Re: Prefer to split along the longest edge, Nicolas Desprès, 2024/12/16
- Re: Prefer to split along the longest edge, Eli Zaretskii, 2024/12/16
- Re: Prefer to split along the longest edge, Juri Linkov, 2024/12/16
- Re: Prefer to split along the longest edge, Eli Zaretskii, 2024/12/16
- Re: Prefer to split along the longest edge, Juri Linkov, 2024/12/16
- Re: Prefer to split along the longest edge, Eli Zaretskii, 2024/12/16
- Re: Prefer to split along the longest edge, Nicolas Desprès, 2024/12/17
- Re: Prefer to split along the longest edge, Juri Linkov, 2024/12/17