这是indexloc提供的服务,不要输入任何密码
Skip to content

Add support for delta hyperlinks, currently broken #40

@gcflymoto

Description

@gcflymoto

Hello, diffnav is fantastic. However, it interferes with delta's filelinks/hyperlinks in kitty. Here is my delta config ~/.gitconfig

[delta]
    line-numbers = true
    hyperlinks = true
    # Works for Kitty
    hyperlinks-file-link-format = "file://{path}:{line}"
    #features = decorations
    side-by-side = true
    # use n and N to move between diff sections
    navigate = true
    # delta detects the terminal colors automatically; set one of these to disable auto-detection
    # dark = true
    # light = true
[delta "interactive"]
    keep-plus-minus-markers = false
[delta "decorations"]
    commit-decoration-style = blue ol
    commit-style = raw
    file-style = omit
    hunk-header-decoration-style = blue box
    hunk-header-file-style = red
    hunk-header-line-number-style = "#067a00"
    hunk-header-style = file line-number syntax

The links are clickable, but clicking them through Kitty no longer works under Diffnav. Works fine without diffnav.

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