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+'
|
||||
} str bar_inactive_modified_fmt '%s %s+'
|
||||
define-command -hidden bar-buflist %{
|
||||
evaluate-commands %sh{
|
||||
list=''
|
||||
index=0
|
||||
nop %sh{
|
||||
{
|
||||
list=''
|
||||
index=0
|
||||
while read buf; do
|
||||
if [ "$buf" = '*debug*' ]; then
|
||||
continue
|
||||
|
@ -59,9 +60,10 @@ done <<EOF
|
|||
$(printf '%s\n' "$kak_buflist" | awk '{gsub(/\*[^*]+\*|[^[:space:]]+/,"&\n"); print}')
|
||||
EOF
|
||||
|
||||
title="$list - $kak_client@[$kak_session]"
|
||||
printf "eval -client '%s' set-option -add global ui_options %%{terminal_title=%s}\n" "$kak_client" "$title"
|
||||
}
|
||||
title="$list - $kak_client@[$kak_session]"
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue