AutoYADM commit: 2025-05-21 23:37:14

This commit is contained in:
Daniel Fichtinger 2025-05-21 23:37:14 -04:00
parent ba437c354a
commit 4271658423
2 changed files with 13 additions and 5 deletions

View file

@ -27,7 +27,7 @@ declare-option -docstring %{
} str bar_inactive_fmt '%s %s'
define-command -hidden bar-buflist %{
evaluate-commands %sh{
starttime=$(date +%s%3N)
# starttime=$(date +%s.%N)
list=''
while read buf; do
if [ "$buf" = '*debug*' ]; then
@ -46,9 +46,9 @@ define-command -hidden bar-buflist %{
list="$list $cur"
done <<<$(printf '%s\n' "$kak_buflist" | perl -nE 'say for /(\*[^*]+\*|\S+)/g')
title="$list - $kak_client@[$kak_session]"
endtime=$(date +%s%3N)
printf "set-option -add global ui_options %%{terminal_title=%s}" "$title"
printf "info 'time elapsed: %s ms'" "$((end - start))"
# endtime=$(date +%s.%N)
printf "set-option -add global ui_options %%{terminal_title=%s}\n" "$title"
# printf "info 'time elapsed: %s ms'" "$(echo "$endtime - $starttime" | bc -l)"
}
}
@ -56,6 +56,5 @@ hook global WinDisplay .* bar-buflist
hook global FocusIn .* bar-buflist
hook global FocusOut .* bar-buflist
hook global WinCreate .* bar-buflist
hook global NormalIdle .* bar-buflist
hook global BufWritePost .* bar-buflist
hook global ModeChange .* bar-buflist