Git Product home page Git Product logo

Comments (9)

patrickvuarnoz avatar patrickvuarnoz commented on August 23, 2024 18

Currently that feature is not supported. If it get's more "votes" I'll have a look into it.

from nova-beautify.

patrickvuarnoz avatar patrickvuarnoz commented on August 23, 2024 11

Just released version 1.5 of the extension with format on save option. Please provide feedback.

from nova-beautify.

patrickvuarnoz avatar patrickvuarnoz commented on August 23, 2024 2

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.

jblechinger avatar jblechinger commented on August 23, 2024 1

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.

jblechinger avatar jblechinger commented on August 23, 2024

This feature would be so nice!

from nova-beautify.

gregwolanski avatar gregwolanski commented on August 23, 2024

Thank you, Patrick – it’s amazing! :)

from nova-beautify.

jblechinger avatar jblechinger commented on August 23, 2024

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.

problematic1 avatar problematic1 commented on August 23, 2024

When formatting on save, could it maintain "Code Folding" if used?

from nova-beautify.

patrickvuarnoz avatar patrickvuarnoz commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.