-
Notifications
You must be signed in to change notification settings - Fork 47
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
Differentiate between scopes for spell-check compatibility #124
Comments
I am waiting for this to be included in atom to solve the problem you mentioned : atom/spell-check#157 |
Solution: don't use spell-check. Use the linter, linter-ui-default, linter-spell, linter-spell-latex package combination, as the last one is specifically made for compatibility with this package. You do need hunspell or aspell on your system though. If you must use spell-check, I'm not actually sure what the problem is: your screenshot shows the macro to be scoped as meta.function and support.function. Adding one of these to the exclusion list should work. |
We cannot add this scope to the exclusion list since there is no exclusion list at the moment as far as I know. There will be one when atom/spell-check#157 will be merged. |
Fair enough. I was thinking of the autocomplete-plus package, where a similar thing already exists for snippets. I still recommend using the other package combination though, as spell-check doesn't seem aimed at supporting latex. It does mention a latex use case, but using linter etc. also lets you use the chktex package, which is probably useful. |
I don't think there is appropriate scopes to distinguish those two, but will consider some solutions after atom/spell-check#157 is merged. Please use other lint packages meanwhile. By the way, I believe order of growth should be denoted in math mode i.e., |
The feature described in atom/spell-check#157 will be in Atom 1.25. I still think it will be great to have a great compatibility with spell-check since it is a default package. (I must admit I tried the solution described with Aerijo with linter without success, and it seemed pretty heavy to handle compare to spell-check, even if, of course, it seems more powerful) |
@PierreMarchand20 I'm not actually sure what is being asked for here. Every language has a 'root' scope that is applied to all the text. In this case, the root scope is There is no other way to differentiate text, so a scope blacklist is the only way. Adding a unique scope to all text that is not otherwise scoped would 1) be difficult to achieve 2) probably cause a lot of bugs, and 3) be made redundant when Atom 1.25 is released and |
Also, I can try my best to help with any problems you have setting up |
Concerning Concerning |
@PierreMarchand20 Maybe see if this guide I wrote can help. If it doesn't, let me know (there or here) and I'll do my best to improve it. |
Thank you ! it is an amazing work, I did not know about hyperclick and autocomplete, I will check it out. Actually I was using I tried |
@PierreMarchand20 My bad, I forgot an important package for the linting. You also need |
Ok I succeeded in using |
I have problems using language-tex in combination with spell-check. Spell-check allows to define the scope it should make the suggestions for. Unfortunately language-tex provides only a
text.tex.latex
scope, which is causing spelling check in LaTeX commands as well as in regular text.Is there a way to make a differentiation of scope between commands and regular text?
EDIT: possible duplicate of #107. I tried to elaborate a possible solution by scope differentiation here though.
The text was updated successfully, but these errors were encountered: