AutoYADM commit: 2025-05-19 22:58:01

This commit is contained in:
Daniel Fichtinger 2025-05-19 22:58:01 -04:00
parent 2af8856b44
commit 7c5ec89ddf

View file

@ -111,27 +111,15 @@ define-command -docstring "Create a scratch buffer" scratch %{
alias global s scratch alias global s scratch
# bar experimenting # bar experimenting
declare-option str bar_buflist ""
define-command bar-buflist %{ define-command bar-buflist %{
info %sh{ eval %sh{
list='' list=''
while read buf; do while read buf; do
index=$(($index + 1)) index=$(($index + 1))
# if [ "$buf" = "$kak_bufname" ]; then # if [ "$buf" = "$kak_bufname" ]; then
list="$list $index $buf" list="$list $index $buf"
done <<< $(printf '%s\n' "$kak_buflist" | tr ':' '\n') done <<< $(printf '%s\n' "$kak_buflist" | tr ' ' '\n')
echo "set-option -add global ui_options terminal_title=$list" quoted=$(printf '%q' "$list" | sed "s/\\*/\*/g")
printf "set-option -add global ui_options terminal_title=%s" "$quoted"
} }
} }
# define-command bar-refresh %exp{
# bar-buflist
# set-option -add global ui_options terminal_title=%sh{
# list=''
# while read buf; do
# index=$(($index + 1))
# # if [ "$buf" = "$kak_bufname" ]; then
# list="$list $index $buf "
# done <<< $(printf '%s\n' "$kak_buflist" | tr ':' '\n')
# # echo "set-option global bar_buflist '$list'"
# }
# }