# Add open-in-editor feature with Cmd\+O shortcut · PR \#2 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/2)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: juliusmarminge/open-in-editor

Target branch: main

Head commit: 36314bb3bbca9f67324ed49b189b4e8e49e029cd

[Discussion and reviews](https://git.cafe/pingdotgg/t3code/pull/2)

[Commits](https://git.cafe/pingdotgg/t3code/pull/2/commits?format=markdown)

[Files changed](https://git.cafe/pingdotgg/t3code/pull/2/diffs?format=markdown)

## Description

---


<img width="2200" height="1560" alt="CleanShot 2026-02-08 at 20 49 41@2x" src="https://github.com/user-attachments/assets/7330ce43-2066-4858-afee-05ea8e66e1a3" />


## Summary
Add a header dropdown to open the workspace in Cursor or the system file manager (Finder on macOS, Explorer on Windows, Files on Linux). Includes a global `Cmd+O` / `Ctrl+O` keyboard shortcut that opens in the last-used editor, with persistence via localStorage.

## Changes
- Add IPC channel `shell:open-in-editor` in contracts
- Main process handler that spawns editor CLI or uses `shell.openPath()` for cross-platform file manager support
- Header dropdown with editor options between status indicator and Diff button
- Global keyboard shortcut listener for `Cmd+O` / `Ctrl+O`
- Last-used editor tracked in localStorage with intelligent platform-aware naming (Finder/Explorer/Files)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

* **New Features**
  * Added an "Open in…" dropdown in the top bar to open the active project in a chosen editor or the file manager.
  * Added Cmd/Ctrl+O shortcut to open the project with your last-selected editor; selection is persisted across sessions.
  * Editor menu closes on outside clicks and after choosing an editor.

* **Platform Integration**
  * Desktop app now launches external editors or the file manager to open project folders.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
