dprint for Nova

I like nice, fast tools, so dprint and Nova make a great pair.

Earlier this week, I mentioned that I have been switching a lot of my projects over to dprint, and since summer 2023 I have mostly been using Panic’s Nova as my main programming text editor.1 After wiring up dprint in both The Rust Programming Language book repo and True Myth this week, I was motivated to get an old project across the line: a dprint extension for Nova.

I just published an initial release (v0.1.0) of that extension! If you have Nova installed you can install it directly by clicking this link or by searching for it in Nova’s extension library. It currently supports formatting a whole file at once, including the ability to format on save.

Things I hope to do in the future (i.e. things it does not yet do):

  • support for formatting selections rather than the whole file
  • bundling a version of dprint so it can work out of the box”
  • support for formatting for buffers which have not yet been saved, but which do have a language, based on the open workspace

If you’re a Nova user, try it out and let me know if you hit issues!

You may also notice that it uses the Blue Oak Model License, which I just mentioned I have been adopting for all such projects.


Notes

  1. along with BBEdit and some off and on experiments with Zed. ↩︎