AutoYADM commit: 2025-05-19 23:13:24
This commit is contained in:
parent
7c5ec89ddf
commit
9fddc43a37
2 changed files with 138 additions and 131 deletions
|
@ -117,9 +117,11 @@ define-command bar-buflist %{
|
|||
while read buf; do
|
||||
index=$(($index + 1))
|
||||
# if [ "$buf" = "$kak_bufname" ]; then
|
||||
list="$list $index $buf"
|
||||
cur=$(printf '[%s] %s' "$index" "$buf")
|
||||
list="$list $cur"
|
||||
done <<< $(printf '%s\n' "$kak_buflist" | tr ' ' '\n')
|
||||
quoted=$(printf '%q' "$list" | sed "s/\\*/\*/g")
|
||||
quoted=$(printf '%q' "$list" | sed -e 's/\\\*/\*/g' -e 's/\\\[/\[/g' -e 's/\\\]/\]/g')
|
||||
|
||||
printf "set-option -add global ui_options terminal_title=%s" "$quoted"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue