From 0864cfa3fd1345d00a830f0b024381010147a763 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 10 Jul 2022 20:56:54 -0300 Subject: [PATCH] kak: Agregar soporte de kcr para tmux --- .config/kak/kakrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.config/kak/kakrc b/.config/kak/kakrc index bb27996..05e74d8 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -58,7 +58,7 @@ hook global WinSetOption filetype=go %{ # ------------ eval %sh{ - test -n "$WAYLAND_DISPLAY" && echo ' + if test -n "$WAYLAND_DISPLAY"; then echo ' hook global KakBegin .* %{ set-option global termcmd "footclient sh -c" } define-command terminal-popup -params 1.. -shell-completion %{ set-option global termcmd "footclient --app-id=fzf sh -c" @@ -66,6 +66,16 @@ eval %sh{ 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 []: 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 } # ------------