AutoYADM commit: 2025-05-11 14:57:41
This commit is contained in:
parent
8863194bdb
commit
3348e3a1ff
3 changed files with 17 additions and 17 deletions
15
.config/kak/autoload/pickers.kak
Normal file
15
.config/kak/autoload/pickers.kak
Normal file
|
@ -0,0 +1,15 @@
|
|||
define-command open_yazi %{
|
||||
evaluate-commands %sh{
|
||||
rm -f /tmp/yazi-path &>/dev/null
|
||||
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>"
|
Loading…
Add table
Add a link
Reference in a new issue