
I find myself switching between tiled and tabbed layouts frequently, and the Combo layout to combine two tabbed layouts is nice but a bit inflexible since it needs to be preconfigured in the config file. I've been thinking about a way to combine tabs and tiles more flexibly - would something like the following be feasible? I haven't looked into coding it myself so far, and I worry that my haskell-fu may be insufficient. Assume you start out with a tiled layout like the standard "Tall" one with a few windows, something like this: 00000 1111 00000 1111 00000 2222 00000 2222 00000 3333 00000 3333 If window 1 is active and you press Mod-Shift-J, the current behavior (swapDown) is to move window 1 down after window 2. The behavior I'd like is that moving window 1 down would combine windows 1 and 2 into a tabbed windowset, with window 1 being active: 00000 -1-2- 00000 1111 00000 1111 00000 3333 00000 3333 00000 3333 Then, if you press Mod-Shift-J again, the active window 1 gets removed from the tabbed set and moved below window 2: 00000 2222 00000 2222 00000 1111 00000 1111 00000 3333 00000 3333 This way, you should be able to create pretty much any tabbed+tiled combination by just using Mod-Shift-J/K to collapse selected windows into tabs, including recreating the combineTwo layout from the Combo documentation, without needing to configure layouts in the config file or switching between them explicitly, and without needing to remember many different keystroke combinations. Does this sound like such a layout mechanism would be reasonably easy to implement? Or is there already a way to get this behavior with existing modules? -Klaus

On Fri, Aug 15, 2008 at 03:23:07PM -0700, Klaus Weidner wrote:
Does this sound like such a layout mechanism would be reasonably easy to implement? I don't believe it would be easy, but I think it would be possible.[1] It would also be something I'd like to see (but with a little different UI -- I'd like the default to stay the same, but have new bindings for moving a window into/out of a tab-split.)
[1] It would have some edge cases, I imagine. At the very least, tab splits wouldn't survive a restart.
participants (2)
-
Devin Mullins
-
Klaus Weidner