diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-01-13 17:05:49 -0500 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-01-13 17:05:49 -0500 |
commit | cfe873493cbdab5d209d1e2cef32666690660634 (patch) | |
tree | 3eb576edd383c6facdd6f2ec5986b0fe7c09f748 /README.md | |
parent | 1f7dc37d732f97a62011d51e68f5a3558c50c639 (diff) |
Update README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -99,14 +99,11 @@ diff -u a.txt b.txt | delta ## Supported languages and themes -To add new languages/color themes to delta, the process is +To list the supported languages and color themes, use `delta --list-languages` and `delta --list-theme-names`. To see a demo of the color themes, use `delta --list-themes`. -1. Clone the delta repo -2. Create new versions of the files `assets/syntaxes.bin` and/or `assets/themes.bin`. Please see the [bat](https://github.com/sharkdp/bat#adding-new-syntaxes--language-definitions) documentation for instructions on how to create new versions of these files. You will need to copy them into the `assets/` directory of the delta git repo after creating them. -3. Recompile delta: `cargo build --release` -4. Now you have a new delta executable at `target/release/delta` that should feature your new language/theme (use `--list-languages` / `--list-themes` to check). +delta uses the same mechanisms as [bat](https://github.com/sharkdp/bat#adding-new-syntaxes--language-definitions) for locally adding custom color themes and support for new languages: please see the [bat](https://github.com/sharkdp/bat#adding-new-syntaxes--language-definitions) documentation. You will need to install bat in order to run the `bat cache --build` command. -Delta does not currently support reading these files dynamically from `~/.config` as `bat` does, but this is a feature that could be added. +The languages and color themes that ship with delta are those that ship with bat. So, to propose a new language or color theme for inclusion in delta, it would need to be a helpful addition to bat, in which case please open a PR against bat. ## 24 bit color |