dfmt icon indicating copy to clipboard operation
dfmt copied to clipboard

passing .editorconfig via --editorconfig=/path/to/.editorconfig

Open timotheecour opened this issue 9 years ago • 2 comments

this would make it easier to share .editorconfig across different projects; or is there a better way? the docs regarding .editorconfig are not the clearest

timotheecour avatar Jun 04 '15 06:06 timotheecour

When opening a file, EditorConfig plugins look for a file named .editorconfig in the directory of the opened file and in every parent directory. A search for .editorconfig files will stop if the root filepath is reached or an EditorConfig file with root=true is found.

That is what EditorConfig says.

How do you imagine to share the file with multiple projects? If they are in different repositories, then it makes sense to have a copy in each repo anyways. If you have multiple projects within a repository, then you have a common parent directory where you can put the shared file.

qznc avatar Aug 06 '15 21:08 qznc

Functionality like this is needed for editor integration, where you'd want to specify a file/path assumption for input passed through stdin. See #202 .

JohanEngelen avatar Jan 14 '16 10:01 JohanEngelen