AutoYADM commit: 2025-05-19 22:26:42
This commit is contained in:
parent
2d40129b0a
commit
c5c050417c
1 changed files with 16 additions and 0 deletions
|
@ -111,3 +111,19 @@ define-command -docstring "Create a scratch buffer" scratch %{
|
|||
alias global s scratch
|
||||
|
||||
# bar experimenting
|
||||
declare-option str bar_buflist ""
|
||||
define-command bar-buflist %{
|
||||
evaluate-commands %sh{
|
||||
list=''
|
||||
while read buf; do
|
||||
index=$(($index + 1))
|
||||
# if [ "$buf" = "$kak_bufname" ]; then
|
||||
list="$list $index $buf "
|
||||
done <<< $(printf '%s\n' "$kak_buflist" | tr ':' '\n')
|
||||
echo "set-option global bar_buflist '$list'"
|
||||
}
|
||||
}
|
||||
define-command bar-refresh %exp{
|
||||
bar-buflist
|
||||
set-option -add global ui_options terminal_title=%opt{bar_buflist}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue