Skip to content

🚀 Improve ripgrep with delta output layout #1289

@XhstormR

Description

@XhstormR

Hi, I'm currently using delta with ripgrep, here is my delta config:

[delta]
    navigate = true
    line-numbers = true
    diff-so-fancy = true
    syntax-theme = Dracula
    plus-style = syntax bold auto
    minus-style = syntax bold auto
    grep-match-line-style = syntax bold auto
    grep-context-line-style = syntax bold auto

It can display syntax highlighting normally, but when used with ripgrep, no layout is applied, causing the code and path to be displayed in one line, and the display width is too large Big.

The file path shows multiple lines, which is too redundant, we should apply layout to the ripgrep output as well.

Example:
rg 'LexiconGroup' --json | delta :
image

rg 'LexiconGroup' :
image

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