You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
It would require writing some small terminal program that reads keypresses and then sends those keypresses to all kitty windows using kitty @ send-text. Simply run that program in one window, then anything you type there will be sent to all windows by the program. I'm afraid I dont have time to write the program for you, but it should be pretty simple to do. In python pseudo code:
set stdin to unbuffered using the tty module
bytes = sys.stdin.buffer.read(1)
subprocess.run(['kitty', '@', 'send-text', '--match-tab', 'the tab you want matched', '--stdin'], stdin=bytes)
And if you want to get more sophisticated you can write it as a kitten and avoid needing to use remote control at all.
# this is the main entry point of the kitten, it will be executed in# the overlay window when the kitten is launchedprint("Send to all windows in this Tab.\n")
# whatever this function returns will be available in the# handle_result() functionreturnanswerdefhandle_result(args, answer, target_window_id, boss):
#w.paste_bytes(answer + "\x0d")w.paste(answer+"\r")
map f2 kitten kittens/broadcast_to_current_tab.py
Press F2, write a command and press ENTER. It will send the command to all the windows in current tab.
Still, it feels like a bad hack and you can only send one command at a time, it doesn't stream the chars as you type them like in tmux implementation. I tried to do it by using yield but failed...