AutoYADM commit: 2025-07-07 14:18:37
This commit is contained in:
parent
459456cd48
commit
6d8b7764db
3 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
1
.config/kak/scripts/kakpipe-560DAG/input.mYirWw
Normal file
1
.config/kak/scripts/kakpipe-560DAG/input.mYirWw
Normal file
|
@ -0,0 +1 @@
|
|||
hello
|
1
.config/kak/scripts/kakpipe-xExYbv/input.SLa2Oc
Normal file
1
.config/kak/scripts/kakpipe-xExYbv/input.SLa2Oc
Normal file
|
@ -0,0 +1 @@
|
|||
hello
|
Loading…
Add table
Add a link
Reference in a new issue