AutoYADM commit: 2025-05-18 16:19:24

This commit is contained in:
Daniel Fichtinger 2025-05-18 16:19:24 -04:00
parent c70bbeb30c
commit 7e6f7d0e4c
3 changed files with 18 additions and 26 deletions

View file

@ -1,21 +1,19 @@
hook global BufCreate .*[.](.*)##hostname[.].* %{ hook global BufCreate .*[.](.*)##hostname[.].* %sh{
fish %{ filetype=""
set -g filetype notify-send "$kak_hook_param"
set ext $kak_hook_param_capture_1 case "$kak_hook_param_cature_N" in
# notify-send "ext: $kak_hook_param_capture_1" kdl)
notify-send "$kak_buffile" filetype="kdl"
switch $ext ;;
case kdl toml)
set filetype kdl filetype="toml"
case toml ;;
set filetype toml py)
case py filetype="python"
set filetype python ;;
case ini ini)
set filetype ini filetype="ini"
end ;;
# echo "set-option buffer filetype $filetype" esac
# notify-send "$filetype" echo "set-option buffer filetype $filetype"
# echo "echo $kak_buffile"
}
} }

View file

@ -4,7 +4,6 @@ define-command fish -params 1.. -docstring %{
fish [code]: Execute provided fish code, evaluating its output as Kakoune commands. fish [code]: Execute provided fish code, evaluating its output as Kakoune commands.
} %{ } %{
evaluate-commands %sh{ evaluate-commands %sh{
printf "%sDELIM" "$1" >/tmp/fish-test
fish -c "eval $@" fish -c "eval $@"
} }
} }

View file

@ -2,11 +2,6 @@ eval %sh{ kak-tree-sitter -vvvvv -dks --init $kak_session }
colorscheme ashen colorscheme ashen
require-module fishr require-module fishr
fish %{
notify-send "hello!"
notify-send "$kak_buffile"
}
set-option global ashen_dynamic_cursor true set-option global ashen_dynamic_cursor true
set-option global ashen_eol_cursor true set-option global ashen_eol_cursor true
# disable clippy # disable clippy