AutoYADM commit: 2025-05-25 23:09:09

This commit is contained in:
Daniel Fichtinger 2025-05-25 23:09:09 -04:00
parent dac2a9b866
commit 0a7eec16bc
4 changed files with 9 additions and 7 deletions

View file

@ -30,7 +30,8 @@ define-command -hidden lsp-filetype-hooks-update %{
try %{ remove-hooks global lsp-filetypes }
# convert the str-list into regex of form (a|b|c|...)
hook -group lsp-filetypes global WinSetOption %exp~filetype=%sh{
printf '%s' "(${kak_opt_lsp_filetypes// /|})"
# printf '%s' "(${kak_opt_lsp_filetypes// /|})"
printf '%s\n' "$kak_opt_lsp_filetypes" | sed 's/ /|/g'
}~ %{
# commands to execute for lsp window settings
lsp-enable-window

View file

@ -2,8 +2,8 @@
# evaluate-commands %sh{
# if [ ! -d "$kak_config/bundle" || ! -f "$kak_config/bundle/kak-bundle/rc/kak-bundle.kak" ]; then
# mkdir -p "$kak_config/bundle" &>/dev/null
# git clone https://codeberg.org/jdugan6240/kak-bundle "$kak_config/bundle/kak-bundle" &>/dev/null
# mkdir -p "$kak_config/bundle" >/dev/null 2>&1
# git clone https://codeberg.org/jdugan6240/kak-bundle "$kak_config/bundle/kak-bundle" >/dev/null 2>&1
# echo "bundle-install"
# else
# echo "nop"

View file

@ -3,9 +3,9 @@ map -docstring "Yazi" global user <space> ': enter-user-mode yazi<ret>'
define-command open-yazi-this-client %{
evaluate-commands %sh{
rm -f /tmp/yazi-path &>/dev/null
rm -f /tmp/yazi-path >/dev/null 2>&1
# TODO: make this use %opt{termcmd} instead
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 2>&1
P="$(cat /tmp/yazi-path)"
out="info -markup -title {title}Yazi"
if [ -z "$P" ]; then
@ -24,9 +24,9 @@ map -docstring "spawn yazi" global yazi <space> ': spawn-yazi<ret>'
define-command open-yazi-new-client %{
evaluate-commands %sh{
rm -f /tmp/yazi-path &>/dev/null
rm -f /tmp/yazi-path >/dev/null 2>&1
# TODO: make this use %opt{termcmd} instead
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 2>&1
P="$(cat /tmp/yazi-path)"
out="info -markup -title {title}Yazi"
if [ -z "$P" ]; then