A small program that generates a Visual Studio Code snippets file, with either builtin snippets (>1000 Unicode characters) or a custom TOML input file.
```sh
cargo install character-snippets
character-snippets --builtin > ~/.config/Code/User/snippets/chars.code-snippets
character-snippets my-custom-snippets.toml > ~/.config/Code/User/snippets/chars.code-snippets
```
The format of the input file should be as follows:
toml
[Snippets]
xbrackets = "〚$1〛"
xcheckbox = "☐ "
xchecked = "☑ "
xcheckmark = "✓"
xch = "✓"
Visual Studio Code will interpret variables such as $1
as placeholders.
Output will be sent to standard output.
Download binaries:
→ from the GitHub releases page
Alternatively, compile from scratch on Unix:
```sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env # or log in again
apt install build-essential
cargo install character-snippets
character-snippets --builtin > ~/.config/Code/User/snippets/chars.code-snippets # for Linux character-snippets src/builtin-snippets.toml > ~/.config/Code/User/snippets/chars.code-snippets ```
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.