Skip to content

Obtain syntect Theme structs from theme name when using bat as a library #2026

@dandavison

Description

@dandavison

Hi bat developers! Delta has, since the beginning, made use of bat's very helpful collection of language syntax and highlighting theme definitions. Until now, that's involved bat code vendored in the delta repo. I'd love to use the bat library for this. However, from a quick look, it appears that while the syntect syntax structs are exposed, the syntect themes are not (only theme name strings are exposed). Would it be possible (and fit with your aims) to provide an API to look up a syntect theme struct by theme name?

Thanks for all the work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions