andorsk / d2-mode

emacs major mode for d2 graphs
GNU General Public License v3.0
63 stars 7 forks source link

`d2fmt`: D2 Format Support w/ Autosave #37

Open andorsk opened 1 year ago

andorsk commented 1 year ago

related to https://github.com/andorsk/d2-mode/issues/30.

Heavily uses gofmt as inspiration for code. A couple things worth noting:

d2 fmt is only supported in version v0.1.4 onward. oss.tesseract origin is only available to v0.1.2 afaik. Brew is also behind v0.1.4. The point being, it is very likely that a lot of people will have unsupported versions.

Handling needs to be made with care that the proper messaging is provided to users that don't have the correct version of d2.

Additionally, it might make sense to add an additional feature to the repo, which is an upgrade command to upgrade d2.

https://github.com/andorsk/d2-mode/issues/38

andorsk commented 1 year ago

will continue on this work next week. have to refocus on other things for now.