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
* Initial plan
* Add "Add to Dictionary" feature with persistent word storage
- Create src/dictionary.ts for persisting dictionary words via MarkEdit file API
- Add addToDictionary() export in src/lint.ts using Harper's importWords/exportWords
- Load persisted dictionary words at linter startup
- Add problemText field to Diagnostic interface in src/decoration.ts
- Add "Add to Dictionary" button in tooltip UI (src/tooltip.ts)
- Add tests for dictionary parsing (tests/dictionary.test.ts)
- Update decoration tests for new problemText field
- Document feature in README.md
Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com>
* Address code review: simplify problemText checks in tooltip
Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com>
* Address review: rename dict, use documents dir, integrate into Ignore with addToDict setting
- Rename dictionary.ts → dict.ts, dictionary file → proofreading-dict.txt
- Use documents directory instead of library for discoverability
- Remove separate "Add to Dictionary" button from tooltip
- Integrate dictionary into "Ignore" button, controlled by addToDict setting (default true)
- Add addToDict to ProofreadingSettings with tests
- Update README to document addToDict setting
Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com>
* Fix cross-editor safety: read dict from disk instead of Harper memory
When adding a word, read the current file from disk (not exportWords())
to preserve words added by other editor instances. Only appends the
new word if not already present, and skips the save entirely for
duplicates.
Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com>
* Move addToDict to 2nd position in README settings docs
Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: cyanzhong <6745066+cyanzhong@users.noreply.github.com>
Co-authored-by: Ying Zhong <0x00eeee@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ You can customize behavior from `settings.json` with the `extension.markeditProo
16
16
{
17
17
"extension.markeditProofreading": {
18
18
"autoLintDelay": 1000,
19
+
"addToDict": true,
19
20
"lintPreset": "relaxed",
20
21
"lintRuleOverrides": {
21
22
"SpelledNumbers": false,
@@ -27,6 +28,7 @@ You can customize behavior from `settings.json` with the `extension.markeditProo
27
28
```
28
29
29
30
-`autoLintDelay`: Delay in milliseconds before automatic proofreading runs after a document change (default: `1000`). Set to `-1` to disable automatic proofreading entirely (use "Proofread Now" to lint on demand)
31
+
-`addToDict`: When `true` (default), clicking "Ignore" on a flagged word also adds it to a personal dictionary so it won't be flagged in future sessions. Set to `false` to disable this behavior
30
32
-`lintPreset`: `"strict"`, `"standard"` (default), or `"relaxed"`
31
33
-`lintRuleOverrides`: Per-rule overrides (`true` / `false` / `null`) applied on top of the preset
32
34
-`disabledLintKinds`: Additional lint kinds to filter out, available kinds:
@@ -37,3 +39,7 @@ You can customize behavior from `settings.json` with the `extension.markeditProo
37
39
38
40
For a full list of available rule names, see:
39
41
https://writewithharper.com/docs/rules
42
+
43
+
## Dictionary
44
+
45
+
When `addToDict` is enabled (default), clicking "Ignore" on a flagged word also adds it to a personal dictionary persisted in `proofreading-dict.txt` under the MarkEdit documents directory. Dictionary words are automatically loaded when the extension starts.
0 commit comments