From 50658710a54e8ada6c1ae9e45f95f2ebb084849d Mon Sep 17 00:00:00 2001 From: Rowan Gillson Date: Sun, 2 Nov 2025 12:50:55 +1000 Subject: [PATCH 1/2] feat(port): add bat port --- packages/bat/README.md | 96 ++++++ packages/bat/aura-theme-soft.tmTheme | 381 +++++++++++++++++++++ packages/bat/aura-theme.tmTheme | 381 +++++++++++++++++++++ src/ports/bat/index.ts | 39 +++ src/ports/bat/templates/README.md | 66 ++++ src/ports/bat/templates/aura-theme.tmTheme | 381 +++++++++++++++++++++ 6 files changed, 1344 insertions(+) create mode 100644 packages/bat/README.md create mode 100644 packages/bat/aura-theme-soft.tmTheme create mode 100644 packages/bat/aura-theme.tmTheme create mode 100644 src/ports/bat/index.ts create mode 100644 src/ports/bat/templates/README.md create mode 100644 src/ports/bat/templates/aura-theme.tmTheme diff --git a/packages/bat/README.md b/packages/bat/README.md new file mode 100644 index 0000000..3ec9812 --- /dev/null +++ b/packages/bat/README.md @@ -0,0 +1,96 @@ +

+ Aura Theme +

+ +

+✨ A beautiful dark theme for Bat and other apps +

+ + + + patreon url + + + + + version + +

+ +

+ preview +

+ + +# Installation + +1. Ensure you have [bat](https://github.com/sharkdp/bat) installed. +2. Create the themes directory for bat if it doesn't exist: + + ```sh + mkdir -p ~/.config/bat/themes + ``` + +3. Fetch the `aura-theme.tmTheme` file from the [repository](https://github.com/daltonmenezes/aura-theme) with the following command: + + ```sh + curl -o ~/.config/bat/themes/aura-theme.tmTheme https://raw.githubusercontent.com/daltonmenezes/aura-theme/main/packages/bat/aura-theme.tmTheme + ``` + + **NOTE**: You can replace `aura-theme.tmTheme` with `aura-theme-soft.tmTheme` to use the Soft Dark variant. + +4. Clean and rebuild bat's cache to recognize the new theme: + + ```sh + bat --cache clear && bat --cache rebuild + ``` + +5. Configure bat to use the Aura Theme by default by adding the following line to your `~/.config/bat/config` file (create the file if it doesn't exist): + + ```toml + --theme="aura-theme" + ``` + + alternatively, you can set the `BAT_THEME` environment variable in your shell configuration file (e.g., `~/.bashrc`, `~/.zshrc`): + + ```sh + export BAT_THEME="aura-theme" + ``` + + **NOTE**: Use `aura-theme-soft` if you opted for the Soft Dark variant. + +
+Done! ✨ 🎉 +
+
+ +# Contributors + + + + + + + + + + + + + + + +
+

+ + + +

+

+ + + +

