AutoYADM commit: 2025-05-21 20:42:39
This commit is contained in:
parent
b0ef9796be
commit
fefa63d54b
3 changed files with 9 additions and 2 deletions
|
@ -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
|
command kak -s "$session_id" -e "cd %[$kakroot]" $flags $files
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
else if [ -n "$git_dir" ]
|
else if [ -n "$git_dir" ]
|
||||||
# when in a git directory, share sessions
|
# when in a git directory, share sessions
|
||||||
# the shared session id is {repo}__{branch} where repo is the remote repo name
|
# 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
|
else
|
||||||
command kak -s "$session_id" -e "cd %[$git_dir]" $flags $files
|
command kak -s "$session_id" -e "cd %[$git_dir]" $flags $files
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
command kak -c "$session_id" $flags $files
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
command kak $flags $files
|
command kak $flags $files
|
||||||
|
|
4
.config/fish/functions/kl.fish
Normal file
4
.config/fish/functions/kl.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
function kl --wraps='kak -l' --description 'alias kl=kak -l'
|
||||||
|
kak -l $argv
|
||||||
|
|
||||||
|
end
|
|
@ -12,7 +12,7 @@ define-command -hidden bar-buflist %{
|
||||||
cur=$(printf '%s %s' "$index" "$buf")
|
cur=$(printf '%s %s' "$index" "$buf")
|
||||||
fi
|
fi
|
||||||
list="$list $cur"
|
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]"
|
title="$list - $kak_client@[$kak_session]"
|
||||||
printf "set-option -add global ui_options %%{terminal_title=%s}" "$title"
|
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 WinDisplay .* bar-buflist
|
||||||
hook global FocusIn .* bar-buflist
|
hook global FocusIn .* bar-buflist
|
||||||
hook global FocusOut .* bar-buflist
|
hook global FocusOut .* bar-buflist
|
||||||
|
hook global WinCreate .* bar-buflist
|
||||||
|
hook global BufClose .* bar-buflist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue