Skip navigation
Work-in-progress: a new split layout framework for nearly all Apple platforms (macOS, iOS, etc.).
0:00 / 0:40

Work-in-progress: a new split layout framework for nearly all Apple platforms (macOS, iOS, etc.).

Mitchell Hashimoto

@mitchellh238K followers

Visit on X
5,251 likesDownloadOriginal post

342,296 views

Work-in-progress: a new split layout framework for nearly all Apple platforms (macOS, iOS, etc.). A mix of SwiftUI and raw CoreAnimation. The goal is "every frame perfect" animation. Still very wip, but getting there! Goal is to bring it back to Ghostty eventually.

57 Comments

Comments from the original post on X (Twitter)

  • maria's profile picture

    @maria_rcks

    all of this because macos doesnt let you do window management

    44 likes

  • Jake 🎉's profile picture

    @jitl

    have you checked out BonSplit?

    32 likes

  • Mitchell Hashimoto's profile picture

    @mitchellh

    Al worked on this with me :) @almonk

    15 likes

  • Mitchell Hashimoto's profile picture

    @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

  • moreward (moreboxed.com)'s profile picture

    @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

  • Mitchell Hashimoto's profile picture

    @mitchellh

    Haha fear not

    59 likes

  • Mark's profile picture

    @_voidzero

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

    2 likes

  • Mitchell Hashimoto's profile picture

    @mitchellh

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

    1 like

  • Mark's profile picture

    @_voidzero

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

  • Mitchell Hashimoto's profile picture

    @mitchellh

    @morew4rd Terminals just support the features I want

  • Junsong Li's profile picture

    @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

  • Mitchell Hashimoto's profile picture

    @mitchellh

    Well first this is macOS

    29 likes

  • Junsong Li's profile picture

    @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

  • Reza Karegaran's profile picture

    @rezacentral

    is this your tmux experiment?

    6 likes

  • Mitchell Hashimoto's profile picture

    @mitchellh

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

    46 likes

  • Reza Karegaran's profile picture

    @rezacentral

    🙌

    1 like

  • Jakub Kozłowski's profile picture

    @kubukoz

    New variant of 2048 dropped

    4 likes

  • Josh's profile picture

    @joshmanders

    Can we save these so they can be restored?

    4 likes

  • Mitchell Hashimoto's profile picture

    @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

  • Josh's profile picture

    @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