Skip to content

Add Ghostty terminal preset for macOS and Linux#116

Merged
jorio merged 3 commits into
jorio:masterfrom
Genfood:master
Jul 7, 2026
Merged

Add Ghostty terminal preset for macOS and Linux#116
jorio merged 3 commits into
jorio:masterfrom
Genfood:master

Conversation

@Genfood

@Genfood Genfood commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

This PR adds the Ghostty terminal emulator as a preselected option in ToolPresets.

Implementation details:

  • macOS (_macTerminals): Added with the open -na ghostty.app flags. This ensures that GitFourchette reuses an existing Ghostty instance rather than spawning a duplicate process, keeping the dock clean (similar to the existing kitty and WezTerm
  • Freedesktop (_freedesktopTerminals): Added with the standard -e flag, as window management is handled natively by the terminal's GTK single-instance mode when configured by the user.
  • Windows (_windowsTerminals): Omitted, as Ghostty does not currently have official Windows support.

Testing

Tested locally on Linux (Ghostty GTK backend). Verified that Ghostty successfully receives and executes the temporary /tmp/gitfourchette...sh subcommand generated by the application via the -e flag. OSC 1 window renaming sequences embedded in the script are also parsed gracefully.

Comment thread gitfourchette/exttools/toolpresets.py Outdated
Co-authored-by: Iliyas Jorio <iliyas@jor.io>
@Genfood

Genfood commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Should I do anything else?

@jorio jorio merged commit 32d00dc into jorio:master Jul 7, 2026
@jorio

jorio commented Jul 7, 2026

Copy link
Copy Markdown
Owner

All good. Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants