AutoYADM commit: 2025-07-07 14:18:37

This commit is contained in:
Daniel Fichtinger 2025-07-07 14:18:37 -04:00
parent 459456cd48
commit 6d8b7764db
3 changed files with 7 additions and 2 deletions

View file

@ -39,10 +39,13 @@ else
input="$1"
fi
filter=$(echo $filter | sed "s/'/<quote>/g; s/\"/<dquote>/g; s/ /<space>/g")
# run kak as a filter
# write buffer to fifo before quitting
# cmd="$(printf 'exec <percent>; execute-keys "%s"')"
kak -n -e "exec <percent>; execute-keys %{ $filter } ; execute-keys <esc>; write $fifo; quit!" "$input"
cmd="$(printf '%s\n' "exec <percent>; execute-keys '$filter' ; execute-keys <esc>; write $fifo; quit!")"
echo "$cmd"
kak -n -e "$cmd" "$input"
# print kak output to stdout
cat "$fifo"
# cleanup

View file

@ -0,0 +1 @@
hello

View file

@ -0,0 +1 @@
hello