AutoYADM commit: 2025-05-21 20:42:39

This commit is contained in:
Daniel Fichtinger 2025-05-21 20:42:39 -04:00
parent b0ef9796be
commit fefa63d54b
3 changed files with 9 additions and 2 deletions

View file

@ -91,7 +91,6 @@ function kak-session -w kak --description "kakoune where sessions are derived fr
command kak -s "$session_id" -e "cd %[$kakroot]" $flags $files
end
end
else if [ -n "$git_dir" ]
# when in a git directory, share sessions
# the shared session id is {repo}__{branch} where repo is the remote repo name
@ -119,6 +118,8 @@ function kak-session -w kak --description "kakoune where sessions are derived fr
else
command kak -s "$session_id" -e "cd %[$git_dir]" $flags $files
end
else
command kak -c "$session_id" $flags $files
end
else
command kak $flags $files

View file

@ -0,0 +1,4 @@
function kl --wraps='kak -l' --description 'alias kl=kak -l'
kak -l $argv
end

View file

@ -12,7 +12,7 @@ define-command -hidden bar-buflist %{
cur=$(printf '%s %s' "$index" "$buf")
fi
list="$list $cur"
done <<<$(printf '%s\n' "$kak_buflist" | tr ' ' '\n')
done <<<$(printf '%s\n' "$kak_buflist" | perl -nE 'say for /(\*[^*]+\*|\S+)/g')
title="$list - $kak_client@[$kak_session]"
printf "set-option -add global ui_options %%{terminal_title=%s}" "$title"
}
@ -21,3 +21,5 @@ define-command -hidden bar-buflist %{
hook global WinDisplay .* bar-buflist
hook global FocusIn .* bar-buflist
hook global FocusOut .* bar-buflist
hook global WinCreate .* bar-buflist
hook global BufClose .* bar-buflist