Skip to content

🐛 rg --json | delta output has different colour depending on filename ("ini") #1513

@tbm

Description

@tbm

I don't know if this is a bug or intentional or something but it seems strange to me. I used ripgrep on some files and noticed that one file had a different colour. The file "ini" has different colours to any other files. (Maybe "init" is special cased?)

Reproduce:

$ echo "# [[liver]] {{gloss|organ of the body}}" > a
$ cp a ini
$ rg --json "\{" a | delta
$ rg --json "\{" ini | delta

delta

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions