Skip to content

Support for git diff output#22

Open
kitzberger wants to merge 4 commits intomchelem:masterfrom
kitzberger:support-git-diff
Open

Support for git diff output#22
kitzberger wants to merge 4 commits intomchelem:masterfrom
kitzberger:support-git-diff

Conversation

@kitzberger
Copy link

This patch adds a feature to create links for the following parts of this git diff output:

  • --- a/<filename>
  • +++ b/<filename>
  • @@ -<line> +<line> @@ (line sensitive link!)
diff --git a/README.md b/README.md
index f5e6bcc..f6da1d2 100644
--- a/README.md
+++ b/README.md
@@ -14,9 +14,21 @@ See the demo at https://github.com/mchelem/terminator-editor-plugin/wiki.

yurenchen000 and others added 4 commits November 15, 2022 04:56
Features:
- Clickable git diff file headers (--- a/, +++ b/, diff --git a/)
- Clickable hunk markers (@@ ... @@) that open files at specific lines
- Global context tracking across diff sections for accurate line numbers
- Precise regex with lookbehind/lookahead to avoid false positives
- Support for absolute and relative file paths
- Updated README with git diff documentation
- Fix Sublime Text command (subl instead of sublime)

Co-Authored-By: Warp <agent@warp.dev>
@BookOfGreg
Copy link

BookOfGreg commented Feb 14, 2026

This is an opportunity to add i/ c/ w/ o/ to catch the other git mnemonic diffs.
https://git-scm.com/docs/git-diff#Documentation/git-diff.txt-diffmnemonicPrefix
Same as my alter-ego fixed in iterm2 here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants