AutoYADM commit: 2025-05-21 15:12:39
This commit is contained in:
parent
b0590df0d9
commit
900e7e4437
3 changed files with 11 additions and 3 deletions
3
.config/fish/functions/kakmsg.fish
Normal file
3
.config/fish/functions/kakmsg.fish
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
function kakmsg --description 'Send commands to Kakoune session'
|
||||||
|
echo "$argv[2..]" | kak -p "$argv[1]"
|
||||||
|
end
|
|
@ -1,3 +1,8 @@
|
||||||
function 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
|
kak -e 'cd ~/.config/kak' ~/.config/kak/kakrc
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -14,4 +14,4 @@ hook global BufCreate (.*/)?(\.kakrc\.local|\.kakrc\.local) %{
|
||||||
set-option buffer filetype kak
|
set-option buffer filetype kak
|
||||||
}
|
}
|
||||||
|
|
||||||
try %{ source .kakrc.local }
|
try %{ source .kakrc.local } catch %{ try %{ source .local.kakrc } }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue