Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off formatting for specified files/folders. #90

Open
Volox opened this issue Dec 11, 2013 · 10 comments
Open

Turn off formatting for specified files/folders. #90

Volox opened this issue Dec 11, 2013 · 10 comments

Comments

@Volox
Copy link

Volox commented Dec 11, 2013

That would be great if there is a possibility to add such feature.
I don't know if it belongs here or to @einars project, but it will be great to specify an options that "tells" the parser to ignore some files/folders.

Something like jshint comments or a .jsbeautifyrc file with an enabled option.

@jdavisclark
Copy link
Owner

@Volox it would belong here, not upstream at @einars project.

Are you using the format_on_save feature most of the time, and there are some directories in projects where you don't want it to happen? If this is the case, why don't you want those files to be formatted? Is JsFormat trying to format files that aren't js/json, etc...?

Based off what you have said, I feel like there may be an underlying issue that needs to be fixed in addition to possibly adding this feature.

@Volox
Copy link
Author

Volox commented Feb 17, 2014

Yes, i am using format_on_save most of the time, but i cannot turn it off when i open an external library that i want to modify.

@jdavisclark
Copy link
Owner

ok. This would most likely get implemented via an ignore_patterns configuration option in your JsFormat user settings. I've actually done some work on similar stuff that isn't merged in anywhere yet, so that is probably the best place for it.

@Volox
Copy link
Author

Volox commented Feb 24, 2014

Ok, great!

@ghost
Copy link

ghost commented May 13, 2014

Would love this especially for files with jsx in them

@MartijnR
Copy link
Contributor

+1 for this feature. I'd use it to exclude external libraries.

@toineKeistoer
Copy link

+1 We have a plugins.js file which contains all plugins we use in minified format. We don't want to format this file when we add a new minified plugin and save this file. In the plugin "SublimeOnSaveBuild" there is an option "filename_filter" where we can set file names or extensions. I would love to see some kind of feature in this plugin.

Many thanks

@thomasklein
Copy link

+1

@jdavisclark
Copy link
Owner

Been working on some other (unrelated) python stuff lately, so I may knock this out this week.

@tupadr3
Copy link

tupadr3 commented Feb 7, 2017

+1 for this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants