From e297761a6c45cceffe9675050bef85e0438cbada Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 16 May 2025 15:26:01 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-16 15:26:01 --- .config/kak/kakrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/kak/kakrc b/.config/kak/kakrc index a0f02b9e..8007a81a 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -123,7 +123,12 @@ map global normal _ map -docstring "commenct line" global normal ":comment-line" declare-user-mode git map -docstring "git" global user g ": enter-user-mode git" -map -docstring "lazygit" global git g ": terminal lazygit" +map -docstring "lazygit kak cwd" global git g ": terminal lazygit" +map -docstring "lazygit buffer directory" global git G %{ + evaluate-commands terminal "lazygit -w %sh{ + dirname "$kak_buffile" + }" +} def git_blame %{ info %sh{ git -C $(dirname $(realpath $kak_buffile)) blame -L $kak_cursor_line,$kak_cursor_line $(realpath $kak_buffile)