Rowan GillsonDalton Menezes
+ +# License +[MIT © Dalton Menezes](https://github.com/daltonmenezes/aura-theme/blob/main/LICENSE) diff --git a/packages/bat/aura-theme-soft.tmTheme b/packages/bat/aura-theme-soft.tmTheme new file mode 100644 index 0000000..1eeda02 --- /dev/null +++ b/packages/bat/aura-theme-soft.tmTheme @@ -0,0 +1,381 @@ + + + + + + name + Aura Theme Soft Dark + settings + + + settings + + background + #15141b + caret + #bdbdbd + foreground + #bdbdbd + lineHighlight + #a394f033 + selection + #a394f033 + findHighlight + #3ea7847f + findHighlightForeground + #bdbdbd + selectionBorder + #af8aff7f + bracketsForeground + #54c59f + bracketsOptions + underline + bracketContentsForeground + #54c59f + bracketContentsOptions + underline + tagsOptions + stippled_underline + + + + + name + Comment + scope + + comment, + string.quoted.multiline.graphql + + settings + + foreground + #6d6d6d + fontStyle + + + + + + name + String + scope + + constant.other.js, + string, + constant.numeric, + diff.inserted, + constant.language.boolean, + punctuation.separator.path.html, + meta.link.inline.description.markdown, + punctuation.separator.path.css, + entity.other.attribute-name.id.css, + support.type.graphql, + source.tsx meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js, + source.js.jsx meta.jsx source.js.jsx meta.jsx, + source.js.jsx meta.jsx meta.jsx meta.jsx meta.jsx meta.jsx, + source.js meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js + + settings + + foreground + #54c59f + + + + + name + Class name + scope + + entity.name.type, + entity.name.interface, + meta.function-call.constructor, + punctuation.section.interpolation, + support.class, + support.other.namespace, + storage.type.namespace, + storage.type, + meta.function.parameters.js, + entity.other.inherited-class, + meta.path, + entity.name.class, + entity.other.attribute-name.class.css + + settings + + fontStyle + normal + foreground + #6cb2c7 + + + + + name + Library constant + scope + + punctuation.definition.italic.begin.markdown, + punctuation.definition.italic.end.markdown, + punctuation.definition.list_item.markdown, + punctuation.definition.bold.begin.markdown, + punctuation.definition.bold.end.markdown, + punctuation.definition.heading.begin.markdown, + punctuation.definition.raw.code-fence.begin.markdown, + punctuation.definition.raw.code-fence.end.markdown, + storage.type.js, meta.mapping.key.json + string.quoted.double.json, + variable.type.graphql, + entity.name.type.object.graphql, + storage.modifier, + keyword, + constant.character.escaped, + constant.character.escape, + string source, + string + source.ruby, + constant.character, + constant.other, + constant.language, + entity.name.tag, + variable.language, + support.type, + punctuation.separator.type, + markup.underline.link.markdown, + constant.numeric.suffix.css, + punctuation.definition.blockquote.markdown, + entity.name.function.constructor.js, + support.constant.node.js + + settings + + fontStyle + + foreground + #8464c6 + + + + + name + diff.deleted + scope + + markup.deleted + + settings + + foreground + #c55858 + + + + + name + Punctuation Accessor + scope + + source.ts + meta.export.js + meta.type-alias.js + meta.block.js + variable.other.readwrite.js, + source.ts + meta.interface.js + meta.block.js + variable.other.readwrite.js, + meta.tag.attributes + entity.other.attribute-name, + meta.mapping.key, + meta.binding.destructuring.mapping, + storage.type.class, + meta.property.object, + punctuation.separator, + punctuation.terminator.statement, + storage.modifier.array, + punctuation.section, + source.ts + meta.export.js + meta.class.js + meta.block.js + source.ts + meta.export.js + meta.mapping.js + punctuation.separator.comma.js, + punctuation.section.embedded.begin, + punctuation.section.embedded.end, + punctuation.separator.namespace, + meta.function.return-type, + punctuation.accessor, + source.ts + meta.export.js + meta.mapping.js + meta.mapping.key.js, + meta.property-name.css support.type.property-name.css, + punctuation.definition.pseudo-class.css, + entity.other.pseudo-class.css, + source.ts meta.type-alias.js meta.block.js variable.other.readwrite.js, + entity.name.field.graphql, + entity.other.attribute-name.(.*).html, + + settings + + foreground + #c17ac8 + + + + + name + Punctuation Section Block Begin + scope + + punctuation.section.block, + punctuation.section.group, + variable.parameter.function, + variable.other, + string.unquoted.css, + constant.other.language-name.markdown, + source.ts punctuation.terminator.statement.empty.js, + source.ts meta.type-alias.js meta.block.js punctuation.separator.js, + punctuation.terminator.statement.js, + source.tsx meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js punctuation, + source.js.jsx entity.name.type, + source.js meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js punctuation, + punctuation.section.(.*).(.*).json, + + settings + + foreground + #bdbdbd + + + + + name + Variable Function + scope + + entity.name.section.markdown, + entity.name.type.scalar.graphql, + variable.language.super, + entity.name.function, + support.function, + variable.function, + source.tsx + meta.export.js + meta.function.js + meta.block.js + meta.group.js + meta.jsx.js + meta.tag.name.js + entity.name.tag.js, + source.tsx + meta.function-call.method.js + meta.group.js + meta.jsx.js + meta.tag.name.js + entity.name.tag.js, + meta.function-call.constructor.js, + entity.name.tag.jsx, + source.js meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js meta.tag.name.js entity.name.tag.js + + settings + + foreground + #c7a06f + + + + + name + Support Other Namespace + scope + + support.class, + support.other.namespace + + settings + + fontStyle + italic + + + + + name + Variable + scope + variable + settings + + fontStyle + + + + + + name + Function argument + scope + variable.parameter + settings + + fontStyle + italic + + + + + name + Storage type + scope + + storage.type.namespace, + storage.type + + settings + + fontStyle + italic + + + + + name + Italics + scope + + storage.type.class, + markup.italic.markdown + + settings + + fontStyle + italic + + + + + name + Bold + scope + markup.bold.markdown + settings + + fontStyle + bold + + + + uuid + 9409d745-9273-4b52-92c7-54fcb236c5f5 + colorSpaceName + sRGB + semanticClass + theme.AuraTheme + author + Dalton Menezes + + diff --git a/packages/bat/aura-theme.tmTheme b/packages/bat/aura-theme.tmTheme new file mode 100644 index 0000000..6e09aeb --- /dev/null +++ b/packages/bat/aura-theme.tmTheme @@ -0,0 +1,381 @@ + + + + + + name + Aura Theme + settings + + + settings + + background + #15141b + caret + #edecee + foreground + #edecee + lineHighlight + #a394f033 + selection + #a394f033 + findHighlight + #3ea7847f + findHighlightForeground + #edecee + selectionBorder + #af8aff7f + bracketsForeground + #61ffca + bracketsOptions + underline + bracketContentsForeground + #61ffca + bracketContentsOptions + underline + tagsOptions + stippled_underline + + + + + name + Comment + scope + + comment, + string.quoted.multiline.graphql + + settings + + foreground + #6d6d6d + fontStyle + + + + + + name + String + scope + + constant.other.js, + string, + constant.numeric, + diff.inserted, + constant.language.boolean, + punctuation.separator.path.html, + meta.link.inline.description.markdown, + punctuation.separator.path.css, + entity.other.attribute-name.id.css, + support.type.graphql, + source.tsx meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js, + source.js.jsx meta.jsx source.js.jsx meta.jsx, + source.js.jsx meta.jsx meta.jsx meta.jsx meta.jsx meta.jsx, + source.js meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js + + settings + + foreground + #61ffca + + + + + name + Class name + scope + + entity.name.type, + entity.name.interface, + meta.function-call.constructor, + punctuation.section.interpolation, + support.class, + support.other.namespace, + storage.type.namespace, + storage.type, + meta.function.parameters.js, + entity.other.inherited-class, + meta.path, + entity.name.class, + entity.other.attribute-name.class.css + + settings + + fontStyle + normal + foreground + #82e2ff + + + + + name + Library constant + scope + + punctuation.definition.italic.begin.markdown, + punctuation.definition.italic.end.markdown, + punctuation.definition.list_item.markdown, + punctuation.definition.bold.begin.markdown, + punctuation.definition.bold.end.markdown, + punctuation.definition.heading.begin.markdown, + punctuation.definition.raw.code-fence.begin.markdown, + punctuation.definition.raw.code-fence.end.markdown, + storage.type.js, meta.mapping.key.json + string.quoted.double.json, + variable.type.graphql, + entity.name.type.object.graphql, + storage.modifier, + keyword, + constant.character.escaped, + constant.character.escape, + string source, + string + source.ruby, + constant.character, + constant.other, + constant.language, + entity.name.tag, + variable.language, + support.type, + punctuation.separator.type, + markup.underline.link.markdown, + constant.numeric.suffix.css, + punctuation.definition.blockquote.markdown, + entity.name.function.constructor.js, + support.constant.node.js + + settings + + fontStyle + + foreground + #a277ff + + + + + name + diff.deleted + scope + + markup.deleted + + settings + + foreground + #ff6767 + + + + + name + Punctuation Accessor + scope + + source.ts + meta.export.js + meta.type-alias.js + meta.block.js + variable.other.readwrite.js, + source.ts + meta.interface.js + meta.block.js + variable.other.readwrite.js, + meta.tag.attributes + entity.other.attribute-name, + meta.mapping.key, + meta.binding.destructuring.mapping, + storage.type.class, + meta.property.object, + punctuation.separator, + punctuation.terminator.statement, + storage.modifier.array, + punctuation.section, + source.ts + meta.export.js + meta.class.js + meta.block.js + source.ts + meta.export.js + meta.mapping.js + punctuation.separator.comma.js, + punctuation.section.embedded.begin, + punctuation.section.embedded.end, + punctuation.separator.namespace, + meta.function.return-type, + punctuation.accessor, + source.ts + meta.export.js + meta.mapping.js + meta.mapping.key.js, + meta.property-name.css support.type.property-name.css, + punctuation.definition.pseudo-class.css, + entity.other.pseudo-class.css, + source.ts meta.type-alias.js meta.block.js variable.other.readwrite.js, + entity.name.field.graphql, + entity.other.attribute-name.(.*).html, + + settings + + foreground + #f694ff + + + + + name + Punctuation Section Block Begin + scope + + punctuation.section.block, + punctuation.section.group, + variable.parameter.function, + variable.other, + string.unquoted.css, + constant.other.language-name.markdown, + source.ts punctuation.terminator.statement.empty.js, + source.ts meta.type-alias.js meta.block.js punctuation.separator.js, + punctuation.terminator.statement.js, + source.tsx meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js punctuation, + source.js.jsx entity.name.type, + source.js meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js punctuation, + punctuation.section.(.*).(.*).json, + + settings + + foreground + #edecee + + + + + name + Variable Function + scope + + entity.name.section.markdown, + entity.name.type.scalar.graphql, + variable.language.super, + entity.name.function, + support.function, + variable.function, + source.tsx + meta.export.js + meta.function.js + meta.block.js + meta.group.js + meta.jsx.js + meta.tag.name.js + entity.name.tag.js, + source.tsx + meta.function-call.method.js + meta.group.js + meta.jsx.js + meta.tag.name.js + entity.name.tag.js, + meta.function-call.constructor.js, + entity.name.tag.jsx, + source.js meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js meta.tag.name.js entity.name.tag.js + + settings + + foreground + #ffca85 + + + + + name + Support Other Namespace + scope + + support.class, + support.other.namespace + + settings + + fontStyle + italic + + + + + name + Variable + scope + variable + settings + + fontStyle + + + + + + name + Function argument + scope + variable.parameter + settings + + fontStyle + italic + + + + + name + Storage type + scope + + storage.type.namespace, + storage.type + + settings + + fontStyle + italic + + + + + name + Italics + scope + + storage.type.class, + markup.italic.markdown + + settings + + fontStyle + italic + + + + + name + Bold + scope + markup.bold.markdown + settings + + fontStyle + bold + + + + uuid + 9409d745-9273-4b52-92c7-54fcb236c5f5 + colorSpaceName + sRGB + semanticClass + theme.AuraTheme + author + Dalton Menezes + + diff --git a/src/ports/bat/index.ts b/src/ports/bat/index.ts new file mode 100644 index 0000000..1ee9078 --- /dev/null +++ b/src/ports/bat/index.ts @@ -0,0 +1,39 @@ +import { AuraAPI } from 'core' +import { resolve } from 'path' + +export async function BatPort(Aura: AuraAPI) { + const { createPort, createReadme, colorSchemes, constants } = Aura + const templateFolder = resolve(__dirname, 'templates') + const { info } = constants + + const portName = 'Bat' + const version = '1.0.0' + const previewURL = `https://github.com/${info.author.username}/assets/blob/master/images/${info.slug}/aura-bat-preview.png?raw=true` + + await createPort({ + template: resolve(templateFolder, `${info.slug}.tmTheme`), + replacements: { + ...colorSchemes.dark, + ...info, + }, + }) + + await createPort({ + template: resolve(templateFolder, `${info.slug}.tmTheme`), + outputFileName: `${info.slug}-soft`, + replacements: { + ...colorSchemes.darkSoft, + ...info, + displayName: `${info.shortName} Theme Soft Dark`, + }, + }) + + await createReadme({ + template: resolve(templateFolder, 'README.md'), + replacements: { + portName, + version, + previewURL, + }, + }) +} diff --git a/src/ports/bat/templates/README.md b/src/ports/bat/templates/README.md new file mode 100644 index 0000000..0895357 --- /dev/null +++ b/src/ports/bat/templates/README.md @@ -0,0 +1,66 @@ +{{{ basic-heading }}} + +# Installation + +1. Ensure you have [bat](https://github.com/sharkdp/bat) installed. +2. Create the themes directory for bat if it doesn't exist: + + ```sh + mkdir -p ~/.config/bat/themes + ``` + +3. Fetch the `aura-theme.tmTheme` file from the [repository](https://github.com/daltonmenezes/aura-theme) with the following command: + + ```sh + curl -o ~/.config/bat/themes/aura-theme.tmTheme https://raw.githubusercontent.com/daltonmenezes/aura-theme/main/packages/bat/aura-theme.tmTheme + ``` + + **NOTE**: You can replace `aura-theme.tmTheme` with `aura-theme-soft.tmTheme` to use the Soft Dark variant. + +4. Clean and rebuild bat's cache to recognize the new theme: + + ```sh + bat --cache clear && bat --cache rebuild + ``` + +5. Configure bat to use the Aura Theme by default by adding the following line to your `~/.config/bat/config` file (create the file if it doesn't exist): + + ```toml + --theme="aura-theme" + ``` + + alternatively, you can set the `BAT_THEME` environment variable in your shell configuration file (e.g., `~/.bashrc`, `~/.zshrc`): + + ```sh + export BAT_THEME="aura-theme" + ``` + + **NOTE**: Use `aura-theme-soft` if you opted for the Soft Dark variant. + +{{{ done }}} + +# Contributors + + + + + + {{{ author-thead }}} + + + + + + + {{{ author-tbody }}} + + +
+

