AutoYADM commit: 2025-05-11 14:42:08
This commit is contained in:
parent
bc29cf6381
commit
8863194bdb
1 changed files with 9 additions and 3 deletions
|
@ -78,7 +78,7 @@ define-command ui-scrolloff-toggle -params 2 -docstring "toggle scrolloff" %{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
map global ui z ": ui-scrolloff-toggle 1 2<ret>"
|
map global ui z ": ui-scrolloff-toggle 3 3<ret>"
|
||||||
|
|
||||||
hook global WinCreate .* %{
|
hook global WinCreate .* %{
|
||||||
ui-wrap-enable
|
ui-wrap-enable
|
||||||
|
@ -105,10 +105,16 @@ map -docstring "goto next buffer" global user i ": bn<ret>"
|
||||||
map global normal <tab> _
|
map global normal <tab> _
|
||||||
map -docstring "commenct line" global normal <c-v> ":comment-line<ret>"
|
map -docstring "commenct line" global normal <c-v> ":comment-line<ret>"
|
||||||
define-command open_yazi %{
|
define-command open_yazi %{
|
||||||
edit %sh{
|
evaluate-commands %sh{
|
||||||
rm -f /tmp/yazi-path &>/dev/null
|
rm -f /tmp/yazi-path &>/dev/null
|
||||||
footclient -d error yazi $kak_buffile --chooser-file=/tmp/yazi-path &>/dev/null
|
footclient -d error yazi $kak_buffile --chooser-file=/tmp/yazi-path &>/dev/null
|
||||||
cat /tmp/yazi-path
|
P="$(cat /tmp/yazi-path)"
|
||||||
|
if [ -z "$P" ]; then
|
||||||
|
echo "echo no path"
|
||||||
|
else
|
||||||
|
echo "echo path: $P"
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
map -docstring "open file in yazi" global user <space> ": open_yazi<ret>"
|
map -docstring "open file in yazi" global user <space> ": open_yazi<ret>"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue