JsFormat icon indicating copy to clipboard operation
JsFormat copied to clipboard

Turn off formatting for specified files/folders.

Open Volox opened this issue 12 years ago • 10 comments

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.

Volox avatar Dec 11 '13 17:12 Volox

@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.

jdavisclark avatar Feb 17 '14 00:02 jdavisclark

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.

Volox avatar Feb 17 '14 08:02 Volox

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.

jdavisclark avatar Feb 17 '14 16:02 jdavisclark

Ok, great!

Volox avatar Feb 24 '14 17:02 Volox

Would love this especially for files with jsx in them

ghost avatar May 13 '14 03:05 ghost

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

MartijnR avatar May 13 '14 14:05 MartijnR

+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

toineKeistoer avatar Jul 02 '14 09:07 toineKeistoer

+1

thomasklein avatar Apr 16 '15 14:04 thomasklein

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

jdavisclark avatar Apr 16 '15 15:04 jdavisclark

+1 for this feature

tupadr3 avatar Feb 07 '17 21:02 tupadr3