AutoYADM commit: 2025-05-16 17:14:15

This commit is contained in:
Daniel Fichtinger 2025-05-16 17:14:15 -04:00
parent 51ccc1e607
commit b9cc8e936f
9 changed files with 78 additions and 171 deletions

View file

@ -0,0 +1,15 @@
define-command open-yazi %{
evaluate-commands %sh{
rm -f /tmp/yazi-path &>/dev/null
# TODO: make this use %opt{termcmd} instead
footclient -d error yazi $kak_buffile --chooser-file=/tmp/yazi-path &>/dev/null
P="$(cat /tmp/yazi-path)"
out="info -markup -title {title}Yazi"
if [ -z "$P" ]; then
echo "info -markup -title {title}Yazi 'No file selected.'"
else
echo "edit $P"
fi
}
}
map -docstring "open file in yazi" global user <space> ": open-yazi<ret>"