Match against kitty window id directly when using kitty @ launch
When launch matches using `id` kitty tries to match against tab id before matching windows. When there are multiple tabs it's likely to match a tab before matching a window. Use `window_id` directly to avoid any possiblity of matching tabs. This is only needed for `kitty @ launch` for other commands there is no specific `window_id` field.
This commit is contained in:
parent
2adc81c4c9
commit
7c54de2334
|
@ -17,7 +17,7 @@ The program passed as argument will be executed in the new terminal' \
|
||||||
nop %sh{
|
nop %sh{
|
||||||
match=""
|
match=""
|
||||||
if [ -n "$kak_client_env_KITTY_WINDOW_ID" ]; then
|
if [ -n "$kak_client_env_KITTY_WINDOW_ID" ]; then
|
||||||
match="--match=id:$kak_client_env_KITTY_WINDOW_ID"
|
match="--match=window_id:$kak_client_env_KITTY_WINDOW_ID"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
listen=""
|
listen=""
|
||||||
|
@ -37,7 +37,7 @@ The program passed as argument will be executed in the new terminal' \
|
||||||
nop %sh{
|
nop %sh{
|
||||||
match=""
|
match=""
|
||||||
if [ -n "$kak_client_env_KITTY_WINDOW_ID" ]; then
|
if [ -n "$kak_client_env_KITTY_WINDOW_ID" ]; then
|
||||||
match="--match=id:$kak_client_env_KITTY_WINDOW_ID"
|
match="--match=window_id:$kak_client_env_KITTY_WINDOW_ID"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
listen=""
|
listen=""
|
||||||
|
|
|
@ -20,7 +20,7 @@ define-command -params .. \
|
||||||
|
|
||||||
match=""
|
match=""
|
||||||
if [ -n "$kak_client_env_KITTY_WINDOW_ID" ]; then
|
if [ -n "$kak_client_env_KITTY_WINDOW_ID" ]; then
|
||||||
match="--match=id:$kak_client_env_KITTY_WINDOW_ID"
|
match="--match=window_id:$kak_client_env_KITTY_WINDOW_ID"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
listen=""
|
listen=""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user