From 7c54de233486d29c3c33e4f63774b170a5945564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20Fr=C3=B6jdholm?= Date: Sun, 7 May 2023 12:04:55 +0200 Subject: [PATCH] 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. --- rc/windowing/kitty.kak | 4 ++-- rc/windowing/repl/kitty.kak | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/windowing/kitty.kak b/rc/windowing/kitty.kak index 64cc224e..6f69aa9f 100644 --- a/rc/windowing/kitty.kak +++ b/rc/windowing/kitty.kak @@ -17,7 +17,7 @@ The program passed as argument will be executed in the new terminal' \ nop %sh{ match="" 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 listen="" @@ -37,7 +37,7 @@ The program passed as argument will be executed in the new terminal' \ nop %sh{ match="" 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 listen="" diff --git a/rc/windowing/repl/kitty.kak b/rc/windowing/repl/kitty.kak index 28ca1b89..1f60366a 100644 --- a/rc/windowing/repl/kitty.kak +++ b/rc/windowing/repl/kitty.kak @@ -20,7 +20,7 @@ define-command -params .. \ match="" 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 listen=""