Add Ghostty.app support#87
Open
weijing24 wants to merge 1 commit into
Open
Conversation
Add Ghostty (ghostty.org) as a supported terminal on macOS, alongside Terminal.app and iTerm2.app. Ghostty is automated via its native AppleScript API (introduced in v1.3.0), using surface configurations for working directory and initial input, and supports new windows, new tabs, and horizontal/vertical splits (-h/-v). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner
|
@weijing24, I appreciate your contribution, but there are a number of problems:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
surface configurationobjects for working directory and initial input-h/-v), tab titles (-t), background mode (-g/-G), and auto-detection via$TERM_PROGRAM-s) are not supported in Ghostty; a warning is emitted if specifiedImplementation details
$TERM_PROGRAM == 'ghostty', explicit via-a Ghostty, or fallback viamdfindwith bundle IDcom.mitchellh.ghosttynew tab in front window/new windowwithsurface configurationsplit right(vertical) /split down(horizontal) on the focused terminalinitial working directoryon the surface configuration (nocdprepend needed)initial inputon the surface configuration with& returnset name of selected tab of front window-G): Save/restore viaselect tabandAXRaiseGUI scriptingTest plan
ttab— open new tab (inherits working directory)ttab -w— open new windowttab -v/ttab -h— vertical/horizontal splitsttab -G <cmd>— background tab with commandttab -t "title"— custom tab titlettab -d /path— explicit working directoryttab -s profile— warns that profiles are unsupported--dry-runoutput verified for all combinations