AutoYADM commit: 2025-05-16 15:42:01
This commit is contained in:
parent
e297761a6c
commit
a0b9f6205f
1 changed files with 10 additions and 6 deletions
|
@ -124,17 +124,21 @@ map -docstring "commenct line" global normal <c-v> ":comment-line<ret>"
|
||||||
declare-user-mode git
|
declare-user-mode git
|
||||||
map -docstring "git" global user g ": enter-user-mode git<ret>"
|
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 git g ": terminal lazygit<ret>"
|
||||||
map -docstring "lazygit buffer directory" global git G %{
|
|
||||||
evaluate-commands terminal "lazygit -w %sh{
|
define-command lazygit-buffer-dir %{
|
||||||
dirname "$kak_buffile"
|
evaluate-commands %sh{
|
||||||
}"
|
ROOT="$(env -C "$(dirname $kak_buffile)" git rev-parse --show-toplevel)"
|
||||||
|
printf "terminal lazygit -p %s" "$ROOT"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
def git_blame %{
|
map -docstring "lazygit buffer directory" global git G ": lazygit-buffer-dir<ret>"
|
||||||
|
|
||||||
|
define-command git-blame %{
|
||||||
info %sh{
|
info %sh{
|
||||||
git -C $(dirname $(realpath $kak_buffile)) blame -L $kak_cursor_line,$kak_cursor_line $(realpath $kak_buffile)
|
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"
|
map -docstring "blame" global git b ": git-blame<ret>"
|
||||||
|
|
||||||
map -docstring "format" global user F ": format<ret>"
|
map -docstring "format" global user F ": format<ret>"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue