AutoYADM commit: 2025-05-19 23:44:44
This commit is contained in:
parent
5cb0a93e3a
commit
7fbf98e281
3 changed files with 41 additions and 35 deletions
21
.config/kak/autoload/title.kak
Normal file
21
.config/kak/autoload/title.kak
Normal file
|
@ -0,0 +1,21 @@
|
|||
define-command -hidden bar-buflist %{
|
||||
evaluate-commands %sh{
|
||||
list=''
|
||||
while read buf; do
|
||||
if [ "$buf" = '*debug*' ]; then
|
||||
continue
|
||||
fi
|
||||
index=$(($index + 1))
|
||||
if [ "$buf" = "$kak_bufname" ]; then
|
||||
cur=$(printf '[%s %s]' "$index" "$buf")
|
||||
else
|
||||
cur=$(printf '%s %s' "$index" "$buf")
|
||||
fi
|
||||
list="$list $cur"
|
||||
done <<<$(printf '%s\n' "$kak_buflist" | tr ' ' '\n')
|
||||
title="$list - $kak_client@[$kak_session]"
|
||||
printf "set-option -add global ui_options %%{terminal_title=%s}" "$title"
|
||||
}
|
||||
}
|
||||
|
||||
hook global WinDisplay .* bar-buflist
|
Loading…
Add table
Add a link
Reference in a new issue