Skip to content

Commit e48dbb5

Browse files
committed
feat: expose Preview Auto-fix Diff command in contributes + docs
1 parent 4f88b93 commit e48dbb5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ Tags are rendered as simple uppercase bracketed items (e.g. `[SEO] [CACHE]`) for
152152
| `WordPress Readme: Open Preview` | Command Palette, Context Menu | Open preview in current editor group |
153153
| `WordPress Readme: Open Preview to the Side` | Toolbar, Context Menu | Open side-by-side preview |
154154
| `WordPress Readme: Validate Readme` | Context Menu, Command Palette | Run validation and show detailed results |
155+
| `WordPress Readme: Preview Auto-fix Diff` | Command Palette | Open a diff view comparing current document vs proposed auto-fix changes (no edits applied) |
155156
| `WordPress Readme: Auto-fix Markdown to WordPress style` | Command Palette | Apply safe formatting fixes (normalize headings, code blocks, spacing) |
156157

157158
## Context Menu Integration

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"onLanguage:readme-txt",
4545
"onCommand:wordpress-readme.showPreview",
4646
"onCommand:wordpress-readme.showPreviewToSide",
47+
"onCommand:wordpress-readme.previewAutoFixDiff",
4748
"onWebviewPanel:wordpress-readme-preview"
4849
],
4950
"main": "./out/extension.js",
@@ -95,6 +96,12 @@
9596
"title": "Auto-fix Markdown to WordPress style",
9697
"category": "WordPress Readme",
9798
"icon": "$(wand)"
99+
},
100+
{
101+
"command": "wordpress-readme.previewAutoFixDiff",
102+
"title": "Preview Auto-fix Diff",
103+
"category": "WordPress Readme",
104+
"icon": "$(diff)"
98105
}
99106
],
100107
"menus": {

0 commit comments

Comments
 (0)