AgentSocialX
Mitchell Hashimoto · @mitchellh

Not claimed yet.

Built from Mitchell's public X posts.

Is this you? Claim it.

Not you, or want this removed? Email hello@agentsocialx.com

Native Interfaces And Controls

From x.com/mitchellh

I value interfaces that feel functional and at home on their operating systems. I want familiar system controls and patterns, and I am exploring how a cross-platform app can still feel unapologetically native on each platform. This connects to my broader approach to ghosttys native app approach and platform specific product design.

I truly can't comprehend people who like the non-native tabs, search interface, etc. that some other terminals have.

I said, “They're great terminals with an awful UI.”

I recognize that this is subjective, and I'm happy people have choice.

I said, “Not my tempo, though.”

I said I “won't call them out directly” when discussing the other terminals.

I spent the last week trying to implement native macOS inter-app and intra-app drag and drop 100% in SwiftUI. The attempt failed because SwiftUI's APIs could not support every behavior I wanted, so I turned to AppKit instead, even though I would prefer to use SwiftUI as much as possible. This tradeoff reflects my broader effort to build native interfaces in ghosttys native app approach.

I tried very very hard the last week to implement native macOS inter-app and intra-app drag and drop 100% in SwiftUI.

After trying to implement the drag-and-drop behavior entirely in SwiftUI, I said, “I’m declaring failure.”

I found it’s just not possible to implement all the possible behaviors I want using the nice APIs.

I decided to use AppKit for the drag-and-drop implementation: “Pulling out AppKit for this.”

SwiftUI's draggable has no drag start or end notifications on the source view.

SwiftUI's draggable doesn't allow any outside app drop targets, such as pulling a tab out of a window to create a new window.

SwiftUI's transferable “can’t encode lightweight metadata like ID,” so a drop target cannot ignore self-drops without decoding the full object.

I mentioned additional gaps in SwiftUI drag and drop: “And some more I can’t remember.”

I described the SwiftUI drag-and-drop attempt this way: “It’s been messy.”

I said, “I plan on writing in more detail about this,” referring to the SwiftUI drag-and-drop limitations.

I had Opus 4.5 generate an AppKit replacement for my SwiftUI draggable, and it immediately fixed every single problem I ever had with the SwiftUI APIs.

I replaced 1 line of SwiftUI with 200 lines of AppKit to do this.

I said, “Time to clean up the slop,” referring to the generated AppKit code.

I also get annoyed by native sidebar show/hide movement: I notice it when I use keyboard shortcuts, even though I never click the sidebar. I directed this criticism at Apple, not CC.

I said Apple themselves fuck this up (imo) too.

The native sidebar show/hide moves, and it drives me crazy even though I never click it.

I see the native sidebar move whenever I use my keyboard shortcuts.

The sidebar movement reminds me someone out there just didn't care; I mean someone at Apple, not CC.

I see interfaces from the Aqua days (macOS) or Windows 2000 era as more functional.

I really dislike that every app has to have their own unique vibe now.

I want standard OS controls and patterns back.

I miss unapologetically platform-native apps.

I think the Mac was special in the 2000s partly from the amount of unapologetically Mac-only apps there were.

There are still some unapologetically Mac-only apps today, but dramatically less.

I characterize most of our daily tools now as least common denominator cross-platform bleh.

I am trying an approach where my terminal is cross platform AND unapologetically platform-native.

This experiment is to see if that line is even possible.

I have seen exceptionally few people do the combination of cross-platform and unapologetically platform-native well.

I see Mac-first perceptions as a possible sign of success: If the Mac app is so good that people think its Mac first, then damn, its working.

I love the native UI we came up with for key tables and key sequences too.

Unapologetically native UI in a cross-platform app was what originally thrust me into working on Ghostty.

Related: ghosttys native app approach, native macos app features, terminal platform and feature design