AutoYADM commit: 2025-05-18 16:19:24
This commit is contained in:
parent
c70bbeb30c
commit
7e6f7d0e4c
3 changed files with 18 additions and 26 deletions
|
@ -1,21 +1,19 @@
|
|||
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"
|
||||
}
|
||||
hook global BufCreate .*[.](.*)##hostname[.].* %sh{
|
||||
filetype=""
|
||||
notify-send "$kak_hook_param"
|
||||
case "$kak_hook_param_cature_N" in
|
||||
kdl)
|
||||
filetype="kdl"
|
||||
;;
|
||||
toml)
|
||||
filetype="toml"
|
||||
;;
|
||||
py)
|
||||
filetype="python"
|
||||
;;
|
||||
ini)
|
||||
filetype="ini"
|
||||
;;
|
||||
esac
|
||||
echo "set-option buffer filetype $filetype"
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@ 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 $@"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,11 +2,6 @@ eval %sh{ kak-tree-sitter -vvvvv -dks --init $kak_session }
|
|||
colorscheme ashen
|
||||
require-module fishr
|
||||
|
||||
fish %{
|
||||
notify-send "hello!"
|
||||
notify-send "$kak_buffile"
|
||||
}
|
||||
|
||||
set-option global ashen_dynamic_cursor true
|
||||
set-option global ashen_eol_cursor true
|
||||
# disable clippy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue