AutoYADM commit: 2025-07-21 13:53:39

This commit is contained in:
Daniel Fichtinger 2025-07-21 13:53:39 -04:00
parent 0fb9c25d0a
commit 57f262d4e4
6 changed files with 344 additions and 6 deletions

View file

@ -1,6 +1,6 @@
declare-user-mode git
declare-user-mode ficgit
map -docstring "git" global user g ": enter-user-mode git<ret>"
map -docstring "lazygit kak cwd" global git g ": terminal lazygit<ret>"
map -docstring "lazygit kak cwd" global ficgit g ": terminal lazygit<ret>"
define-command lazygit-buffer-dir %{
evaluate-commands %sh{
@ -8,16 +8,16 @@ define-command lazygit-buffer-dir %{
printf "terminal lazygit -p %s" "$ROOT"
}
}
map -docstring "lazygit buffer directory" global git G ": lazygit-buffer-dir<ret>"
map -docstring "lazygit buffer directory" global ficgit G ": lazygit-buffer-dir<ret>"
define-command git-blame %{
info %sh{
git -C $(dirname $(realpath $kak_buffile)) blame -L $kak_cursor_line,$kak_cursor_line $(realpath $kak_buffile)
}
}
map -docstring "blame" global git b ": git-blame<ret>"
map -docstring "show diff" global git d ": git show-diff<ret>"
map -docstring "hide diff" global git D ": git hide-diff<ret>"
map -docstring "blame" global ficgit b ": git-blame<ret>"
map -docstring "show diff" global ficgit d ": git show-diff<ret>"
map -docstring "hide diff" global ficgit D ": git hide-diff<ret>"
provide-module git-diff %~