[Feature]: Open project by dragging a Finder folder onto the dock icon #6700
stickerdaniel
started this conversation in
Ideas
Replies: 1 comment
|
Implemented together with the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Before submitting
Area
apps/desktop
Problem or use case
Dragging a folder from Finder onto the T3 Code dock icon does nothing. The Electron main process (apps/desktop/src/main.ts) has no
app.on('open-file')handler. This means both macOS folder-drop and t3code CLI workflows are unsupported.Proposed solution
app.on('open-file')in the main process, buffering paths received beforeapp.whenReady()desktop: open-folder-path)CFBundleDocumentTypes/Info.plistWhy this matters
Dragging a folder onto a dock icon is a core macOS interaction pattern. Not supporting it makes the app feel incomplete. This also unblocks the CLI open workflow requested in #517
Smallest useful scope
macOS only, handle open-file for directories and navigate to the project. CLI args and second-instance forwarding can follow separately.
Alternatives considered
Currently the only way to add a project is through the in-app folder picker dialog. #517 requests the CLI side of the same problem.
Risks or tradeoffs
Need to handle the case where the dropped path is not yet a registered project by auto-adding it. Also need to decide behaviour when the app is not yet fully bootstrapped (buffer the path and flush after ready).
Examples or references
VS Code: code . / drag folder onto dock icon
Ghostty: drag folder onto dock icon to open terminal in this path
Contribution
All reactions