This commit is contained in:
Maxime Coste 2019-06-23 12:05:15 +10:00
commit 2422c2dcd1

View File

@ -15,7 +15,9 @@ All optional parameters are forwarded to the new window} \
exit
fi
if [ $# -eq 0 ]; then cmd="${SHELL:-sh}"; else cmd="$@"; fi
setsid ${kak_opt_termcmd} ${cmd} -t kak_repl_window < /dev/null > /dev/null 2>&1 &
# The escape sequence in the printf command sets the terminal's title:
setsid ${kak_opt_termcmd} "printf '\e]2;kak_repl_window\a' \
&& ${cmd}" < /dev/null > /dev/null 2>&1 &
}}
define-command x11-send-text -docstring "send the selected text to the repl window" %{