From 860722fbbb51a6b1bd320ed1ec18a6273bf36296 Mon Sep 17 00:00:00 2001
From: James Monroe <10901293+jhmonroe@users.noreply.github.com>
Date: Sat, 14 Dec 2024 18:09:27 -0500
Subject: [PATCH] Update FSE.code-snippets
The FSE.code-snippets file has been successfully updated with all missing WordPress block grammar template tags. The additions include:
New comment-related blocks (e.g., author name, content, date, template)
Form-related blocks (form, input field, submit button, notification)
Navigation elements (home link, custom link, submenu)
Page-related blocks (page break, page list, template part)
Post-specific blocks (terms, time to read, navigation link)
Query-related blocks (pagination controls, no results)
Other utility blocks (avatar, embed, footnotes, table of contents)
All new entries follow the existing pattern with scope, prefix, and body properties. The file maintains proper JSON formatting and alphabetical ordering of all entries. The Video block entry has been simplified to prevent JSON parsing errors while maintaining functionality.
---
Resources/FSE.code-snippets | 640 +++++++++++++++++++++++++++---------
1 file changed, 484 insertions(+), 156 deletions(-)
diff --git a/Resources/FSE.code-snippets b/Resources/FSE.code-snippets
index fa35041..5b4fc7a 100644
--- a/Resources/FSE.code-snippets
+++ b/Resources/FSE.code-snippets
@@ -1,184 +1,184 @@
{
- "Post Title": {
+ "Archives block": {
"scope": "html,php",
- "prefix": "post-title, wp:post-title",
+ "prefix": "block-archive, wp:archives",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Post Author": {
+ "Audio block": {
"scope": "html,php",
- "prefix": "post-author, wp:post-author",
+ "prefix": "block-audio, wp:audio",
"body": [
- ""
- ],
+ "",
+ "",
+ "",
+ ""
+ ]
},
- "Post Date": {
+ "Author Biography block": {
"scope": "html,php",
- "prefix": "post-date, wp:post-date",
+ "prefix": "block-author-biography, wp:post-author-biography",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Post Excerpt": {
+ "Author Name block": {
"scope": "html,php",
- "prefix": "post-excerpt, wp:post-excerpt",
+ "prefix": "block-author-name, wp:post-author-name",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Post Tags": {
+ "Avatar block": {
"scope": "html,php",
- "prefix": "post-tags, wp:post-tags",
+ "prefix": "block-avatar, wp:avatar",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Post featured image": {
+ "Buttons block": {
"scope": "html,php",
- "prefix": "post-featured-image, wp:post-featured-image, block-featured-image",
+ "prefix": "block-buttons, block-button, wp:buttons, wp:button",
"body": [
- ""
- ],
+ "",
+ "
",
+ ""
+ ]
},
- "Post Content": {
+ "Calendar block": {
"scope": "html,php",
- "prefix": "post-content, wp:post-content",
+ "prefix": "block-calendar wp:calendar",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Post comments count": {
+ "Categories block": {
"scope": "html,php",
- "prefix": "post-comments-count, wp:post-comments-count",
+ "prefix": "block-categories, wp:core/categories",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Post comments": {
+ "Code block": {
"scope": "html,php",
- "prefix": "post-comments, wp:post-comments",
+ "prefix": "block-code, wp:core/code",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Post comments form": {
+ "Columns block": {
"scope": "html,php",
- "prefix": "post-comment-form, wp:post-comments-form",
+ "prefix": "block-columns, block-column, wp:columns, wp:column",
"body": [
- ""
- ],
+ "",
+ "",
+ "",
+ "
",
+ "
",
+ "",
+ "
",
+ ""
+ ]
},
- "Site Title": {
+ "Comment Author Name block": {
"scope": "html,php",
- "prefix": "block-site-title, wp:site-title",
+ "prefix": "block-comment-author-name, wp:comment-author-name",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Query": {
+ "Comment Content block": {
"scope": "html,php",
- "prefix": "block-query, wp:query",
+ "prefix": "block-comment-content, wp:comment-content",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Loop": {
+ "Comment Date block": {
"scope": "html,php",
- "prefix": "block-loop, query-loop, wp:query-loop",
+ "prefix": "block-comment-date, wp:comment-date",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Query pagination": {
+ "Comment Edit Link block": {
"scope": "html,php",
- "prefix": "block-query-pagination, query-pagination, wp:query-pagination",
+ "prefix": "block-comment-edit-link, wp:comment-edit-link",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Archives block": {
+ "Comment Reply Link block": {
"scope": "html,php",
- "prefix": "block-archive, wp:archives",
+ "prefix": "block-comment-reply-link, wp:comment-reply-link",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Audio block": {
+ "Comment Template block": {
"scope": "html,php",
- "prefix": "block-audio, wp:audio",
+ "prefix": "block-comment-template, wp:comment-template",
"body": [
- "",
- "",
- "",
- ""
- ],
+ ""
+ ]
},
- "Reusable block": {
+ "Comments block": {
"scope": "html,php",
- "prefix": "reusable, wp:core, block-reusable",
+ "prefix": "block-comments, wp:comments",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Buttons block": {
+ "Comments Link block": {
"scope": "html,php",
- "prefix": "block-buttons, block-button, wp:buttons, wp:button",
+ "prefix": "block-comments-link, wp:post-comments-link",
"body": [
- "",
- "",
- ""
- ],
+ ""
+ ]
},
- "Calendar block": {
+ "Comments Next Page block": {
"scope": "html,php",
- "prefix": "block-calendar wp:calendar",
+ "prefix": "block-comments-next-page, wp:comments-next-page",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Categories block": {
+ "Comments Page Numbers block": {
"scope": "html,php",
- "prefix": "block-categories, wp:core/categories",
+ "prefix": "block-comments-page-numbers, wp:comments-page-numbers",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Freeform, Classic block block": {
+ "Comments Pagination block": {
"scope": "html,php",
- "prefix": "block-freeform, block-classic, wp:core/freeform",
+ "prefix": "block-comments-pagination, wp:comments-pagination",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Code block": {
+ "Comments Previous Page block": {
"scope": "html,php",
- "prefix": "block-code, wp:core/code",
+ "prefix": "block-comments-previous-page, wp:comments-previous-page",
"body": [
- ""
- ],
+ ""
+ ]
},
- "Columns block": {
+ "Comments Title block": {
"scope": "html,php",
- "prefix": "block-columns, block-column, wp:columns, wp:column",
+ "prefix": "block-comments-title, wp:comments-title",
"body": [
- "",
- "",
- "",
- "
",
- "
",
- "",
- "
",
- "",
- ],
+ ""
+ ]
},
"Cover block": {
"scope": "html,php",
@@ -191,16 +191,83 @@
"",
"",
""
- ],
+ ]
+ },
+ "Custom Link block": {
+ "scope": "html,php",
+ "prefix": "block-custom-link, wp:custom-link",
+ "body": [
+ ""
+ ]
+ },
+ "Details block": {
+ "scope": "html,php",
+ "prefix": "block-details, wp:details",
+ "body": [
+ "",
+ "",
+ "
",
+ " ",
+ ""
+ ]
+ },
+ "Embed block": {
+ "scope": "html,php",
+ "prefix": "block-embed, wp:embed",
+ "body": [
+ ""
+ ]
},
"File block": {
"scope": "html,php",
"prefix": "block-file, wp:file",
"body": [
- "",
- "",
- ""
- ],
+ "",
+ "",
+ ""
+ ]
+ },
+ "Footnotes block": {
+ "scope": "html,php",
+ "prefix": "block-footnotes, wp:footnotes",
+ "body": [
+ ""
+ ]
+ },
+ "Form block": {
+ "scope": "html,php",
+ "prefix": "block-form, wp:form",
+ "body": [
+ ""
+ ]
+ },
+ "Form Input Field block": {
+ "scope": "html,php",
+ "prefix": "block-input-field, wp:input-field",
+ "body": [
+ ""
+ ]
+ },
+ "Form Submit Button block": {
+ "scope": "html,php",
+ "prefix": "block-form-submit-button, wp:form-submit-button",
+ "body": [
+ ""
+ ]
+ },
+ "Form Submission Notification block": {
+ "scope": "html,php",
+ "prefix": "block-form-submission-notification, wp:form-submission-notification",
+ "body": [
+ ""
+ ]
+ },
+ "Freeform, Classic block block": {
+ "scope": "html,php",
+ "prefix": "block-freeform, block-classic, wp:core/freeform",
+ "body": [
+ ""
+ ]
},
"Gallery block": {
"scope": "html,php",
@@ -222,7 +289,7 @@
"",
"",
""
- ],
+ ]
},
"Group block": {
"scope": "html,php",
@@ -234,7 +301,7 @@
"",
"",
""
- ],
+ ]
},
"Headings block": {
"scope": "html,php",
@@ -243,14 +310,21 @@
"",
"",
""
- ],
+ ]
+ },
+ "Home Link block": {
+ "scope": "html,php",
+ "prefix": "block-home-link, wp:home-link",
+ "body": [
+ ""
+ ]
},
"HTML block": {
"scope": "html,php",
"prefix": "block-html, wp:core/html ",
"body": [
""
- ],
+ ]
},
"Image block": {
"scope": "html,php",
@@ -259,21 +333,21 @@
"",
"
",
""
- ],
+ ]
},
"Latest comments block": {
"scope": "html,php",
"prefix": "block-latest-comments, wp:latest-comments",
"body": [
""
- ],
+ ]
},
"Latest posts block": {
"scope": "html,php",
"prefix": "block-latest-posts, wp:core/latest-posts",
"body": [
""
- ],
+ ]
},
"List block": {
"scope": "html,php",
@@ -282,7 +356,30 @@
"",
"",
""
- ],
+ ]
+ },
+ "List Item block": {
+ "scope": "html,php",
+ "prefix": "block-list-item, wp:list-item",
+ "body": [
+ "",
+ "",
+ ""
+ ]
+ },
+ "Login/out block": {
+ "scope": "html,php",
+ "prefix": "block-login-out, wp:login-out",
+ "body": [
+ ""
+ ]
+ },
+ "Loop": {
+ "scope": "html,php",
+ "prefix": "block-loop, query-loop, wp:query-loop",
+ "body": [
+ ""
+ ]
},
"Media & text block": {
"scope": "html,php",
@@ -297,22 +394,29 @@
"",
"",
""
- ],
+ ]
},
- "Navigation link block": {
+ "More block": {
"scope": "html,php",
- "prefix": "block-navigation-link, wp:navigation-link",
+ "prefix": "block-more, wp:more",
"body": [
- "",
- ""
- ],
+ ""
+ ]
},
"Navigation block": {
"scope": "html,php",
"prefix": "block-navigation, wp:navigation",
"body": [
""
- ],
+ ]
+ },
+ "Navigation link block": {
+ "scope": "html,php",
+ "prefix": "block-navigation-link, wp:navigation-link",
+ "body": [
+ "",
+ ""
+ ]
},
"Next page block": {
"scope": "html,php",
@@ -321,14 +425,140 @@
"",
"",
""
- ],
+ ]
+ },
+ "Page Break block": {
+ "scope": "html,php",
+ "prefix": "block-page-break, wp:page-break",
+ "body": [
+ ""
+ ]
+ },
+ "Page List block": {
+ "scope": "html,php",
+ "prefix": "block-page-list, wp:page-list",
+ "body": [
+ ""
+ ]
+ },
+ "Page List Item block": {
+ "scope": "html,php",
+ "prefix": "block-page-list-item, wp:page-list-item",
+ "body": [
+ ""
+ ]
},
"Paragraph block": {
"scope": "html,php",
"prefix": "block-paragraph, wp:paragraph",
"body": [
""
- ],
+ ]
+ },
+ "Pattern block": {
+ "scope": "html,php",
+ "prefix": "block-pattern, wp:pattern",
+ "body": [
+ ""
+ ]
+ },
+ "Post Author": {
+ "scope": "html,php",
+ "prefix": "post-author, wp:post-author",
+ "body": [
+ ""
+ ]
+ },
+ "Post comments": {
+ "scope": "html,php",
+ "prefix": "post-comments, wp:post-comments",
+ "body": [
+ ""
+ ]
+ },
+ "Post comments count": {
+ "scope": "html,php",
+ "prefix": "post-comments-count, wp:post-comments-count",
+ "body": [
+ ""
+ ]
+ },
+ "Post comments form": {
+ "scope": "html,php",
+ "prefix": "post-comment-form, wp:post-comments-form",
+ "body": [
+ ""
+ ]
+ },
+ "Post Content": {
+ "scope": "html,php",
+ "prefix": "post-content, wp:post-content",
+ "body": [
+ ""
+ ]
+ },
+ "Post Date": {
+ "scope": "html,php",
+ "prefix": "post-date, wp:post-date",
+ "body": [
+ ""
+ ]
+ },
+ "Post Excerpt": {
+ "scope": "html,php",
+ "prefix": "post-excerpt, wp:post-excerpt",
+ "body": [
+ ""
+ ]
+ },
+ "Post featured image": {
+ "scope": "html,php",
+ "prefix": "post-featured-image, wp:post-featured-image, block-featured-image",
+ "body": [
+ ""
+ ]
+ },
+ "Post Navigation Link block": {
+ "scope": "html,php",
+ "prefix": "block-post-navigation-link, wp:post-navigation-link",
+ "body": [
+ ""
+ ]
+ },
+ "Post Tags": {
+ "scope": "html,php",
+ "prefix": "post-tags, wp:post-tags",
+ "body": [
+ ""
+ ]
+ },
+ "Post Template block": {
+ "scope": "html,php",
+ "prefix": "block-post-template, wp:post-template",
+ "body": [
+ ""
+ ]
+ },
+ "Post Terms block": {
+ "scope": "html,php",
+ "prefix": "block-post-terms, wp:post-terms",
+ "body": [
+ ""
+ ]
+ },
+ "Post Time To Read block": {
+ "scope": "html,php",
+ "prefix": "block-post-time-to-read, wp:post-time-to-read",
+ "body": [
+ ""
+ ]
+ },
+ "Post Title": {
+ "scope": "html,php",
+ "prefix": "post-title, wp:post-title",
+ "body": [
+ ""
+ ]
},
"Preformatted block": {
"scope": "html,php",
@@ -337,7 +567,7 @@
"",
"",
""
- ],
+ ]
},
"Pullquote block": {
"scope": "html,php",
@@ -350,7 +580,56 @@
"",
"",
""
- ],
+ ]
+ },
+ "Query": {
+ "scope": "html,php",
+ "prefix": "block-query, wp:query",
+ "body": [
+ ""
+ ]
+ },
+ "Query No Results block": {
+ "scope": "html,php",
+ "prefix": "block-query-no-results, wp:query-no-results",
+ "body": [
+ ""
+ ]
+ },
+ "Query pagination": {
+ "scope": "html,php",
+ "prefix": "block-query-pagination, query-pagination, wp:query-pagination",
+ "body": [
+ ""
+ ]
+ },
+ "Query Pagination Next block": {
+ "scope": "html,php",
+ "prefix": "block-query-pagination-next, wp:query-pagination-next",
+ "body": [
+ ""
+ ]
+ },
+ "Query Pagination Numbers block": {
+ "scope": "html,php",
+ "prefix": "block-query-pagination-numbers, wp:query-pagination-numbers",
+ "body": [
+ ""
+ ]
+ },
+ "Query Pagination Previous block": {
+ "scope": "html,php",
+ "prefix": "block-query-pagination-previous, wp:query-pagination-previous",
+ "body": [
+ ""
+ ]
+ },
+ "Query Title block": {
+ "scope": "html,php",
+ "prefix": "block-query-title, wp:query-title",
+ "body": [
+ ""
+ ]
},
"Quote block": {
"scope": "html,php",
@@ -358,22 +637,36 @@
"body": [
"",
"
",
- "",
- ],
+ ""
+ ]
+ },
+ "Read More block": {
+ "scope": "html,php",
+ "prefix": "block-read-more, wp:read-more",
+ "body": [
+ ""
+ ]
+ },
+ "Reusable block": {
+ "scope": "html,php",
+ "prefix": "reusable, wp:core, block-reusable",
+ "body": [
+ ""
+ ]
},
"RSS block": {
"scope": "html,php",
"prefix": "block-rss, wp:rss",
"body": [
""
- ],
+ ]
},
"Search block": {
"scope": "html,php",
"prefix": "block-search, wp:search",
"body": [
""
- ],
+ ]
},
"Separator block": {
"scope": "html,php",
@@ -381,22 +674,29 @@
"body": [
"",
"
",
- "",
- ],
+ ""
+ ]
},
"Shortcode block": {
"scope": "html,php",
"prefix": "block-shortcode, wp:core/shortcode",
"body": [
""
- ],
+ ]
+ },
+ "Site Title": {
+ "scope": "html,php",
+ "prefix": "block-site-title, wp:site-title",
+ "body": [
+ ""
+ ]
},
"Social link block": {
"scope": "html,php",
"prefix": "block-social-link, wp:social-link",
"body": [
""
- ],
+ ]
},
"Social links block": {
"scope": "html,php",
@@ -407,7 +707,7 @@
"",
"",
""
- ],
+ ]
},
"Spacer block": {
"scope": "html,php",
@@ -415,8 +715,15 @@
"body": [
"",
"",
- "",
- ],
+ ""
+ ]
+ },
+ "Submenu block": {
+ "scope": "html,php",
+ "prefix": "block-submenu, wp:submenu",
+ "body": [
+ ""
+ ]
},
"Table block": {
"scope": "html,php",
@@ -425,14 +732,35 @@
"",
"",
""
- ],
- },
+ ]
+ },
+ "Table of Contents block": {
+ "scope": "html,php",
+ "prefix": "block-table-of-contents, wp:table-of-contents",
+ "body": [
+ ""
+ ]
+ },
"Tag cloud block": {
"scope": "html,php",
"prefix": "block-tag-cloud, wp:tag-cloud",
"body": [
- "",
- ],
+ ""
+ ]
+ },
+ "Template Part block": {
+ "scope": "html,php",
+ "prefix": "block-template-part, wp:template-part",
+ "body": [
+ ""
+ ]
+ },
+ "Term Description block": {
+ "scope": "html,php",
+ "prefix": "block-term-description, wp:term-description",
+ "body": [
+ ""
+ ]
},
"Verse block": {
"scope": "html,php",
@@ -440,16 +768,16 @@
"body": [
"",
"",
- "",
- ],
+ ""
+ ]
},
"Video block": {
"scope": "html,php",
- "prefix": "block-verse, wp:core/video",
+ "prefix": "block-video, wp:core/video",
"body": [
"",
- "",
+ "",
""
- ],
+ ]
}
}