AutoYADM commit: 2025-05-18 16:03:24
This commit is contained in:
parent
0ee1f9d70b
commit
c70bbeb30c
3 changed files with 28 additions and 0 deletions
|
@ -0,0 +1,21 @@
|
|||
hook global BufCreate .*[.](.*)##hostname[.].* %{
|
||||
fish %{
|
||||
set -g filetype
|
||||
set ext $kak_hook_param_capture_1
|
||||
# notify-send "ext: $kak_hook_param_capture_1"
|
||||
notify-send "$kak_buffile"
|
||||
switch $ext
|
||||
case kdl
|
||||
set filetype kdl
|
||||
case toml
|
||||
set filetype toml
|
||||
case py
|
||||
set filetype python
|
||||
case ini
|
||||
set filetype ini
|
||||
end
|
||||
# echo "set-option buffer filetype $filetype"
|
||||
# notify-send "$filetype"
|
||||
# echo "echo $kak_buffile"
|
||||
}
|
||||
}
|
|
@ -4,6 +4,7 @@ define-command fish -params 1.. -docstring %{
|
|||
fish [code]: Execute provided fish code, evaluating its output as Kakoune commands.
|
||||
} %{
|
||||
evaluate-commands %sh{
|
||||
printf "%sDELIM" "$1" >/tmp/fish-test
|
||||
fish -c "eval $@"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue