Add open-in-editor feature with Cmd+O shortcut (#2)

* Add open-in-editor feature with Cmd+O shortcut

Add dropdown in header to open workspace in Cursor or system file manager (Finder/Explorer/Files). Include Cmd+O/Ctrl+O global keyboard shortcut to open in last-used editor, persisted to localStorage.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

* Move editor definitions to contracts for strict IPC typing

EDITORS config and EditorId type now live in @acme/contracts so the
shell.openInEditor IPC channel is strictly typed end-to-end. The main
process uses the contract's command field (null = file manager via
shell.openPath).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix biome formatting issues

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: add error handling and address review feedback

- Validate cwd is non-empty in shell:open-in-editor IPC handler
- Check shell.openPath() return value and throw on error
- Attach spawn error listener to prevent crashes from missing CLI
- Validate localStorage lastEditor against known EDITORS list
- Only call preventDefault() for Cmd+O when action will run

Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>

---------

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>
eef57db955Julius Marminge committed on 2/9/2026, 9:06:49 AM· committed by GitHubparent7a68e57
4 files changedLine totals unavailable