From c70bbeb30cb169e2e18cfb429584fedd1d269d0b Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sun, 18 May 2025 16:03:24 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-18 16:03:24 --- .config/kak/autoload/filetype/yadm.kak | 21 +++++++++++++++++++++ .config/kak/autoload/fishr/fishr.kak | 1 + .config/kak/kakrc | 6 ++++++ 3 files changed, 28 insertions(+) diff --git a/.config/kak/autoload/filetype/yadm.kak b/.config/kak/autoload/filetype/yadm.kak index e69de29b..57a2c8cd 100644 --- a/.config/kak/autoload/filetype/yadm.kak +++ b/.config/kak/autoload/filetype/yadm.kak @@ -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" + } +} diff --git a/.config/kak/autoload/fishr/fishr.kak b/.config/kak/autoload/fishr/fishr.kak index 8a2db89f..c09738a8 100644 --- a/.config/kak/autoload/fishr/fishr.kak +++ b/.config/kak/autoload/fishr/fishr.kak @@ -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 $@" } } diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 36cb56d3..c1a42155 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -1,6 +1,12 @@ 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