Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using remote control with the send-text command sends text twice #7027

Closed
konomikitten opened this issue Jan 20, 2024 · 2 comments
Closed

Using remote control with the send-text command sends text twice #7027

konomikitten opened this issue Jan 20, 2024 · 2 comments
Labels

Comments

@konomikitten
Copy link

Describe the bug

Using remote control with the send-text command sends text twice.

To Reproduce
Steps to reproduce the behavior:

  1. kitty --config=NONE --override allow_remote_control=yes --listen-on unix:/tmp/kitty &
  2. kitty @ --to unix:/tmp/kitty set-tab-title One
  3. kitty @ --to unix:/tmp/kitty send-text -t "title:One" 'One'

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

Screenshot_2024-01-21_00-04-18

Environment details

kitty 0.32.0 created by Kovid Goyal
Linux debian 6.6.11-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.11-1 (2024-01-14) x86_64
Debian GNU/Linux trixie/sid debian /dev/tty

Running under: X11
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /bin/bash
Loaded config overrides:
  allow_remote_control yes

Config options different from defaults:
allow_remote_control yes

Important environment variables seen by the kitty process:
	PATH                                /home/strawberry/.cargo/bin:/home/strawberry/.npm-packages/bin:/home/strawberry/.local/share/gem/ruby/3.1.0/bin:/home/strawberry/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
	LANG                                en_AU.UTF-8
	EDITOR                              nvim
	SHELL                               /bin/bash
	DISPLAY                             :0.0
	USER                                strawberry
	XDG_CONFIG_DIRS                     /etc/xdg
	XDG_SESSION_PATH                    /org/freedesktop/DisplayManager/Session0
	XDG_MENU_PREFIX                     xfce-
	XDG_SEAT                            seat0
	XDG_SESSION_DESKTOP                 lightdm-xsession
	XDG_SESSION_TYPE                    x11
	XDG_GREETER_DATA_DIR                /var/lib/lightdm/data/strawberry
	XDG_CURRENT_DESKTOP                 XFCE
	XDG_SEAT_PATH                       /org/freedesktop/DisplayManager/Seat0
	XDG_SESSION_CLASS                   user
	XDG_VTNR                            7
	XDG_SESSION_ID                      2
	XDG_RUNTIME_DIR                     /run/user/1000
	XDG_DATA_DIRS                       /usr/share/xfce4:/home/strawberry/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share

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.

@kovidgoyal
Copy link
Owner

Does nto replicate for me with those steps. From your screen shot I am guessing your shell is responsible for the doubling. Try running it like this

kitty --config=NONE --override allow_remote_control=yes --listen-on unix:/tmp/kitty cat &
kitty @ --to unix:/tmp/kitty send-text -m id:1 One

@konomikitten
Copy link
Author

Does nto replicate for me with those steps. From your screen shot I am guessing your shell is responsible for the doubling. Try running it like this

kitty --config=NONE --override allow_remote_control=yes --listen-on unix:/tmp/kitty cat &
kitty @ --to unix:/tmp/kitty send-text -m id:1 One

The bug is specifically with sending to the title of a tab not the id. Running what you provided works correctly. Running this sends the text twice still:

kitty --config=NONE --override allow_remote_control=yes --listen-on unix:/tmp/kitty cat &
kitty @ --to unix:/tmp/kitty set-tab-title One
kitty @ --to unix:/tmp/kitty send-text -t title:One One

Downgrading back to 0.31.0 fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants