From 15bf1c76145a51668010a314be01a64679633def Mon Sep 17 00:00:00 2001 From: Justin Frank Date: Sat, 1 Sep 2018 12:14:33 -0700 Subject: [PATCH] updated kitty integration to use the no-response switch --- rc/extra/kitty.kak | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rc/extra/kitty.kak b/rc/extra/kitty.kak index 38933016..73c0b9e2 100644 --- a/rc/extra/kitty.kak +++ b/rc/extra/kitty.kak @@ -7,9 +7,13 @@ hook global KakBegin .* %sh{ fi } -define-command -params .. kitty-new %{ - nop %sh{ kitty @ new-window "$(command -v kak 2>/dev/null)" -c "${kak_session}" -e "$*" } -} +define-command -docstring %{kitty-new []: create a new kak client for the current session +Optional arguments are passed as arguments to the new client} \ + -params .. \ + -command-completion \ + kitty-new %{ nop %sh{ + kitty @ new-window --no-response "$(command -v kak 2>/dev/null)" -c "${kak_session}" -e "$*" +}} define-command -params ..1 -client-completion \ -docstring %{kitty-focus []: focus the given client @@ -18,7 +22,7 @@ If no client is passed then the current one is used} \ if [ $# -eq 1 ]; then printf %s\\n "evaluate-commands -client '$1' focus" else - kitty @ focus-window -m=id:$kak_client_env_KITTY_WINDOW_ID + kitty @ focus-window --no-response -m=id:$kak_client_env_KITTY_WINDOW_ID fi } }