jmwright / cadquery-gui

An Electron-based GUI for CadQuery
Apache License 2.0
38 stars 3 forks source link

File Watcher Support for External Editing #9

Closed jmwright closed 6 years ago

jmwright commented 6 years ago

I'm documenting this after the fact since I pushed the change in 729c7316f16103823d1f9824619bf28882cbc5d9

A file watcher is not attached under normal circumstances, but when a user clicks the Edit button to open the model's script in Atom, a file watcher is attached. This provides the user with a faster workflow since they can just save the file in Atom to update the 3D view. There are a couple of things about this that need to be addressed.

  1. Users need to be able to specify their own editor and any necessary command line options.
  2. Users should be able to disable this feature when they're working on scripts that take long periods of time to run.

I believe that this completes an MVP that I am able to use to replace CadQuery's FreeCAD workbench. Obviously there's a tremendous amount of work left we can do, but this will allow me to start dogfooding the GUI.

jmwright commented 6 years ago

Forgot to close after commit 28b8a26ed23d6b56d315d2816e7c744f1846acb8