AutoYADM commit: 2025-05-21 15:12:39

This commit is contained in:
Daniel Fichtinger 2025-05-21 15:12:39 -04:00
parent b0590df0d9
commit 900e7e4437
3 changed files with 11 additions and 3 deletions

View file

@ -0,0 +1,3 @@
function kakmsg --description 'Send commands to Kakoune session'
echo "$argv[2..]" | kak -p "$argv[1]"
end

View file

@ -1,3 +1,8 @@
function kakrc
kak -e 'cd ~/.config/kak' ~/.config/kak/kakrc
function kakrc --description "Edit kakrc. -c to force a new session."
if test "$argv[1]" != -c || test "$argv[1]" != new
kak-session ~/.config/kak/kakrc
else
kak -e 'cd ~/.config/kak' ~/.config/kak/kakrc
end
end

View file

@ -14,4 +14,4 @@ hook global BufCreate (.*/)?(\.kakrc\.local|\.kakrc\.local) %{
set-option buffer filetype kak
}
try %{ source .kakrc.local }
try %{ source .kakrc.local } catch %{ try %{ source .local.kakrc } }