+ + + +

+
Rowan Gillson
+ +{{{ footer }}} diff --git a/src/ports/bat/templates/aura-theme.tmTheme b/src/ports/bat/templates/aura-theme.tmTheme new file mode 100644 index 0000000..4aba1cf --- /dev/null +++ b/src/ports/bat/templates/aura-theme.tmTheme @@ -0,0 +1,381 @@ + + + + + + name + {{ displayName }} + settings + + + settings + + background + {{ accent12 }} + caret + {{ accent7 }} + foreground + {{ accent7 }} + lineHighlight + {{ accent17 }} + selection + {{ accent17 }} + findHighlight + {{ accent19 }} + findHighlightForeground + {{ accent7 }} + selectionBorder + {{ accent14 }} + bracketsForeground + {{ accent2 }} + bracketsOptions + underline + bracketContentsForeground + {{ accent2 }} + bracketContentsOptions + underline + tagsOptions + stippled_underline + + + + + name + Comment + scope + + comment, + string.quoted.multiline.graphql + + settings + + foreground + {{ accent8 }} + fontStyle + + + + + + name + String + scope + + constant.other.js, + string, + constant.numeric, + diff.inserted, + constant.language.boolean, + punctuation.separator.path.html, + meta.link.inline.description.markdown, + punctuation.separator.path.css, + entity.other.attribute-name.id.css, + support.type.graphql, + source.tsx meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js, + source.js.jsx meta.jsx source.js.jsx meta.jsx, + source.js.jsx meta.jsx meta.jsx meta.jsx meta.jsx meta.jsx, + source.js meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js + + settings + + foreground + {{ accent2 }} + + + + + name + Class name + scope + + entity.name.type, + entity.name.interface, + meta.function-call.constructor, + punctuation.section.interpolation, + support.class, + support.other.namespace, + storage.type.namespace, + storage.type, + meta.function.parameters.js, + entity.other.inherited-class, + meta.path, + entity.name.class, + entity.other.attribute-name.class.css + + settings + + fontStyle + normal + foreground + {{ accent32 }} + + + + + name + Library constant + scope + + punctuation.definition.italic.begin.markdown, + punctuation.definition.italic.end.markdown, + punctuation.definition.list_item.markdown, + punctuation.definition.bold.begin.markdown, + punctuation.definition.bold.end.markdown, + punctuation.definition.heading.begin.markdown, + punctuation.definition.raw.code-fence.begin.markdown, + punctuation.definition.raw.code-fence.end.markdown, + storage.type.js, meta.mapping.key.json + string.quoted.double.json, + variable.type.graphql, + entity.name.type.object.graphql, + storage.modifier, + keyword, + constant.character.escaped, + constant.character.escape, + string source, + string + source.ruby, + constant.character, + constant.other, + constant.language, + entity.name.tag, + variable.language, + support.type, + punctuation.separator.type, + markup.underline.link.markdown, + constant.numeric.suffix.css, + punctuation.definition.blockquote.markdown, + entity.name.function.constructor.js, + support.constant.node.js + + settings + + fontStyle + + foreground + {{ accent1 }} + + + + + name + diff.deleted + scope + + markup.deleted + + settings + + foreground + {{ accent5 }} + + + + + name + Punctuation Accessor + scope + + source.ts + meta.export.js + meta.type-alias.js + meta.block.js + variable.other.readwrite.js, + source.ts + meta.interface.js + meta.block.js + variable.other.readwrite.js, + meta.tag.attributes + entity.other.attribute-name, + meta.mapping.key, + meta.binding.destructuring.mapping, + storage.type.class, + meta.property.object, + punctuation.separator, + punctuation.terminator.statement, + storage.modifier.array, + punctuation.section, + source.ts + meta.export.js + meta.class.js + meta.block.js + source.ts + meta.export.js + meta.mapping.js + punctuation.separator.comma.js, + punctuation.section.embedded.begin, + punctuation.section.embedded.end, + punctuation.separator.namespace, + meta.function.return-type, + punctuation.accessor, + source.ts + meta.export.js + meta.mapping.js + meta.mapping.key.js, + meta.property-name.css support.type.property-name.css, + punctuation.definition.pseudo-class.css, + entity.other.pseudo-class.css, + source.ts meta.type-alias.js meta.block.js variable.other.readwrite.js, + entity.name.field.graphql, + entity.other.attribute-name.(.*).html, + + settings + + foreground + {{ accent6 }} + + + + + name + Punctuation Section Block Begin + scope + + punctuation.section.block, + punctuation.section.group, + variable.parameter.function, + variable.other, + string.unquoted.css, + constant.other.language-name.markdown, + source.ts punctuation.terminator.statement.empty.js, + source.ts meta.type-alias.js meta.block.js punctuation.separator.js, + punctuation.terminator.statement.js, + source.tsx meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js punctuation, + source.js.jsx entity.name.type, + source.js meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js punctuation, + punctuation.section.(.*).(.*).json, + + settings + + foreground + {{ accent7 }} + + + + + name + Variable Function + scope + + entity.name.section.markdown, + entity.name.type.scalar.graphql, + variable.language.super, + entity.name.function, + support.function, + variable.function, + source.tsx + meta.export.js + meta.function.js + meta.block.js + meta.group.js + meta.jsx.js + meta.tag.name.js + entity.name.tag.js, + source.tsx + meta.function-call.method.js + meta.group.js + meta.jsx.js + meta.tag.name.js + entity.name.tag.js, + meta.function-call.constructor.js, + entity.name.tag.jsx, + source.js meta.export.js meta.function.js meta.block.js meta.group.js meta.jsx.js meta.tag.name.js entity.name.tag.js + + settings + + foreground + {{ accent3 }} + + + + + name + Support Other Namespace + scope + + support.class, + support.other.namespace + + settings + + fontStyle + italic + + + + + name + Variable + scope + variable + settings + + fontStyle + + + + + + name + Function argument + scope + variable.parameter + settings + + fontStyle + italic + + + + + name + Storage type + scope + + storage.type.namespace, + storage.type + + settings + + fontStyle + italic + + + + + name + Italics + scope + + storage.type.class, + markup.italic.markdown + + settings + + fontStyle + italic + + + + + name + Bold + scope + markup.bold.markdown + settings + + fontStyle + bold + + + + uuid + 9409d745-9273-4b52-92c7-54fcb236c5f5 + colorSpaceName + sRGB + semanticClass + theme.AuraTheme + author + {{ author.name }} + + From d24b438f2a624fd5c492254d54c7729c4da721af Mon Sep 17 00:00:00 2001 From: Rowan Gillson Date: Sun, 2 Nov 2025 22:39:47 +1000 Subject: [PATCH 2/2] refactor: update bat README template to use slug placeholder --- src/ports/bat/templates/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ports/bat/templates/README.md b/src/ports/bat/templates/README.md index 0895357..da539a1 100644 --- a/src/ports/bat/templates/README.md +++ b/src/ports/bat/templates/README.md @@ -9,13 +9,13 @@ mkdir -p ~/.config/bat/themes ``` -3. Fetch the `aura-theme.tmTheme` file from the [repository](https://github.com/daltonmenezes/aura-theme) with the following command: +3. Fetch the `{{ slug }}.tmTheme` file from the [repository](https://github.com/daltonmenezes/{{ slug }}) with the following command: ```sh - curl -o ~/.config/bat/themes/aura-theme.tmTheme https://raw.githubusercontent.com/daltonmenezes/aura-theme/main/packages/bat/aura-theme.tmTheme + curl -o ~/.config/bat/themes/{{ slug }}.tmTheme https://raw.githubusercontent.com/daltonmenezes/{{ slug }}/main/packages/bat/{{ slug }}.tmTheme ``` - **NOTE**: You can replace `aura-theme.tmTheme` with `aura-theme-soft.tmTheme` to use the Soft Dark variant. + **NOTE**: You can replace `{{ slug }}.tmTheme` with `{{ slug }}-soft.tmTheme` to use the Soft Dark variant. 4. Clean and rebuild bat's cache to recognize the new theme: @@ -26,16 +26,16 @@ 5. Configure bat to use the Aura Theme by default by adding the following line to your `~/.config/bat/config` file (create the file if it doesn't exist): ```toml - --theme="aura-theme" + --theme="{{ slug }}" ``` alternatively, you can set the `BAT_THEME` environment variable in your shell configuration file (e.g., `~/.bashrc`, `~/.zshrc`): ```sh - export BAT_THEME="aura-theme" + export BAT_THEME="{{ slug }}" ``` - **NOTE**: Use `aura-theme-soft` if you opted for the Soft Dark variant. + **NOTE**: Use `{{ slug }}-soft` if you opted for the Soft Dark variant. {{{ done }}}