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

View file

@ -0,0 +1 @@
hello

View file

@ -0,0 +1 @@
hello