-
Notifications
You must be signed in to change notification settings - Fork 172
feat: open file in local editor when clicking component tag #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@tt-a1i is attempting to deploy a commit to the Million Team on Vercel. A member of the Team first needs to authorize it. |
93ab9dd to
bda4687
Compare
bda4687 to
00d7159
Compare
- Add direct editor URL scheme support (vscode, cursor, windsurf, trae, webstorm, phpstorm, idea, zed, sublime, atom) - Use __PROJECT_ROOT__ from Vite config to build absolute file paths - Use __PREFERRED_EDITOR__ from Vite config to select editor (default: vscode) - Clean up localhost URL prefixes from file paths - Fallback to react-grab.com/open-file when __PROJECT_ROOT__ is not configured
00d7159 to
c7f15ac
Compare
|
Hi @aidenybai 👋 I've updated this PR to also include JetBrains Rider support, which addresses #48. I wanted to check if this approach works for you:
Would love to hear your thoughts on whether this direction makes sense for the project! Happy to adjust based on your feedback. |
Add Rider to the list of supported editors, using the same URL scheme
as WebStorm (rider://open?file={file}&line={line}&column={column}).
This addresses Issue aidenybai#48 request for JetBrains Rider support.
0a04fdc to
ca94d3f
Compare
|
ayy yeah this is the only missing piece |
|
huge! 🎉 makes life so much easier |

Summary
Adds the ability to click on the floating label to open the selected element's source file directly in your local editor.
Changes
Click to open in editor: When clicking the component tag in the floating label, opens the file at the component's location in your preferred editor
Improved file path detection: Prioritizes
data-component-pathanddata-component-lineDOM attributes (added by tools like lovable-tagger) over React Fiber stack traces, providing more accurate source file locationsSupported Editors
Configuration
Users need to configure their Vite project:
Fallback Behavior
__PROJECT_ROOT__is not defined, falls back to opening react-grab.com/open-fileCloses #50