AutoYADM commit: 2025-05-19 22:58:01
This commit is contained in:
parent
2af8856b44
commit
7c5ec89ddf
1 changed files with 4 additions and 16 deletions
|
@ -111,27 +111,15 @@ define-command -docstring "Create a scratch buffer" scratch %{
|
|||
alias global s scratch
|
||||
|
||||
# bar experimenting
|
||||
declare-option str bar_buflist ""
|
||||
define-command bar-buflist %{
|
||||
info %sh{
|
||||
eval %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 -add global ui_options terminal_title=$list"
|
||||
done <<< $(printf '%s\n' "$kak_buflist" | tr ' ' '\n')
|
||||
quoted=$(printf '%q' "$list" | sed "s/\\*/\*/g")
|
||||
printf "set-option -add global ui_options terminal_title=%s" "$quoted"
|
||||
}
|
||||
}
|
||||
# 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