Open pepjo opened 8 years ago
+1
+1
+1
+1
+1
+1
+1
+1 Really needed for any kind of programming + spell-checking. Most of the multi-word variables are marked as misspelled.
+1
+1
+1
Made a quick fix for it. Not super sexy but it helps me. I probably won't do more updates on it. But feel free to fork or make pr! spellcheck snake and camel case
@Dennislampert, isn't it snake_case
, not sneak_case
?
Thanks! Your right 👍
@kankaristo http://lmgtfy.com/?t=i&q=snek 😏
+1 👍 Yes please! I use a spellcheck package in VScode that checks camelCase, which is extremely useful for javascript! I would love to see the same functionality in Atom
I would suggest just to go to VS Code :)
I wouldn't go that far. The current hangup on camel case is that we pass the entire buffer to Huspell instead of tokenizing on the Atom side. There has been a number of attempts to do the tokenization on Atom's side however it got stalled by Unicode. The tokenization rules there are... complicated to say the least but something we would have to solve in addition to doing this/pascal/snake/underscore case.
Doable, just mentioning why I don't think it's trivial.
Man, this was first posted 4 years ago. :( Doesn't look like it's going to happen?
I think it is still a possibility. spell-check
uses various system libraries underneath them, none that handle camel, Pascal, or the other cases, we might be able to let one of the plugin checkers have access to the rest of the registered checkers to do some sort of reeentrant callback? That way, we could implement a spell-check-camel-case
.
At the moment, I have a few too many open spell-check issues I'm working on so I haven't been able to get to this one yet.
spell-check
could use various tokenizers before passing a token to the underlying system/other spell-checking library.
It could do something like this:
It might also be helpful to interact with the syntax formatter so that e.g. code formatted as a control word is ignored by the spell checker.
Also, as a point of comparison the Code Spell Checker for Visual Studio likely referenced above, "A basic spell checker that works well with camelCase code," is listed as having >2.5M downloads, and being among the most popular linters.
Spell check camelCased words.
That would be great for writing javascript. If I don't remember wrongly, webstorm already does that.