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