-
Notifications
You must be signed in to change notification settings - Fork 154
open straight to IDE #52
Comments
Awesome. I was also thinking about it. I was thinking to show all the editors present on the machine at the start of the app and show them as a list. Then open accordingly. |
Ahh, yeah, this is key. Also, it fits nicely with #46. I have an idea for how this should work in the UI; I imagine a couple of subtle buttons right below the project name, for "Open in Finder" and "Open in Editor"
I think it's probably alright to just use the currently-open editor. Might not be perfect, but I like that we can leverage a pre-existing solution. Can always revisit if we want more control for the beginner experience :) |
I suggested that because I usually have two editors open "Sublime (for misc tasks) and VS Code (for coding) ", and whenever I try to see the source of error, the "error page" opens up sublime text. But yes it is better to first implement beginner friendly solution. |
I have exactly the same setup, haha (I use sublime for Git commit messages, since it opens faster than VS Code). I haven't run into the issue clicking errors in CRA, but I 100% believe it's possible. But yeah, I imagine the typical Guppy user doesn't have multiple IDEs running at the same time, and so I think it's fine to defer thinking about this until the bigger-ticket issues for beginners have been solved. |
I'm working on this here. Opening in IDE and Explorer is working. My work is based on Some thoughts we should discuss:
Notes |
I think it should be based on OS:
I think each should be a component, no services needed:
I see that you currently have methods in
Agreed! No redux needed. This doesn't involve any app-wide state.
Yeah, so I think the position and size looks right, but they're too prominent. Some ideas:
I'd also like to avoid making them square, so that we're consistent about "round things being actions", and "square things being labels". UX: The explorer/file browser should open on top of Guppy. It opens sometimes in the background. I have to check if this can be controlled.
Some other thoughts:
I'm guessing react-dev-utils doesn't have this as an option, though... so if not, maybe just "Open in Code Editor"?
Actually, one thing we need to figure out is what's going on with the Windows release, so that PRs like this can be unblocked. Lemme check in on that. |
Should be possible using https://github.com/sindresorhus/env-editor |
OK, I like the component approach for the buttons but I would only create one button component and pass the click handler to them and the caption could be passed as child. Something like this for open in finder:
Naming for this could be I'm not sure if it is worth it to add And the other would also work with Yes, you're right the open folder opens the project directory that is containing the UI styling For the Windows release, I'm still waiting for @bennygenel (he seems busy at the moment) to review It would be great to have the Windows stuff merged so I could work closer with master branch. Should I create that branch? It would be also good because the current |
@AWolf81 sorry for the delay on this! I was thinking of taking over on this, since it looks like you've almost finished it... but I checked your branch and it looks like the commits are intermingled with windows-support stuff, which has presumably been dealt with already. It might be easier if I just copy/paste the relevant code from your branch to a new one off of master... but I don't wanna deprive you of credit for the work you've done! I think I can update the commit message to set you as the author. Let me know how you feel about this. Alternatively I'm also happy to wait until you get back from vacation, and let you tackle this all then :) |
Yeah, I know there are commits from windows support branch but I think that should be OK if merged with master. You could continue the work like following:
I know conflict resolution could take some time but I did the same for Yes, I think the last point was the styling of the buttons. I did some work but haven't pushed it as it's not finished. |
@AWolf81 yeah, true. My concern was more over not knowing which stuff was necessary or not for windows, but I have that windows VM, I can poke around with it and see. I think I wanna take a shot at doing the "Project" application menu for other things (like switching projects or clearing logs), and then look at using a different packager, so we can support auto-update. After that stuff I think I'll pick this up if it's still available :) |
We can close this issue as open in IDE button & menu item is available. |
have a nicer handoff from the installation to starting development by having a button that opens straight to IDE. you can use launchEditor from react-dev-utils, it should jsut be a few lines. the harder part is where to put this in the UI
The text was updated successfully, but these errors were encountered: