Skip to content

Is it possible to not use hunk header and see absolute (true) not relative line numbers? #319

@FrankensteinPillow

Description

@FrankensteinPillow

When I disable hunk header (set hunk-header-style = omit) the line numbers are calculated as relative numbers, but i want to see absolute numers in diff. I realy want see absolute line numbers without hunk header, please tell me how to set it up, if of course it's possible.
Thank you in advance))

With hunk headers
with hunk headers
Without hunk headers
without hunk headers

My git config

[interactive]
    diffFilter = delta --color-only

[diff]
    colorMoved = default

[delta]
    side-by-side = true
    features = line-numbers decorations
    whitespace-error-style = 22 reverse
    hunk-header-style = omit
    syntax-theme = base16

[delta "line-numbers"]
    line-numbers = true
    line-numbers-minus-style = red
    line-numbers-zero-style = "#444444"
    line-numbers-plus-style = green
    line-numbers-left-format = "{nm:^4}┊"
    line-numbers-right-format = "{np:^4}│"
    line-numbers-left-style = red
    line-numbers-right-style = green

[delta "decorations"]
    commit-decoration-style = bold yellow box ul
    file-style = bold yellow ul
    file-decoration-style = none
    hunk-header-decoration-style = yellow box

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