mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
38 lines
832 B
TOML
38 lines
832 B
TOML
[metadata]
|
|
name = "git-stash"
|
|
description = "Browse and manage git stash entries"
|
|
requirements = ["git"]
|
|
|
|
[source]
|
|
command = "git stash list --color=always"
|
|
ansi = true
|
|
output = "{strip_ansi|split:\\::0}"
|
|
no_sort = true
|
|
frecency = false
|
|
|
|
[preview]
|
|
command = "git stash show -p --color=always '{strip_ansi|split:\\::0}'"
|
|
|
|
[ui]
|
|
layout = "portrait"
|
|
|
|
[keybindings]
|
|
enter = "actions:apply"
|
|
ctrl-p = "actions:pop"
|
|
ctrl-d = "actions:drop"
|
|
|
|
[actions.apply]
|
|
description = "Apply the selected stash"
|
|
command = "git stash apply '{strip_ansi|split:\\::0}'"
|
|
mode = "execute"
|
|
|
|
[actions.pop]
|
|
description = "Pop the selected stash (apply and remove)"
|
|
command = "git stash pop '{strip_ansi|split:\\::0}'"
|
|
mode = "execute"
|
|
|
|
[actions.drop]
|
|
description = "Drop the selected stash"
|
|
command = "git stash drop '{strip_ansi|split:\\::0}'"
|
|
mode = "execute"
|