Skip to content

Commit

Permalink
feat(cable): add default git diff cable channel (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpasmantier authored Jan 6, 2025
1 parent 7cd0a9d commit 76bff30
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ toggle_preview = "ctrl-o"
"vim" = "files"
"bat" = "files"

# git-diff channel
"git add" = "git-diff"

# git-branch channel
"git checkout" = "git-branch"
"git branch -d" = "git-branch"
Expand Down
5 changes: 5 additions & 0 deletions cable/unix-channels.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# GIT
[[cable_channel]]
name = "git-diff"
source_command = "git diff --name-only"
preview_command = "git diff --color=always {0}"

[[cable_channel]]
name = "git-reflog"
source_command = 'git reflog'
Expand Down
5 changes: 5 additions & 0 deletions cable/windows-channels.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# GIT
[[cable_channel]]
name = "git-diff"
source_command = "git diff --name-only"
preview_command = "git diff --color=always {0}"

[[cable_channel]]
name = "git-reflog"
source_command = 'git reflog'
Expand Down

0 comments on commit 76bff30

Please sign in to comment.