38 lines
886 B
TOML
38 lines
886 B
TOML
[metadata]
|
|
name = "git-branch"
|
|
description = "A channel to select from git branches"
|
|
requirements = ["git"]
|
|
|
|
[source]
|
|
command = "git --no-pager branch --all --format=\"%(refname:short)\""
|
|
output = "{split: :0}"
|
|
|
|
[preview]
|
|
command = "git show -p --stat --pretty=fuller --color=always '{0}'"
|
|
|
|
[keybindings]
|
|
ctrl-o = "actions:checkout"
|
|
ctrl-d = "actions:delete"
|
|
ctrl-m = "actions:merge"
|
|
ctrl-r = "actions:rebase"
|
|
|
|
[actions.checkout]
|
|
description = "Checkout the selected branch"
|
|
command = "git switch '{0}'"
|
|
mode = "execute"
|
|
|
|
[actions.delete]
|
|
description = "Delete the selected branch"
|
|
command = "git delete-branch '{0}'"
|
|
mode = "execute"
|
|
|
|
[actions.merge]
|
|
description = "Merge the selected branch into current branch"
|
|
command = "git merge '{0}'"
|
|
mode = "execute"
|
|
|
|
[actions.rebase]
|
|
description = "Rebase current branch onto the selected branch"
|
|
command = "git rebase '{0}'"
|
|
mode = "execute"
|