Work-in-progress: a new split layout framework for nearly all Apple platforms (macOS, iOS, etc.).
@mitchellh238K followers
342,296 views
57 Comments
Comments from the original post on X (Twitter)

@maria_rcks
all of this because macos doesnt let you do window management
44 likes

@jitl
have you checked out BonSplit?
32 likes

@mitchellh
Al worked on this with me :) @almonk
15 likes

@mitchellh
@almonk To be clear, BonSplit is awesome. This lib serves a slight diff need, simpler in some ways (no tabs) and more complex in others (multi platform).
15 likes

@morew4rd
Looks very nice. Really smooth. But when you said "tmux" experiment, I was hoping for a "keep terminal running" feature. Not the panes part 😬
30 likes

@mitchellh
Haha fear not
59 likes

@_voidzero
@morew4rd Unless on Linux? Or will Linux get some love too
2 likes

@mitchellh
@morew4rd Web client for Linux initially or plop down into a TUI in ghostty or wherever. Not as feature rich
1 like

@_voidzero
@morew4rd Ok, how come not as feature rich? Is Linux a pita to develop these things on? I genuinely don't know

@mitchellh
@morew4rd Terminals just support the features I want

@ljsv89
Oh no, not factorial spiral again. Instead of trying to be hyprland, I believe trying to be niri makes more sense in window management. Niri + the native overview is way more productive than the factorial spiral window management in my day to day experience.
18 likes

@mitchellh
Well first this is macOS
29 likes

@ljsv89
My point is this: creating a new window using a split layout sacrifices the wrong thing. I always find that a half-split weakens the content in the old window in some way: creating a bottom window makes the existing one jump, sometimes pushing content out of the viewport. Creating a right window causes the text in the left window to wrap awkwardly. When the user creates a new window, the existing window’s size shouldn’t change at all. Don’t make the user wonder whether the view of the existing window will be compressed. It simply shouldn’t. IMO, this is where Niri makes a much better design choice: none of the existing windows are squeezed/resized, so my content stays exactly the same.
24 likes

@rezacentral
is this your tmux experiment?
6 likes

@mitchellh
This is just a library, but it will be used for the native app for my multiplexer yes.
46 likes

@rezacentral
🙌
1 like

@kubukoz
New variant of 2048 dropped
4 likes

@joshmanders
Can we save these so they can be restored?
4 likes

@mitchellh
That's a library user concern. The actual split layout is a caller-provided immutable data structure they can choose to make Codable (the Apple encoding protocol) if they want.
30 likes

@joshmanders
That is actually a better answer than I was hoping for. I use this to manage my tmux sessions and I think I can swap tmux out for your codable protocol.
8 likes


























