An extension for Nova.
Ensure a single newline at the end of your documents. No more "No newline at end of file" in your Git diffs!
โ๏ธ Heads up!
Nova version 6 introduced a preference making this extension unnecessary. Enable Ensure a trailing newline at the end of files to ensure a newline at the end of files. Enjoy!
This extension automatically ensures a newline before save by default (this can be disabled from the extension preferences)
Additionally, you can use the command from the command palette: Ensure Trailing Newline
Use a keyboard shortcut (default: option + command + t)