From 6d8b7764db5963017583f2b130dda430fcc63493 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 7 Jul 2025 14:18:37 -0400 Subject: [PATCH] AutoYADM commit: 2025-07-07 14:18:37 --- .config/kak/scripts/kakfilter.sh | 7 +++++-- .config/kak/scripts/kakpipe-560DAG/input.mYirWw | 1 + .config/kak/scripts/kakpipe-xExYbv/input.SLa2Oc | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .config/kak/scripts/kakpipe-560DAG/input.mYirWw create mode 100644 .config/kak/scripts/kakpipe-xExYbv/input.SLa2Oc diff --git a/.config/kak/scripts/kakfilter.sh b/.config/kak/scripts/kakfilter.sh index 80ff6f2c..1c8e9b2a 100755 --- a/.config/kak/scripts/kakfilter.sh +++ b/.config/kak/scripts/kakfilter.sh @@ -39,10 +39,13 @@ else input="$1" fi +filter=$(echo $filter | sed "s/'//g; s/\"//g; s/ //g") + # run kak as a filter # write buffer to fifo before quitting -# cmd="$(printf 'exec ; execute-keys "%s"')" -kak -n -e "exec ; execute-keys %{ $filter } ; execute-keys ; write $fifo; quit!" "$input" +cmd="$(printf '%s\n' "exec ; execute-keys '$filter' ; execute-keys ; write $fifo; quit!")" +echo "$cmd" +kak -n -e "$cmd" "$input" # print kak output to stdout cat "$fifo" # cleanup diff --git a/.config/kak/scripts/kakpipe-560DAG/input.mYirWw b/.config/kak/scripts/kakpipe-560DAG/input.mYirWw new file mode 100644 index 00000000..ce013625 --- /dev/null +++ b/.config/kak/scripts/kakpipe-560DAG/input.mYirWw @@ -0,0 +1 @@ +hello diff --git a/.config/kak/scripts/kakpipe-xExYbv/input.SLa2Oc b/.config/kak/scripts/kakpipe-xExYbv/input.SLa2Oc new file mode 100644 index 00000000..ce013625 --- /dev/null +++ b/.config/kak/scripts/kakpipe-xExYbv/input.SLa2Oc @@ -0,0 +1 @@ +hello