|
15 | 15 |
|
16 | 16 | - [x] Replace `tabs` permission with `activeTab` (removes "Read browsing history" warning)
|
17 | 17 | - [x] Implement dynamic content script registration with chrome.scripting API
|
18 |
| -- [x] Optimize pangu.js loading with on-demand injection |
| 18 | +- [x] Optimize `pangu.js` loading with on-demand injection |
| 19 | +- [x] Skip auto spacing if there is no CJK content in webpages |
19 | 20 |
|
20 | 21 | ### Match Pattern Implementation
|
21 | 22 |
|
22 | 23 | - [x] Implement blacklist/whitelist with Chrome match pattern validation
|
23 | 24 | - [x] Use Chrome's `excludeMatches` API for efficient blacklist handling
|
24 | 25 | - [x] Add match pattern validation with helpful error messages
|
25 | 26 |
|
| 27 | +### Regex Pattern Fixes |
| 28 | + |
| 29 | +- [x] Fixed `AN_LEFT_BRACKET` pattern to prevent adding spaces in function calls like `a.getB()` |
| 30 | + - Added negative lookbehind `(?<!\\.[A-Za-z0-9]*)` to exclude patterns after dots |
| 31 | +- [x] Fixed pipe character `|` handling - removed from operator patterns (#194) |
| 32 | +- [x] Fixed filesystem path patterns to support special characters like `@`, `+`, dots (#209, #218, #219) |
| 33 | + - Enhanced pattern to match paths like `/node_modules/@babel/core` |
| 34 | +- [x] Fixed HTML tag spacing - tags no longer get spaces inside them (#164) |
| 35 | + - Implemented placeholder system to protect HTML tags during processing |
| 36 | + - Attribute values still get processed for spacing |
| 37 | +- [x] Fixed input field auto-spacing (#158) |
| 38 | + - Added `input` to `ignoredTags` regex in browser implementation |
| 39 | + - Prevents spacing in form fields, login/registration forms |
| 40 | +- [x] Fixed slash pattern conflict with filesystem paths |
| 41 | + - Removed `/` from `CJK_ANS` pattern to prevent spacing in patterns like `陳上進/vinta` |
| 42 | + - Made filesystem path pattern more specific to avoid false matches |
| 43 | +- [x] Improved filesystem path pattern to be less aggressive |
| 44 | + - Changed from matching any `/something` to only known system directories |
| 45 | + - Removed the `FIX_NAME_SLASH` workaround as it's no longer needed |
| 46 | + - Pattern now only matches paths starting with system dirs like `/home`, `/usr`, `/etc`, or `/node_modules` |
| 47 | + |
26 | 48 | ## In Progress
|
27 | 49 |
|
28 |
| -- [ ] None |
| 50 | +- [ ] None currently active |
29 | 51 |
|
30 | 52 | ## Next Steps
|
31 | 53 |
|
32 |
| -### High Priority |
| 54 | +### High Priority - Unfixed Issues |
33 | 55 |
|
34 |
| -- [ ] Generate different size icons from `icon_1500.svg` |
35 |
| -- [ ] Add a button for "Add this url to blacklist" in popup page or context menu |
| 56 | +- [ ] Fix issue #173 - Full-width curved quotes shouldn't have spaces |
| 57 | + - Full-width quotation marks (「」『』) are being incorrectly spaced |
| 58 | + - These are punctuation marks in CJK languages and shouldn't be separated |
| 59 | + |
| 60 | +### Medium Priority - Unfixed Issues |
| 61 | + |
| 62 | +- [ ] Fix issue #201 - Spaces inserted between image-separated text |
| 63 | + - When images are used as separators, unwanted spaces are added |
| 64 | +- [ ] Fix issue #207 - Breaking Bilibili upload page layout |
| 65 | + - Auto-spacing interferes with specific website functionality |
| 66 | + - May need site-specific rules or better element detection |
36 | 67 |
|
37 |
| -### Medium Priority |
| 68 | +### Low Priority - Unfixed Issues |
38 | 69 |
|
39 |
| -- [x] No need to perform spacing if there is no CJK in webpages |
40 |
| - - Implemented pageHasCJK() detection in BrowserPangu class |
41 |
| - - Added watchForCJKContent() for dynamic content monitoring |
42 |
| - - Saves processing time on pages without CJK content |
| 70 | +- [ ] Fix issue #169 - YouTube title persistence bug |
| 71 | + - Changes to YouTube titles don't persist |
| 72 | + - May be related to YouTube's dynamic content updates |
| 73 | +- [ ] Fix issue #216 - Add support for skipping Markdown syntax |
| 74 | + - Markdown formatting (like `**bold**`, `_italic_`) gets broken by spacing |
| 75 | + - Need to protect Markdown syntax during processing |
| 76 | +- [ ] Fix issue #161 - Markdown syntax support |
| 77 | + - Similar to #216, need comprehensive Markdown protection |
| 78 | + |
| 79 | +### Feature Enhancements |
| 80 | + |
| 81 | +- [ ] Generate different size icons from `icon_1500.svg` |
| 82 | +- [ ] Add a button for "Add this url to blacklist" in popup page or context menu |
43 | 83 | - [ ] Improve `autoSpacingPage()` performance, especially with a large DOM tree
|
44 | 84 | - See @.claude/researches/performance-optimization.md
|
45 | 85 | - [ ] Add instructions in options page for enabling experimental CSS `text-autospace`
|
|
0 commit comments