Merge remote-tracking branch 'laelath/kitty-no-response'
This commit is contained in:
commit
60a338b9bd
|
@ -7,9 +7,13 @@ hook global KakBegin .* %sh{
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
define-command -params .. kitty-new %{
|
define-command -docstring %{kitty-new [<command>]: create a new kak client for the current session
|
||||||
nop %sh{ kitty @ new-window "$(command -v kak 2>/dev/null)" -c "${kak_session}" -e "$*" }
|
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 \
|
define-command -params ..1 -client-completion \
|
||||||
-docstring %{kitty-focus [<client>]: focus the given client
|
-docstring %{kitty-focus [<client>]: focus the given client
|
||||||
|
@ -18,7 +22,7 @@ If no client is passed then the current one is used} \
|
||||||
if [ $# -eq 1 ]; then
|
if [ $# -eq 1 ]; then
|
||||||
printf %s\\n "evaluate-commands -client '$1' focus"
|
printf %s\\n "evaluate-commands -client '$1' focus"
|
||||||
else
|
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
|
fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user