diff --git a/.config/kak/autoload/pickers.kak b/.config/kak/autoload/pickers.kak new file mode 100644 index 00000000..aadda3ba --- /dev/null +++ b/.config/kak/autoload/pickers.kak @@ -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 ": open_yazi" diff --git a/.config/kak/colors/ashen.kak b/.config/kak/colors/ashen.kak index 8f353604..9f5afaff 100644 --- a/.config/kak/colors/ashen.kak +++ b/.config/kak/colors/ashen.kak @@ -73,7 +73,7 @@ set-face global LineNumbersWrapped LineNumbers set-face global MenuForeground "%opt{background},%opt{orange_blaze}+b" set-face global MenuBackground "%opt{g_3},%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 Error "%opt{red_flame},%opt{g_10}" set-face global DiagnosticError ",,%opt{red_flame}+c" diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 870cb0c4..923f1120 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -40,7 +40,7 @@ define-command -override tree-sitter-user-after-highlighter %{ # add-highlighter -override window/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/ show-whitespaces -lf "" -tab "" -only-trailing add-highlighter global/ show-matching @@ -104,21 +104,6 @@ map -docstring "goto next buffer" global user i ": bn" map global normal _ map -docstring "commenct line" global normal ":comment-line" -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 ": open_yazi" - declare-user-mode git map -docstring "git" global user g ": enter-user-mode git" map -docstring "lazygit" global git g ": terminal lazygit"