astrale-sharp / typstfmt

Apache License 2.0
253 stars 25 forks source link

Feature request: Only print "file overwritten" when the contents change #98

Closed ntjess closed 1 year ago

ntjess commented 1 year ago

Format a file and see the console print

file: ".\\file.typ" overwritten.

Then format it a second time, where the contents doesn't change. The same message will still print. Ideally, it would print a separate message when a file was formatted but ultimately was unchanged. Something like:

file: ".\\file.typ" up to date.

This helps the user quickly identify which files need a second review in the event multiple files are formatted at once.

astrale-sharp commented 1 year ago

Excellent idea!

astrale-sharp commented 1 year ago

It's implemented!