-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Make it possible to store User Words into a dictionary file instead of settings.json #61
Comments
Yes, this is possible. Just copy the words into a text file and follow the step: how-to-add-your-own-dictionaries The documentation is new, so if you have any feedback on how to improve it for understanding, please make some suggestions. |
Oh. I wasn't clear enough. The documentation is pretty clear regarding dictionaries. However, I was talking about overriding the behavior of "Add to dictionary". Here is my scenario. I'm trying to use cSpell with LaTeX files. Apparently there is a lot of text and specific terminology that is unknown in advance. So I cannot create a static custom dictionary and add it via the current mechanism. Of course, I can manually copy/paste from the settings file each time it grows beyond some point, but it is a bit awkward. |
Ahh. you want to be able to configure the target for adding words from the UI. Something like: // At the user level
"cSpell.userDictionaryLocation": ".../dictionaries/my_personal_dictionary/words.txt",
// or at the project level
"cSpell.projectDictionaryLocation": "./words.txt", And have the extension add to that dictionary instead of the settings.json file. |
Yes. Though at the project level it might be meaningless. |
A problem with cluttering settings file like that is that new settings get added at the end of the file, so you have to scroll down to the end each time new settings are added. |
@Jason3S Another option would be to follow the example of Settings Sync and allow users to store their custom dictionary in a private gist on GitHub. I assume you could recycle much of their implementation and it would make away with having to handle local files on different OS's. |
Please implement something like /to @Jason3S Thanks for all the hard work on these tools! 👋 |
@DerekNonGeneric a pull request would be awesome! |
With 1.9.0, it will be possible to add a custom dictionary location. Would you try out: v1.9.0-alpha.0 |
Thanks @Jason3S, you're the best! I was able to get it working perfectly! 🚀✨ |
Works great. Thank's! |
@Jason3S Your work is much appreciated! Looking forward to the public release. |
I have made it slightly easier to use with v1.9.0-alpha.5 The custom dictionaries can refer to a predefined dictionary: Example with a dictionary reference
"dictionaryDefinitions": [
{
"name": "cities",
"path": "./sampleDictionaries/cities.txt"
},
{
"name": "project-terms",
"path": "./words.txt"
}
] VS Code "cSpell.customWorkspaceDictionaries": ["project-terms"] |
@Jason3S I would also add |
What would "*" mean? There are a lot of active dictionaries. You want to write words to all of them? Please describe the behavior you are looking for. You can also add |
The asterisk would mean to use all dictionaries. But anyway I think I misunderstood |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is it possible to store words that currently appear in "cSpell.userWords" in a separate file?
After couple of days pressing "Add to dictionary" my user settings file became pretty large and is still growing.
The text was updated successfully, but these errors were encountered: