Import from root chezmoi source

This commit is contained in:
Prad Nukala committed 2026-10-14 13:32:59 -04:00
commit c8c8c9a000
77 files changed
+2443

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
[metadata]
name = "git-diff"
description = "A channel to select files from git diff commands"
requirements = ["git"]
[source]
command = "git diff --name-only HEAD"
[preview]
command = "git diff HEAD --color=always -- '{}'"
[ui]
layout = "portrait"
[keybindings]
ctrl-s = "actions:stage"
ctrl-r = "actions:restore"
ctrl-e = "actions:edit"
[actions.stage]
description = "Stage the selected file"
command = "git add {}"
mode = "fork"
[actions.restore]
description = "Discard changes in the selected file"
command = "git restore {}"
mode = "fork"
[actions.edit]
description = "Open the selected file in editor"
command = "${EDITOR:-vim} {}"
shell = "bash"
mode = "execute"