Skip to content

🚀 Transform file paths to be relative to current directory #552

@dandavison

Description

@dandavison

Git outputs file paths in various contexts (e.g. hunk headers, --stat output) but if you are not in the root directory of your repository these paths will not be valid as relative paths from your location. This can be annoying, for example the following workflows fail:

  • Copy the relative path and try to open it from the command line using something like vim, open, bat, code, emacsclient, etc
  • Command-click on the relative path in something like VS Code terminal

Since every line of git output is passing through delta, delta could relativize these paths thus making those workflows succeed.

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