Skip to content

macos: add split-button toolbar item for opening in external editors#10

Merged
nicosuave merged 1 commit intomainfrom
nicosuave/toolbar-editor-dropdown
Feb 25, 2026
Merged

macos: add split-button toolbar item for opening in external editors#10
nicosuave merged 1 commit intomainfrom
nicosuave/toolbar-editor-dropdown

Conversation

@nicosuave
Copy link
Member

Adds a native split-button dropdown to the toolbar that opens the current working directory in an external editor. Clicking the button opens in the last-used editor; the dropdown arrow reveals a menu of all installed editors grouped by category (code editors, Git clients, Finder). The last-used editor is persisted across sessions.

Supported editors: Cursor, VS Code, VSCodium, Zed, Sublime Text, Nova, TextMate, Xcode, JetBrains IDEs (IntelliJ, WebStorm, PyCharm, GoLand, RubyMine, CLion, Rider, PHPStorm, Fleet), Tower, Fork, GitKraken, Sourcetree, GitHub Desktop, and Finder.

Adds a native split-button dropdown to the toolbar that opens the
current working directory in an external editor. Clicking the button
opens in the last-used editor; the dropdown arrow reveals a menu of
all installed editors grouped by category (code editors, Git clients,
Finder). The last-used editor is persisted across sessions.

Supported editors: Cursor, VS Code, VSCodium, Zed, Sublime Text,
Nova, TextMate, Xcode, JetBrains IDEs (IntelliJ, WebStorm, PyCharm,
GoLand, RubyMine, CLion, Rider, PHPStorm, Fleet), Tower, Fork,
GitKraken, Sourcetree, GitHub Desktop, and Finder.
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4f5447b486

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1910 to +1914
switch worktrunkSidebarState.selection {
case .worktree(_, let path):
return path
case .session(_, _, let worktreePath):
return worktreePath

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use focused terminal cwd before sidebar selection

currentEditorPath() currently returns the selected worktree/session path whenever the sidebar has a selection, which means the new toolbar action opens the worktree root instead of the active terminal's actual pwd for common cases like working in a subdirectory. In practice, users clicking “Open in Editor” from a tab at /repo/subdir will be sent to /repo if the sidebar selection is on that worktree/session, so the feature does not open the current working directory as intended.

Useful? React with 👍 / 👎.

@nicosuave nicosuave merged commit a2f3d7b into main Feb 25, 2026
112 of 116 checks passed
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