-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow file-specific wordlists #59
Comments
Another alternative would be to allow the interface to easily create additional dictionaries on-the-fly. E.g. I'm using Logstash for some logging stuff. And so I've got some very specific files that are concerned with logging, and the concern of Logstash should remain within those very specific files. So when spellr tells me that "logstash" is an error, I could press some buttons to create a new "logging" wordlist, or "infrastructure" wordlist, or something like that, and only individual files or folders can be added into that wordlist. |
You can make wordlists that apply to a single file, just set it up as the only file for that language. languages:
logstash:
includes:
- path/to/logstash there isn't yet a way to set up a wordlist during an interactive spell check session (single file or not), (this would require writing to the .spellr.yml and i don't want to accidentally clobber comments like package.json does). If you have any solution for this (perhaps a yaml parser that doesn't strip comments and keeps track of formatting, or a secondary file like .rubocop_todo.yml) |
I often come across words that are very specific to a single file, and the probability of that same word being used elsewhere in the codebase legitimately is extremely low (low enough that it's more likely to be the result of a typo).
In this situation, it would be great to be able to have wordlists for specific files.
The text was updated successfully, but these errors were encountered: