You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Converting checking to use multi-integer-range with a task-based checking.
* Updated unit tests to verify functionality of multiple plugin responses.
* Taught system checking how to identify correct as well as incorrect.
* Updated documentation to reflect plugin logic.
* This takes an array of words in a given line. This will be called once for every line inside the buffer. It also also not include words already requested earlier in the buffer.
49
-
* The output is an array of the same length as words which has three values, one for each word given:
50
-
*`null`: The checker provides no opinion on correctness.
51
-
*`false`: The word is specifically false.
52
-
*`true`: The word is correctly spelled.
53
-
*True always takes precedence, then false. If every checker provides `null`, then the word is considered spelled correctly.
47
+
*check(checkArgs, text: string): [results]
48
+
* This takes the entire text buffer and will be called once per buffer.
49
+
* The output is an array with three parameters, all optional: `{ invertIncorrectAsCorrect: true, incorrect: [ranges], correct: [ranges] }`
50
+
* The ranges are a zero-based index of a start and stop character (`[1, 23]`).
51
+
*`invertIncorrectAsCorrect` means take the incorrect range and assume everything not in this list is correct.
52
+
* Correct words always take precedence, even if another checker indicates a word is incorrect.
53
+
*If a word or character is neither correct or incorrect, it is considered correct.
54
54
* providesSuggestions(checkArgs): boolean
55
55
* If this returns true, then the plugin will be included when querying for suggested words via the `suggest` function.
[](https://travis-ci.org/atom/spell-check)[](https://ci.appveyor.com/project/Atom/spell-check/branch/master)[](https://david-dm.org/atom/spell-check)
3
+
4
+
**This is a test package. Disable the built-in `spell-check` module before using it.**
2
5
3
6
Highlights misspelling in Atom and shows possible corrections.
4
7
5
-
Use `cmd+shift+:` to bring up the list of corrections when your cursor is on a
6
-
misspelled word.
8
+
Use <kbd>cmd-shift-:</kbd> to bring up the list of corrections when your cursor is on a misspelled word.
7
9
8
10
By default spell check is enabled for the following files:
9
11
@@ -12,17 +14,10 @@ By default spell check is enabled for the following files:
12
14
* Git Commit Message
13
15
* AsciiDoc
14
16
15
-
You can override this from the _Spell Check_ settings in the Settings view
16
-
(<kbd>cmd+,</kbd>). The Grammars config option is a list of scopes for which the package
17
-
will check for spelling errors.
18
-
19
-
To enable _Spell Check_ for your current file type: put your cursor in the file,
20
-
open the [Command Palette](https://github.com/atom/command-palette)
21
-
(<kbd>cmd+shift+p</kbd>), and run the `Editor: Log Cursor Scope` command. This
22
-
will trigger a notification which will contain a list of scopes. The first scope
23
-
that's listed is the one you should add to the list of scopes in the settings
24
-
for the _Spell Check_ package. Here are some examples: `source.coffee`,
25
-
`text.plain`, `text.html.basic`.
17
+
You can override this from the _Spell Check_ settings in the Settings View (<kbd>cmd-,</kbd>). The Grammars config option is a list of scopes for which the package will check for spelling errors.
18
+
19
+
To enable _Spell Check_ for your current file type: put your cursor in the file, open the [Command Palette](https://github.com/atom/command-palette)
20
+
(<kbd>cmd-shift-p</kbd>), and run the `Editor: Log Cursor Scope` command. This will trigger a notification which will contain a list of scopes. The first scope that's listed is the one you should add to the list of scopes in the settings for the _Spell Check_ package. Here are some examples: `source.coffee`, `text.plain`, `text.html.basic`.
0 commit comments