AutoYADM commit: 2025-05-29 19:30:14
This commit is contained in:
parent
90144c0d48
commit
e10f879da8
1 changed files with 8 additions and 17 deletions
|
@ -1,5 +1,3 @@
|
||||||
# TODO: make the operation async!
|
|
||||||
# Is there something we can do with global vs. window scoped title?
|
|
||||||
declare-option bool bar_debug false
|
declare-option bool bar_debug false
|
||||||
declare-option -docstring %{
|
declare-option -docstring %{
|
||||||
Format string passed to printf for the bufferlist.
|
Format string passed to printf for the bufferlist.
|
||||||
|
@ -28,15 +26,15 @@ declare-option -docstring %{
|
||||||
|
|
||||||
Default: '%s %s'
|
Default: '%s %s'
|
||||||
} str bar_inactive_fmt '%s %s'
|
} str bar_inactive_fmt '%s %s'
|
||||||
declare-option -docstring %{
|
# declare-option -docstring %{
|
||||||
Format string passed to printf for the bufferlist.
|
# Format string passed to printf for the bufferlist.
|
||||||
It should be set in the global scope.
|
# It should be set in the global scope.
|
||||||
|
|
||||||
It receives two string arguments, where the first is the buffer index,
|
# It receives two string arguments, where the first is the buffer index,
|
||||||
and the second is the buffer name.
|
# and the second is the buffer name.
|
||||||
|
|
||||||
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 %{
|
||||||
nop %sh{
|
nop %sh{
|
||||||
{
|
{
|
||||||
|
@ -68,7 +66,6 @@ EOF
|
||||||
list="$list [*debug*]"
|
list="$list [*debug*]"
|
||||||
fi
|
fi
|
||||||
title="$list - $kak_client@[$kak_session]"
|
title="$list - $kak_client@[$kak_session]"
|
||||||
# printf "eval -verbatim set-option -add window ui_options %%{terminal_title=%s}" "$title" | kak -p ${kak_session}
|
|
||||||
title_cmd=$(printf "eval -try-client '$kak_client' -verbatim set-option -add global ui_options %%{terminal_title=%s}" "$title")
|
title_cmd=$(printf "eval -try-client '$kak_client' -verbatim set-option -add global ui_options %%{terminal_title=%s}" "$title")
|
||||||
echo "$title_cmd" | kak -p ${kak_session}
|
echo "$title_cmd" | kak -p ${kak_session}
|
||||||
refresh_cmd=$(printf "eval -verbatim try %%{ exec -try-client '$kak_client' <c-l> }")
|
refresh_cmd=$(printf "eval -verbatim try %%{ exec -try-client '$kak_client' <c-l> }")
|
||||||
|
@ -80,10 +77,4 @@ EOF
|
||||||
} > /dev/null 2>&1 < /dev/null &
|
} > /dev/null 2>&1 < /dev/null &
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
hook global WinDisplay .* bar-buflist
|
hook global NormalIdle .* bar-buflist
|
||||||
hook global FocusIn .* bar-buflist
|
|
||||||
# hook global FocusOut .* bar-buflist
|
|
||||||
hook global WinCreate .* bar-buflist
|
|
||||||
hook global BufWritePost .* bar-buflist
|
|
||||||
# hook global ModeChange .* bar-buflist
|
|
||||||
# hook global NormalIdle .* bar-buflist
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue