AutoYADM commit: 2025-05-29 18:00:14
This commit is contained in:
parent
cf61f38f90
commit
0a70af0b83
1 changed files with 8 additions and 6 deletions
|
@ -37,9 +37,10 @@ declare-option -docstring %{
|
||||||
Default: '%s %s+'
|
Default: '%s %s+'
|
||||||
} str bar_inactive_modified_fmt '%s %s+'
|
} str bar_inactive_modified_fmt '%s %s+'
|
||||||
define-command -hidden bar-buflist %{
|
define-command -hidden bar-buflist %{
|
||||||
evaluate-commands %sh{
|
nop %sh{
|
||||||
list=''
|
{
|
||||||
index=0
|
list=''
|
||||||
|
index=0
|
||||||
while read buf; do
|
while read buf; do
|
||||||
if [ "$buf" = '*debug*' ]; then
|
if [ "$buf" = '*debug*' ]; then
|
||||||
continue
|
continue
|
||||||
|
@ -59,9 +60,10 @@ done <<EOF
|
||||||
$(printf '%s\n' "$kak_buflist" | awk '{gsub(/\*[^*]+\*|[^[:space:]]+/,"&\n"); print}')
|
$(printf '%s\n' "$kak_buflist" | awk '{gsub(/\*[^*]+\*|[^[:space:]]+/,"&\n"); print}')
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
title="$list - $kak_client@[$kak_session]"
|
title="$list - $kak_client@[$kak_session]"
|
||||||
printf "eval -client '%s' set-option -add global ui_options %%{terminal_title=%s}\n" "$kak_client" "$title"
|
printf "eval -client '%s' set-option -add global ui_options %%{terminal_title=%s}\n" "$kak_client" "$title" | kak -p ${kak_session}
|
||||||
}
|
} > /dev/null 2>&1 < /dev/null &
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hook global WinDisplay .* bar-buflist
|
hook global WinDisplay .* bar-buflist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue