From 8f08591ab9aef61ed4f0d16117b77ba6c38c3472 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Fri, 19 Mar 2021 17:28:49 +1300 Subject: [PATCH 1/4] Add snippet for removing drop cap (aka fancy first letter). --- .../homebrew/editor/snippetbar/snippets/snippets.js | 9 +++++++++ .../editor/snippetbar/snippetsLegacy/snippets.js | 11 +++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js index 73246c5e3..4d55a7216 100644 --- a/client/homebrew/editor/snippetbar/snippets/snippets.js +++ b/client/homebrew/editor/snippetbar/snippets/snippets.js @@ -77,6 +77,15 @@ module.exports = [ icon : 'fas fa-book', gen : TableOfContentsGen }, + { + name : 'Remove Drop Cap', + icon : 'fas fa-remove-format', + gen : '' + }, ] }, diff --git a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js index b8410bd9f..234b10fed 100644 --- a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js +++ b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js @@ -77,8 +77,15 @@ module.exports = [ icon : 'fas fa-book', gen : TableOfContentsGen }, - - + { + name : 'Remove Drop Cap', + icon : 'fas fa-remove-format', + gen : '' + }, ] }, From 7491f463b438138f39713d9aad7a9d17ac8c5c42 Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Fri, 19 Mar 2021 17:32:27 +1300 Subject: [PATCH 2/4] Lint fixes. --- client/homebrew/editor/snippetbar/snippets/snippets.js | 2 +- client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js index 4d55a7216..3ad8783dd 100644 --- a/client/homebrew/editor/snippetbar/snippets/snippets.js +++ b/client/homebrew/editor/snippetbar/snippets/snippets.js @@ -80,7 +80,7 @@ module.exports = [ { name : 'Remove Drop Cap', icon : 'fas fa-remove-format', - gen : '' }, + { + name : 'Tweak Drop Cap', + icon : 'fas fa-sliders-h', + gen : '' + }, ] }, diff --git a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js index 2d343a2f8..2d4e2d0e4 100644 --- a/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js +++ b/client/homebrew/editor/snippetbar/snippetsLegacy/snippets.js @@ -86,6 +86,20 @@ module.exports = [ ' }\n' + '' }, + { + name : 'Tweak Drop Cap', + icon : 'fas fa-sliders-h', + gen : '' + }, ] }, From 089414c9ffdff8e4ab1fd7ec1c3db3b4544e8e4a Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Sat, 20 Mar 2021 23:48:55 -0400 Subject: [PATCH 4/4] Fix v3 snippet --- client/homebrew/editor/snippetbar/snippets/snippets.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/homebrew/editor/snippetbar/snippets/snippets.js b/client/homebrew/editor/snippetbar/snippets/snippets.js index eaa831fb3..a4ff6d96a 100644 --- a/client/homebrew/editor/snippetbar/snippets/snippets.js +++ b/client/homebrew/editor/snippetbar/snippets/snippets.js @@ -81,7 +81,7 @@ module.exports = [ name : 'Remove Drop Cap', icon : 'fas fa-remove-format', gen : '' @@ -91,10 +91,10 @@ module.exports = [ icon : 'fas fa-sliders-h', gen : '