Skip to content

Let the terminal application be chosen in the preferences - #665

Closed
goneng wants to merge 1 commit into
gitx:masterfrom
goneng:choose-terminal-application
Closed

goneng wants to merge 1 commit into
gitx:masterfrom
goneng:choose-terminal-application

Conversation

@goneng

@goneng goneng commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Fixes #637.

GitX has been able to drive iTerm2 for years, but the choice was reachable only
through defaults write, so in practice nobody could find it.

Changes

  • Offer the handlers GitX can actually drive in the Integration pane, greying
    out one that is not installed and saying so in its tooltip. A third terminal
    cannot be added by listing it: each needs its own Scripting Bridge header and
    its own API.
  • Move the handler list, display names and installed check into
    PBTerminalUtil, beside the code that drives them, and settle an
    unrecognized preference there, so the run path no longer logs and guesses at
    the point of use.
  • Add PBTerminalHandlerPreferenceTests over that choice, which is where a
    preference written by hand can hold anything at all.

Test plan

  • 137 tests, 0 failures, 8 of them new
  • Preference set to each handler in turn, and to a value that is neither, which
    settles to the default rather than reaching the run path unrecognized

…#637)

GitX has been able to drive iTerm2 for years, but the choice was
reachable only through defaults write, so nobody could find it.

* Offer the handlers GitX can actually drive in the Integration pane,
  greying out one that is not installed and saying so in its tooltip.
  A third terminal cannot be added by listing it: each needs its own
  Scripting Bridge header and its own API.
* Move the handler list, display names and installed check into
  PBTerminalUtil, beside the code that drives them, and settle an
  unrecognized preference there, so the run path no longer logs and
  guesses at the point of use.
* Add PBTerminalHandlerPreferenceTests over that choice, which is where
  a preference written by hand can hold anything at all.
@goneng
goneng marked this pull request as ready for review September 17, 2026 21:45
@hannesa2

Copy link
Copy Markdown
Contributor

As you pull request comes from your fork, I can't test it easily as no artifact is provided here

@goneng

goneng commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator Author

As you pull request comes from your fork, I can't test it easily as no artifact is provided here

Right - sorry - moved to #667, which is branched on gitx/gitx itself, so CI has the signing secrets and produces an installable dmg and zip to test. Closing this one.

@goneng goneng closed this Sep 18, 2026
@goneng
goneng deleted the choose-terminal-application branch September 18, 2026 07:18
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.

No way to choose iTerm2 as the terminal application

2 participants