[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Add function to rotate/transpose all windows
From: |
pranshu sharma |
Subject: |
Re: Add function to rotate/transpose all windows |
Date: |
Fri, 04 Oct 2024 15:50:07 +1000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
martin rudalics <rudalics@gmx.at> writes:
>> Hmm, the only way I can imagine using the flip thing is modifying window
>> tree to swap 2 windows in the subtree, and then set conf to (below
>> . left) and do-not-convert-size to nil. This will just rebuild the
>> whole window tree.
>
> I thought when the two windows are neighbors (which they often enough
> are) we could flip them.
Flip windows would work to swap when they are sibling windows, and
neigbor windows can sometimes not be siblings.
> But I think the solution is to (1) add for each live window its number
> in 'window-state-get' (we need a function 'window-number' for that)
> and (2) in 'window-state-put', whenever we split a window, try to find
> out whether a window with the respective number is in
> 'window-dead-windows-table' and reuse it in that case.
I can't comment much cuz I'm not really familiar with these functions,
but one thing that pops out is would maintaining a dead windows table
take up lot of resources?
Also do you think a function like 'window-rebuild-tree' would be useful,
and it accepts the a tree like the output of window-tree-pixel-sizes.
rn this is possible by using the following arguments for
window--transpose-1:
(window--transpose-1 tree-you-want (below . left) t)
However this is not really obvious.
I think it could be useful to add a wrapper with more obvious name
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/01
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/02
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/03
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/03
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/03
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/03
- Re: Add function to rotate/transpose all windows,
pranshu sharma <=
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/04
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/04
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/05
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/06
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/06
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/06
- Re: Add function to rotate/transpose all windows, martin rudalics, 2024/10/07
- Re: Add function to rotate/transpose all windows, pranshu sharma, 2024/10/07
- Re: Add function to rotate/transpose all windows, Eli Zaretskii, 2024/10/03
- Re: Add function to rotate/transpose all windows, Juri Linkov, 2024/10/08