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

@ -2,6 +2,7 @@
# VERSION: 3.0 # VERSION: 3.0
SETUVAR --export AUTOYADMPUSH:1 SETUVAR --export AUTOYADMPUSH:1
SETUVAR --export EDITOR:kak SETUVAR --export EDITOR:kak
SETUVAR --export KAKOUNE_POSIX_SHELL:/usr/bin/dash
SETUVAR --export XDG_CONFIG_HOME:/home/fic/\x2econfig SETUVAR --export XDG_CONFIG_HOME:/home/fic/\x2econfig
SETUVAR Z_DATA_DIR:/home/fic/\x2elocal/share/z SETUVAR Z_DATA_DIR:/home/fic/\x2elocal/share/z
SETUVAR __fish_initialized:3800 SETUVAR __fish_initialized:3800

View file

@ -30,7 +30,8 @@ define-command -hidden lsp-filetype-hooks-update %{
try %{ remove-hooks global lsp-filetypes } try %{ remove-hooks global lsp-filetypes }
# convert the str-list into regex of form (a|b|c|...) # convert the str-list into regex of form (a|b|c|...)
hook -group lsp-filetypes global WinSetOption %exp~filetype=%sh{ 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 # commands to execute for lsp window settings
lsp-enable-window lsp-enable-window

View file

@ -2,8 +2,8 @@
# evaluate-commands %sh{ # evaluate-commands %sh{
# if [ ! -d "$kak_config/bundle" || ! -f "$kak_config/bundle/kak-bundle/rc/kak-bundle.kak" ]; then # if [ ! -d "$kak_config/bundle" || ! -f "$kak_config/bundle/kak-bundle/rc/kak-bundle.kak" ]; then
# mkdir -p "$kak_config/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 # git clone https://codeberg.org/jdugan6240/kak-bundle "$kak_config/bundle/kak-bundle" >/dev/null 2>&1
# echo "bundle-install" # echo "bundle-install"
# else # else
# echo "nop" # 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 %{ define-command open-yazi-this-client %{
evaluate-commands %sh{ 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 # 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)" P="$(cat /tmp/yazi-path)"
out="info -markup -title {title}Yazi" out="info -markup -title {title}Yazi"
if [ -z "$P" ]; then if [ -z "$P" ]; then
@ -24,9 +24,9 @@ map -docstring "spawn yazi" global yazi <space> ': spawn-yazi<ret>'
define-command open-yazi-new-client %{ define-command open-yazi-new-client %{
evaluate-commands %sh{ 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 # 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)" P="$(cat /tmp/yazi-path)"
out="info -markup -title {title}Yazi" out="info -markup -title {title}Yazi"
if [ -z "$P" ]; then if [ -z "$P" ]; then