kak: Agregar soporte de kcr para tmux
This commit is contained in:
parent
c4c5b5fc9a
commit
0864cfa3fd
1 changed files with 11 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
# ------------
|
# ------------
|
||||||
|
|
Loading…
Reference in a new issue