wip
This commit is contained in:
34
.config/television/cable/git-log.toml
Normal file
34
.config/television/cable/git-log.toml
Normal file
@@ -0,0 +1,34 @@
|
||||
[metadata]
|
||||
name = "git-log"
|
||||
description = "A channel to select from git log entries"
|
||||
requirements = ["git"]
|
||||
|
||||
[source]
|
||||
command = "git log --graph --pretty=format:'%C(yellow)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --color=always"
|
||||
output = "{strip_ansi|split: :1}"
|
||||
ansi = true
|
||||
no_sort = true
|
||||
frecency = false
|
||||
|
||||
[preview]
|
||||
command = "git show -p --stat --pretty=fuller --color=always '{strip_ansi|split: :1}' | head -n 1000"
|
||||
|
||||
[keybindings]
|
||||
ctrl-y = "actions:cherry-pick"
|
||||
ctrl-r = "actions:revert"
|
||||
ctrl-o = "actions:checkout"
|
||||
|
||||
[actions.cherry-pick]
|
||||
description = "Cherry-pick the selected commit"
|
||||
command = "git cherry-pick '{strip_ansi|split: :1}'"
|
||||
mode = "execute"
|
||||
|
||||
[actions.revert]
|
||||
description = "Revert the selected commit"
|
||||
command = "git revert '{strip_ansi|split: :1}'"
|
||||
mode = "execute"
|
||||
|
||||
[actions.checkout]
|
||||
description = "Checkout the selected commit"
|
||||
command = "git checkout '{strip_ansi|split: :1}'"
|
||||
mode = "execute"
|
||||
Reference in New Issue
Block a user