Skip to content

kitten @ action --match not doing the action on the matched window #7438

@IndianBoy42

Description

@IndianBoy42

Describe the bug
i think kitten @ action --match id:<id> <action> should be equivalent to doing the mappable action in the window found by the match, just like all other kitten remote control commands. But it doesnt

To Reproduce
Steps to reproduce the behavior:

  1. kitty
  2. <kitty_mod + enter>
  3. kitten @ action --match id:1 close_window
  4. The window that you ran the above command in closes instead of the first window

Screenshots
If applicable, add screenshots to help explain your problem.

Environment details

kitty 0.34.1 (7f61f1f9f3) created by Kovid Goyal
Linux pop-os 6.8.0-76060800daily20240311-generic #202403110203~1714077665~22.04~4c8e9a0 SMP PREEMPT_DYNAMIC Thu A x86_64
Pop!_OS 22.04 LTS pop-os /dev/tty

DISTRIB_ID=Pop
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Pop!_OS 22.04 LTS"
Running under: X11
Frozen: True
Paths:
  kitty: /home/amedhi/.local/packages/kitty.app/bin/kitty
  base dir: /home/amedhi/.local/packages/kitty.app/lib/kitty
  extensions dir: /home/amedhi/.local/packages/kitty.app/lib/kitty-extensions
  system shell: /home/amedhi/.local/bin/fish
Loaded config files:
  /home/amedhi/.config/kitty/kitty.conf

Config options different from defaults:
allow_remote_control       yes
bold_font                  Iosevka Term SS05 Bold Extended
bold_italic_font           Iosevka Term SS05 Bold Extended Italic
cursor_stop_blinking_after 2.0
enabled_layouts            ['tall', 'splits', 'stack', 'fat', 'grid', 'horizontal', 'vertical']
font_family                Iosevka Term SS05 Medium Extended
font_size                  10.0
hide_window_decorations    1
italic_font                Iosevka Term SS05 Medium Extended Italic
kitty_mod                  ctrl+shift+alt
listen_on                  unix:/tmp/kitty
modify_font:
    strikethrough_position 2
    underline_position 3
    underline_thickness 150%
scrollback_lines           20000
symbol_map:
	U+23fb - U+23fe → Symbols Nerd Font Mono
	U+2665 - U+2665 → Symbols Nerd Font Mono
	U+26a1 - U+26a1 → Symbols Nerd Font Mono
	U+2b58 - U+2b58 → Symbols Nerd Font Mono
	U+e000 - U+e00a → Symbols Nerd Font Mono
	U+e0a0 - U+e0a3 → Symbols Nerd Font Mono
	U+e0b0 - U+e0c8 → Symbols Nerd Font Mono
	U+e0ca - U+e0ca → Symbols Nerd Font Mono
	U+e0cc - U+e0d2 → Symbols Nerd Font Mono
	U+e0d4 - U+e0d4 → Symbols Nerd Font Mono
	U+e200 - U+e2a9 → Symbols Nerd Font Mono
	U+e300 - U+e3e3 → Symbols Nerd Font Mono
	U+e5fa - U+e634 → Symbols Nerd Font Mono
	U+e700 - U+e7c5 → Symbols Nerd Font Mono
	U+ea60 - U+ebbc → codicon
	U+ea60 - U+ebeb → Symbols Nerd Font Mono
	U+f000 - U+f2e0 → Symbols Nerd Font Mono
	U+f300 - U+f32f → Symbols Nerd Font Mono
	U+f400 - U+f4a9 → Symbols Nerd Font Mono
	U+f500 - U+f8ff → Symbols Nerd Font Mono
Changed mouse actions:
	ctrl+shift+right press ungrabbed →  combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output
Added shortcuts:
	kitty_mod+' →  kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
	kitty_mod+/ →  launch --allow-remote-control kitty +kitten kitty_search/search.py @active-kitty-window-id
	kitty_mod+; →  kitty_scrollback_nvim
	kitty_mod+i →  set_tab_title
	kitty_mod+space →  kitten kitty_grab/grab.py
	kitty_mod+y →  next_layout
Removed shortcuts:
	kitty_mod+alt+t →  set_tab_title
Changed shortcuts:
	kitty_mod+g →  kitten hints --type=linenum --linenum-action=tab nvim +{line} {path}
	kitty_mod+h →  previous_tab
	kitty_mod+j →  next_window
	kitty_mod+k →  previous_window
	kitty_mod+l →  next_tab
	kitty_mod+u →  kitten hints --type path --program -

Important environment variables seen by the kitty process:
	PATH                                /home/amedhi/.gvm/pkgsets/go1.16/global/bin:/home/amedhi/.gvm/gos/go1.16/bin:/home/amedhi/.gvm/pkgsets/go1.16/global/overlay/bin:/home/amedhi/.gvm/bin:/home/amedhi/.gvm/bin:/home/amedhi/.cargo/bin:/home/amedhi/.local/bin:/home/amedhi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/amedhi/.local/share/coursier/bin
	LANG                                en_US.UTF-8
	SHELL                               /usr/bin/fish
	DISPLAY                             :1
	USER                                amedhi
	LC_TIME                             en_US.UTF-8
	XDG_SESSION_TYPE                    x11
	LC_MONETARY                         en_US.UTF-8
	XDG_SESSION_CLASS                   user
	XDG_RUNTIME_DIR                     /run/user/1000
	LC_ADDRESS                          en_US.UTF-8
	XDG_MENU_PREFIX                     gnome-
	LC_TELEPHONE                        en_US.UTF-8
	XDG_CURRENT_DESKTOP                 pop:GNOME
	XDG_SESSION_DESKTOP                 pop
	LC_NAME                             en_US.UTF-8
	LC_MEASUREMENT                      en_US.UTF-8
	LC_IDENTIFICATION                   en_US.UTF-8
	XDG_DATA_DIRS                       /usr/share/pop:/usr/share/gnome:/home/amedhi/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
	XDG_CONFIG_DIRS                     /etc/xdg/xdg-pop:/etc/xdg
	LC_NUMERIC                          en_US.UTF-8
	LC_PAPER                            en_US.UTF-8

Additional context
Try to reproduce the problem with kitty --config NONE if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.

This works with with a minimal config with just allow_remote_control yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions