feat(cable): add default git diff cable channel (#226)

This commit is contained in:
Alex Pasmantier 2025-01-06 14:13:04 +01:00 committed by GitHub
parent 7cd0a9d1b7
commit 76bff30759
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 0 deletions

View File

@ -179,6 +179,9 @@ toggle_preview = "ctrl-o"
"vim" = "files" "vim" = "files"
"bat" = "files" "bat" = "files"
# git-diff channel
"git add" = "git-diff"
# git-branch channel # git-branch channel
"git checkout" = "git-branch" "git checkout" = "git-branch"
"git branch -d" = "git-branch" "git branch -d" = "git-branch"

View File

@ -1,4 +1,9 @@
# GIT # GIT
[[cable_channel]]
name = "git-diff"
source_command = "git diff --name-only"
preview_command = "git diff --color=always {0}"
[[cable_channel]] [[cable_channel]]
name = "git-reflog" name = "git-reflog"
source_command = 'git reflog' source_command = 'git reflog'

View File

@ -1,4 +1,9 @@
# GIT # GIT
[[cable_channel]]
name = "git-diff"
source_command = "git diff --name-only"
preview_command = "git diff --color=always {0}"
[[cable_channel]] [[cable_channel]]
name = "git-reflog" name = "git-reflog"
source_command = 'git reflog' source_command = 'git reflog'