diff --git a/manual/src/features.md b/manual/src/features.md index 651b51f63..bc0b53f1d 100644 --- a/manual/src/features.md +++ b/manual/src/features.md @@ -6,12 +6,12 @@ - Line numbering - `n` and `N` keybindings to move between files in large diffs, and between diffs in `log -p` views (`--navigate`) - Improved merge conflict display -- Improved `git blame` display (syntax highlighting; `--hyperlinks` formats commits as links to GitHub/GitLab/Bitbucket etc) +- Improved `git blame` display (syntax highlighting; `--hyperlinks` formats commits as links to GitHub/GitLab/SourceHut/Codeberg etc) - Syntax-highlights grep output from `rg`, `git grep`, `grep`, etc - Support for Git's `--color-moved` feature. - Code can be copied directly from the diff (`-/+` markers are removed by default). - `diff-highlight` and `diff-so-fancy` emulation modes -- Commit hashes can be formatted as terminal [hyperlinks](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) to the GitHub/GitLab/Bitbucket page (`--hyperlinks`). +- Commit hashes can be formatted as terminal [hyperlinks](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) to the GitHub/GitLab/SourceHut/Codeberg page (`--hyperlinks`). File paths can also be formatted as hyperlinks for opening in your OS. - Stylable box/line decorations to draw attention to commit, file and hunk header sections. - Git style strings (foreground color, background color, font attributes) are supported for >20 stylable elements diff --git a/manual/src/git-blame.md b/manual/src/git-blame.md index 94d5def36..adea0337e 100644 --- a/manual/src/git-blame.md +++ b/manual/src/git-blame.md @@ -1,7 +1,7 @@ # Git blame Set delta as the pager for `blame` in the `[pager]` section of your gitconfig: see the [example gitconfig](./get-started.md). -If `hyperlinks` is enabled in the `[delta]` section then each blame commit will link to the commit on GitHub/GitLab/Bitbucket/etc. +If `hyperlinks` is enabled in the `[delta]` section then each blame commit will link to the commit on GitHub/GitLab/SourceHut/Codeberg. See [hyperlinks](./hyperlinks.md).
image
diff --git a/manual/src/hyperlinks.md b/manual/src/hyperlinks.md index ac2f9ffd2..0026b32dc 100644 --- a/manual/src/hyperlinks.md +++ b/manual/src/hyperlinks.md @@ -7,7 +7,7 @@ Delta uses [terminal hyperlinks](https://gist.github.com/egmontkob/eb114294efbcd hyperlinks = true ``` -Commit hashes link to GitHub/GitLab/Bitbucket (use `hyperlinks-commit-link-format` for full control). +Commit hashes link to GitHub/GitLab/SourceHut/Codeberg (use `hyperlinks-commit-link-format` for full control). The links on line numbers (in grep output, as well as diffs) are particularly interesting: with a little bit of effort, they can be made to open your editor or IDE at the correct line. Use `hyperlinks-file-link-format` to construct the correct URL for your system. @@ -68,4 +68,4 @@ If your editor does not have its own URL protocol, then there are still many pos hyperlinks-file-link-format = "my-file-line-protocol://{path}:{line}" # Now configure your OS to handle "my-file-line-protocol" URLs! ``` -- Finally, you can just use traditional `file://` links (making sure your OS is configured to use the correct editor). But then your editor won't open the file at the correct line, which would be missing out on something very useful. \ No newline at end of file +- Finally, you can just use traditional `file://` links (making sure your OS is configured to use the correct editor). But then your editor won't open the file at the correct line, which would be missing out on something very useful.