misspell icon indicating copy to clipboard operation
misspell copied to clipboard

Support .gitignore

Open silverwind opened this issue 8 years ago • 6 comments

It'd be great if paths defined in .gitignore (or possible a dedicated .mispellignore) could be ignored, so I can run misspell * without the tool venturing into my node_modules or it checking other untracked files.

silverwind avatar Jun 14 '17 18:06 silverwind

oh interesting idea @silverwind

It's on my list. It's the #1 feature request "How I can exclude files"

client9 avatar Jun 14 '17 19:06 client9

in the meantime, if you can, you can do something like this

find . -name '*whatever*' -type f | grep -v IGNORE1 | grep -v IGNORE2 | xargs misspell

I know that's gross. But might help in short term. Ping me if you need help.

regards,

n

client9 avatar Jun 14 '17 19:06 client9

Thanks. For now I'll just use multiple globs to target only the files that I care about. It's probably also possible to exclude paths with extended shell globs, but that's getting pretty esoteric.

silverwind avatar Jun 15 '17 09:06 silverwind

Note to me: https://git-scm.com/docs/gitignore

client9 avatar Jun 18 '17 17:06 client9

Is this still being worked on?

nektro avatar Feb 27 '20 20:02 nektro

For anyone stumbling upon this, this command should work for you.

git ls-files | xargs misspell

CathalMullan avatar Feb 28 '20 13:02 CathalMullan