forge42dev / Remix-Dev-Tools

Own your Remix.run apps with these development tools.
https://remix-development-tools.fly.dev/
MIT License
680 stars 32 forks source link

support editors other than VSCode #144

Open eyy opened 1 day ago

eyy commented 1 day ago

it would be nice if the open in VSCode buttons would be more generic, and could open the file/dir in other editors. Our team, e.g., is using GoLand.

it's not a big change; i changed openInVsCode(), in src/vite/plugin.tsx, to the following, and it works:

const openInVsCode = (path2, lineNum) => {
  const p = normalizePath(process.cwd() + '/' + path2);
  exec(`goland "${p}" --line ${lineNum}`);
};

but surly it needs to be configurable; maybe pass remixDevTools an option like openEditor(path: string, line: number): string, and execute the return value. but i'm not sure what's the best way.

anyway, thanks for this cool project!

andrewbellucci commented 1 day ago

Just found out that this tool exists today and I've been using Remix for quite some time! I was actually about to make an issue for this, because I use WebStorm and GoLand as well. It would be extremely nice to have this. I'm going to draft a PR today to allow for this. Thanks for the investigation @eyy