Skip to content

feat(desktop): add Fork to the Open menu#2354

Open
eodwyrd wants to merge 2 commits into
getpaseo:mainfrom
eodwyrd:feat/open-in-fork
Open

feat(desktop): add Fork to the Open menu#2354
eodwyrd wants to merge 2 commits into
getpaseo:mainfrom
eodwyrd:feat/open-in-fork

Conversation

@eodwyrd

@eodwyrd eodwyrd commented Jul 23, 2026

Copy link
Copy Markdown

Adds Fork (the Git client) as an option in the workspace Open dropdown, so you can jump from a workspace straight into Fork with the repo open.

Why

Finder and the editors are already there, but if you live in a Git GUI there's no quick way over. This scratches that itch. Related to #261 (more Open targets) — though that one's about editors, and this is a Git client, so figured it's worth its own small thing.

How it works

Fork's a repository GUI, so it always opens the workspace root (never a single file). It launches via the existing openMacApplication runtime helper — literally open -a Fork <repo> — the same mechanism Cursor/Zed already use when their CLI isn't around. No runtime changes needed, and it only shows up when Fork.app is actually installed.

I went with open -a Fork over Fork's fork CLI on purpose: the CLI is opt-in (you have to install it separately) and cwd-based, whereas the app bundle is always there once Fork's installed and reliably opens the repo as a tab.

Scope

macOS only for now — that's what I could actually test. Windows Fork launching can be a follow-up once someone can verify it.

One small quirk worth flagging: if Fork is fully quit, launching it opens the repo tab but Fork's own session-restore focuses whatever tab was last active rather than the one you just opened (it's still there, one click away). When Fork's already running it focuses the repo correctly. That's Fork's behaviour, not something we can override cleanly.

Screenshots (desktop / macOS)

Fork in the Open dropdown, with its icon:

Open menu showing Fork

The workspace it opens from:

Workspace view

How I verified

  • Added registry tests: Fork shows on macOS when installed, opens the workspace root (ignores filePath), and is hidden when the app's missing or off-macOS.
  • Ran it in the desktop app — Fork shows in the Open menu with its icon and opens the repo (screenshots above).
  • npm run typecheck, npm run lint, npm run format, targeted vitest — all green.

Adds Fork (the Git client) as a target in the workspace Open dropdown so
you can jump from a workspace straight into Fork with the repo open.

Fork is a repository GUI, so it always opens the workspace root and
ignores any file path. It launches through the existing
openMacApplication runtime helper (open -a Fork <repo>) - the same
mechanism Cursor/Zed use when their CLI is absent - so there are no
runtime changes, and it only appears when Fork.app is installed. Bundles
a 64x64 Fork icon alongside the other editor-target icons. macOS only
for now; Windows can follow once its launcher is verified.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@eodwyrd
eodwyrd force-pushed the feat/open-in-fork branch from 0674575 to e31f72b Compare July 23, 2026 15:23
eodwyrd added a commit to eodwyrd/paseo that referenced this pull request Jul 23, 2026
eodwyrd added a commit to eodwyrd/paseo that referenced this pull request Jul 23, 2026
@eodwyrd
eodwyrd marked this pull request as ready for review July 23, 2026 15:28
@greptile-apps

greptile-apps Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds Fork as a macOS-only Open-menu target.

  • Registers Fork when /Applications/Fork.app, ~/Applications/Fork.app, or /System/Applications/Fork.app is present.
  • Opens the workspace root through the existing macOS application launcher.
  • Bundles a Fork icon and tests installation gating and launch behavior.

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified.

Fork follows the established macOS target detection, icon-loading, registration, and application-launch paths, and the added tests cover the feature’s relevant platform and launch behavior.

Important Files Changed

Filename Overview
packages/desktop/src/features/editor-targets/targets/fork.ts Implements Fork detection and workspace-root launching consistently with the existing editor-target runtime.
packages/desktop/src/features/editor-targets/registry.ts Registers the new Fork target in the existing target list without altering registry behavior.
packages/desktop/src/features/editor-targets/registry.test.ts Covers macOS availability, off-platform hiding, missing-app handling, descriptor output, and workspace-root launching.
packages/desktop/assets/editor-targets/fork.png Adds the valid PNG asset automatically included by the existing editor-target resource mapping.

Reviews (1): Last reviewed commit: "feat(desktop): add Fork to the Open menu" | Re-trigger Greptile

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.

1 participant