wip
This commit is contained in:
28
.config/television/cable/git-reflog.toml
Normal file
28
.config/television/cable/git-reflog.toml
Normal file
@@ -0,0 +1,28 @@
|
||||
[metadata]
|
||||
name = "git-reflog"
|
||||
description = "A channel to select from git reflog entries"
|
||||
requirements = ["git"]
|
||||
|
||||
[source]
|
||||
command = "git reflog --decorate --color=always"
|
||||
output = "{0|strip_ansi}"
|
||||
ansi = true
|
||||
no_sort = true
|
||||
frecency = false
|
||||
|
||||
[preview]
|
||||
command = "git show -p --stat --pretty=fuller --color=always '{0|strip_ansi}'"
|
||||
|
||||
[keybindings]
|
||||
ctrl-o = "actions:checkout"
|
||||
ctrl-r = "actions:reset"
|
||||
|
||||
[actions.checkout]
|
||||
description = "Checkout the selected reflog entry"
|
||||
command = "git checkout '{0|strip_ansi}'"
|
||||
mode = "execute"
|
||||
|
||||
[actions.reset]
|
||||
description = "Reset --hard to the selected reflog entry"
|
||||
command = "git reset --hard '{0|strip_ansi}'"
|
||||
mode = "execute"
|
||||
Reference in New Issue
Block a user