kak: Agregar soporte de kcr para tmux

This commit is contained in:
Cat /dev/Nulo 2022-07-10 20:56:54 -03:00
parent c4c5b5fc9a
commit 0864cfa3fd

View file

@ -58,7 +58,7 @@ hook global WinSetOption filetype=go %{
# ------------ # ------------
eval %sh{ eval %sh{
test -n "$WAYLAND_DISPLAY" && echo ' if test -n "$WAYLAND_DISPLAY"; then echo '
hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" } hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" }
define-command terminal-popup -params 1.. -shell-completion %{ define-command terminal-popup -params 1.. -shell-completion %{
set-option global termcmd "footclient --app-id=fzf sh -c" set-option global termcmd "footclient --app-id=fzf sh -c"
@ -66,6 +66,16 @@ eval %sh{
set-option global termcmd "footclient sh -c" set-option global termcmd "footclient sh -c"
} }
' '
elif test -n "$TMUX"; then echo "
define-command tmux-terminal-popup -params 1.. -shell-completion -docstring '
tmux-terminal-popup <program> [<arguments>]: create a new terminal as a tmux popup
The program passed as argument will be executed in the new popup' \
%{
tmux-terminal-impl 'display-popup -E -h 75% -w 75% -d #{pane_current_path}' %arg{@}
}
alias global terminal-popup tmux-terminal-popup
"
fi
} }
# ------------ # ------------