From 19f7256bdbcd999fbb515dc5f1d4dfef64eba88f Mon Sep 17 00:00:00 2001 From: Mauro Reis Vieira Date: Tue, 14 Feb 2023 19:38:28 +0000 Subject: [PATCH] feat: add support for `Better Find Buffer` --- package.json | 2 +- schemes/Meetio Darker.sublime-color-scheme | 64 +++++++++++++++++++ schemes/Meetio Deepocean.sublime-color-scheme | 64 +++++++++++++++++++ schemes/Meetio Lighter.sublime-color-scheme | 64 +++++++++++++++++++ schemes/Meetio Palenight.sublime-color-scheme | 64 +++++++++++++++++++ src/scheme.ts | 2 +- 6 files changed, 258 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 255d9f4..141ab89 100755 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "conventional-changelog-cli": "^2.2.2", "@meetio/meetio-colors": "^4.1.1", "@meetio/meetio-icons": "^1.10.0", - "@meetio/scheme-generator": "^3.3.2", + "@meetio/scheme-generator": "^3.4.0", "babel-eslint": "^10.1.0", "@typescript-eslint/eslint-plugin": "5.43.0", "@typescript-eslint/parser": "5.43.0", diff --git a/schemes/Meetio Darker.sublime-color-scheme b/schemes/Meetio Darker.sublime-color-scheme index 6181fba..bfef627 100644 --- a/schemes/Meetio Darker.sublime-color-scheme +++ b/schemes/Meetio Darker.sublime-color-scheme @@ -764,6 +764,70 @@ "scope": "source.yaml string.unquoted", "foreground": "var(green)" }, + { + "name": "Better Find Buffer - Total Files Count", + "scope": "variable.total_files_count.find-in-files", + "foreground": "var(blue)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Query Files Count", + "scope": "string.query.find-in-files", + "foreground": "var(green)", + "font_style": "" + }, + { + "name": "Better Find Buffer - Match Count", + "scope": "variable.matched_count.find-in-files", + "foreground": "var(green)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Match Files Count", + "scope": "variable.matched_files_count.find-in-files", + "foreground": "var(blue)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - No Match", + "scope": "variable.no_matches.find-in-files", + "foreground": "var(red)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Line Number", + "scope": "constant.numeric.line-number.find-in-files", + "foreground": "color(var(blue) alpha(0.2))" + }, + { + "name": "Better Find Buffer - Match", + "scope": "match.find-in-files", + "background": "color(var(blue) alpha(0.2))" + }, + { + "name": "Better Find Buffer - Line Number Match", + "scope": "constant.numeric.line-number.match.find-in-files", + "foreground": "var(accent)", + "background": "color(var(blue) alpha(0.1))" + }, + { + "name": "Better Find Buffer - Punctuation Line Number Match", + "scope": "punctuation.line-number.match.find-in-files", + "foreground": "color(var(blue) alpha(0.1))", + "background": "color(var(blue) alpha(0.1))" + }, + { + "name": "Better Find Buffer - File name", + "scope": "entity.name.filename.find-in-files", + "foreground": "var(foreground)", + "background": "var(accent)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Footer", + "scope": "footer.find-in-files", + "background": "var(background)" + }, { "name": "PYTHON - Parameters Annotation ", "scope": "source.python meta.function.parameters.annotation.python meta.qualified-name.python meta.generic-name.python", diff --git a/schemes/Meetio Deepocean.sublime-color-scheme b/schemes/Meetio Deepocean.sublime-color-scheme index eb7ed04..cb3a92a 100644 --- a/schemes/Meetio Deepocean.sublime-color-scheme +++ b/schemes/Meetio Deepocean.sublime-color-scheme @@ -764,6 +764,70 @@ "scope": "source.yaml string.unquoted", "foreground": "var(green)" }, + { + "name": "Better Find Buffer - Total Files Count", + "scope": "variable.total_files_count.find-in-files", + "foreground": "var(blue)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Query Files Count", + "scope": "string.query.find-in-files", + "foreground": "var(green)", + "font_style": "" + }, + { + "name": "Better Find Buffer - Match Count", + "scope": "variable.matched_count.find-in-files", + "foreground": "var(green)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Match Files Count", + "scope": "variable.matched_files_count.find-in-files", + "foreground": "var(blue)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - No Match", + "scope": "variable.no_matches.find-in-files", + "foreground": "var(red)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Line Number", + "scope": "constant.numeric.line-number.find-in-files", + "foreground": "color(var(blue) alpha(0.2))" + }, + { + "name": "Better Find Buffer - Match", + "scope": "match.find-in-files", + "background": "color(var(blue) alpha(0.2))" + }, + { + "name": "Better Find Buffer - Line Number Match", + "scope": "constant.numeric.line-number.match.find-in-files", + "foreground": "var(accent)", + "background": "color(var(blue) alpha(0.1))" + }, + { + "name": "Better Find Buffer - Punctuation Line Number Match", + "scope": "punctuation.line-number.match.find-in-files", + "foreground": "color(var(blue) alpha(0.1))", + "background": "color(var(blue) alpha(0.1))" + }, + { + "name": "Better Find Buffer - File name", + "scope": "entity.name.filename.find-in-files", + "foreground": "var(foreground)", + "background": "var(accent)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Footer", + "scope": "footer.find-in-files", + "background": "var(background)" + }, { "name": "PYTHON - Parameters Annotation ", "scope": "source.python meta.function.parameters.annotation.python meta.qualified-name.python meta.generic-name.python", diff --git a/schemes/Meetio Lighter.sublime-color-scheme b/schemes/Meetio Lighter.sublime-color-scheme index 75c239e..08ce23a 100644 --- a/schemes/Meetio Lighter.sublime-color-scheme +++ b/schemes/Meetio Lighter.sublime-color-scheme @@ -764,6 +764,70 @@ "scope": "source.yaml string.unquoted", "foreground": "var(green)" }, + { + "name": "Better Find Buffer - Total Files Count", + "scope": "variable.total_files_count.find-in-files", + "foreground": "var(blue)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Query Files Count", + "scope": "string.query.find-in-files", + "foreground": "var(green)", + "font_style": "" + }, + { + "name": "Better Find Buffer - Match Count", + "scope": "variable.matched_count.find-in-files", + "foreground": "var(green)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Match Files Count", + "scope": "variable.matched_files_count.find-in-files", + "foreground": "var(blue)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - No Match", + "scope": "variable.no_matches.find-in-files", + "foreground": "var(red)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Line Number", + "scope": "constant.numeric.line-number.find-in-files", + "foreground": "color(var(blue) alpha(0.2))" + }, + { + "name": "Better Find Buffer - Match", + "scope": "match.find-in-files", + "background": "color(var(blue) alpha(0.2))" + }, + { + "name": "Better Find Buffer - Line Number Match", + "scope": "constant.numeric.line-number.match.find-in-files", + "foreground": "var(accent)", + "background": "color(var(blue) alpha(0.1))" + }, + { + "name": "Better Find Buffer - Punctuation Line Number Match", + "scope": "punctuation.line-number.match.find-in-files", + "foreground": "color(var(blue) alpha(0.1))", + "background": "color(var(blue) alpha(0.1))" + }, + { + "name": "Better Find Buffer - File name", + "scope": "entity.name.filename.find-in-files", + "foreground": "var(foreground)", + "background": "var(accent)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Footer", + "scope": "footer.find-in-files", + "background": "var(background)" + }, { "name": "PYTHON - Parameters Annotation ", "scope": "source.python meta.function.parameters.annotation.python meta.qualified-name.python meta.generic-name.python", diff --git a/schemes/Meetio Palenight.sublime-color-scheme b/schemes/Meetio Palenight.sublime-color-scheme index 55d4259..8919c59 100644 --- a/schemes/Meetio Palenight.sublime-color-scheme +++ b/schemes/Meetio Palenight.sublime-color-scheme @@ -764,6 +764,70 @@ "scope": "source.yaml string.unquoted", "foreground": "var(green)" }, + { + "name": "Better Find Buffer - Total Files Count", + "scope": "variable.total_files_count.find-in-files", + "foreground": "var(blue)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Query Files Count", + "scope": "string.query.find-in-files", + "foreground": "var(green)", + "font_style": "" + }, + { + "name": "Better Find Buffer - Match Count", + "scope": "variable.matched_count.find-in-files", + "foreground": "var(green)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Match Files Count", + "scope": "variable.matched_files_count.find-in-files", + "foreground": "var(blue)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - No Match", + "scope": "variable.no_matches.find-in-files", + "foreground": "var(red)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Line Number", + "scope": "constant.numeric.line-number.find-in-files", + "foreground": "color(var(blue) alpha(0.2))" + }, + { + "name": "Better Find Buffer - Match", + "scope": "match.find-in-files", + "background": "color(var(blue) alpha(0.2))" + }, + { + "name": "Better Find Buffer - Line Number Match", + "scope": "constant.numeric.line-number.match.find-in-files", + "foreground": "var(accent)", + "background": "color(var(blue) alpha(0.1))" + }, + { + "name": "Better Find Buffer - Punctuation Line Number Match", + "scope": "punctuation.line-number.match.find-in-files", + "foreground": "color(var(blue) alpha(0.1))", + "background": "color(var(blue) alpha(0.1))" + }, + { + "name": "Better Find Buffer - File name", + "scope": "entity.name.filename.find-in-files", + "foreground": "var(foreground)", + "background": "var(accent)", + "font_style": "bold" + }, + { + "name": "Better Find Buffer - Footer", + "scope": "footer.find-in-files", + "background": "var(background)" + }, { "name": "PYTHON - Parameters Annotation ", "scope": "source.python meta.function.parameters.annotation.python meta.qualified-name.python meta.generic-name.python", diff --git a/src/scheme.ts b/src/scheme.ts index 8775e90..621cf28 100644 --- a/src/scheme.ts +++ b/src/scheme.ts @@ -39,7 +39,7 @@ export function getScheme(theme: Theme): SchemeSetting { ui: { ...ui, ...{ - line_diff_width: "3", + line_diff_width: '3', }, }, rules: [