Skip to content

No way to disable syntax in hunk header🐛  #1032

@washtubs

Description

@washtubs

The help menu seems to suggest that I can adjust this

    --hunk-header-style <STYLE>
        Style string for the hunk-header.
        
        See STYLES section. Special attributes 'file' and 'line-number' can be used to include the file path, and number of first hunk line, in the hunk header. The style 'omit' can be used to remove the hunk header section from the output.
        
        [default: "line-number syntax"]

However if I use --hunk-header-style "line-number" without specifying syntax I still see the syntax. I would think since I didn't specify syntax it wouldn't show that. I understand changing this might be considered "breaking". Is there any other way to keep the hunk header but not show the syntax? Maybe a new nosyntax option? Personally I like having the hunk headers clearly visible, but I find the syntax to just be distracting for the files I'm comparing.

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