AutoYADM commit: 2025-05-11 14:57:41

This commit is contained in:
Daniel Fichtinger 2025-05-11 14:57:41 -04:00
parent 8863194bdb
commit 3348e3a1ff
3 changed files with 17 additions and 17 deletions

View 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>"

View file

@ -73,7 +73,7 @@ set-face global LineNumbersWrapped LineNumbers
set-face global MenuForeground "%opt{background},%opt{orange_blaze}+b" set-face global MenuForeground "%opt{background},%opt{orange_blaze}+b"
set-face global MenuBackground "%opt{g_3},%opt{g_9}" set-face global MenuBackground "%opt{g_3},%opt{g_9}"
set-face global MenuInfo "%opt{text},%opt{g_9}" set-face global MenuInfo "%opt{text},%opt{g_9}"
set-face global Information MenuBackground set-face global Information MenuInfo
set-face global InlineInformation "%opt{g_6}+i" set-face global InlineInformation "%opt{g_6}+i"
set-face global Error "%opt{red_flame},%opt{g_10}" set-face global Error "%opt{red_flame},%opt{g_10}"
set-face global DiagnosticError ",,%opt{red_flame}+c" set-face global DiagnosticError ",,%opt{red_flame}+c"

View file

@ -40,7 +40,7 @@ define-command -override tree-sitter-user-after-highlighter %{
# add-highlighter -override window/bracket regex [\[\]\(\)\{\}]{1} 0:red # add-highlighter -override window/bracket regex [\[\]\(\)\{\}]{1} 0:red
# } # }
# add-highlighter global/bracket regex [\[\]\(\)\{\}]{1} 0:red # add-highlighter global/bracket regex [\[\]\(\)\{\}]{1} 0:red
# add-highlighter global/bracket regex [\[\]\(\)\{\}]{1} 0:rgb:737373 add-highlighter global/bracket regex [\[\]\(\)\{\}]{1} 0:rgb:737373
add-highlighter global/ number-lines -hlcursor -relative -separator " " add-highlighter global/ number-lines -hlcursor -relative -separator " "
add-highlighter global/ show-whitespaces -lf "" -tab "" -only-trailing add-highlighter global/ show-whitespaces -lf "" -tab "" -only-trailing
add-highlighter global/ show-matching add-highlighter global/ show-matching
@ -104,21 +104,6 @@ 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 %{
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)"
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>"
declare-user-mode git declare-user-mode git
map -docstring "git" global user g ": enter-user-mode git<ret>" map -docstring "git" global user g ": enter-user-mode git<ret>"
map -docstring "lazygit" global git g ": terminal lazygit<ret>" map -docstring "lazygit" global git g ": terminal lazygit<ret>"