Comments (9)
Currently that feature is not supported. If it get's more "votes" I'll have a look into it.
from nova-beautify.
Just released version 1.5 of the extension with format on save option. Please provide feedback.
from nova-beautify.
And one thing i also have a problem with now is that i cant have trailing whitespaces at the end of files. Before nova added this automatically on save. Now its gone because of beautify.
This looks like a Nova issue. Format on save is invoked onWillSave() and I would expect that Nova should handle its own saving processing AFTER any extension did their work which obviously is not the case. I filed a bug report with Panic.
from nova-beautify.
Very cool π
Thanks for your quick implementation! Its cool that you can choose where to use format on save.
Would be handy if you have the option to skip formating on save in some cases (with special shortcut?).
from nova-beautify.
This feature would be so nice!
from nova-beautify.
Thank you, Patrick β itβs amazing! :)
from nova-beautify.
And one thing i also have a problem with now is that i cant have trailing whitespaces at the end of files.
Before nova added this automatically on save. Now its gone because of beautify.
from nova-beautify.
When formatting on save, could it maintain "Code Folding" if used?
from nova-beautify.
When formatting on save, could it maintain "Code Folding" if used?
I don't think that an extension can handle this. The extension just reads text ranges and replaces them with the formatted text. There's no info about code folding. If Nova was smart enough to recognize that only the content but not the structure has changed, then code folding might be maintained.
from nova-beautify.
Related Issues (12)
- Configuration HOT 13
- Clips cannot be beautified and crashed Nova HOT 11
- Bug: Blank space added for one-line, no-content nodes HOT 8
- Support for .Liquid files HOT 2
- Unformatting HOT 4
- Mac Keyboard Shortcut not working in Nova HOT 3
- Return to Top of Document After Format HOT 4
- [Feature Request]: Consider allowing to load an external JS Beautify script/automatic updater HOT 2
- Emptying a config option (type=text) re-applies the default HOT 1
- Project Settings
- Add configuration setting for indent_empty_lines HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nova-beautify.