-
Hey there, So I'm attempting to have a single shortcut on my machine change my system and vim theme. In vim, I have a key sequence bound to my theme change. Would it be possible for me to use the remote feature of kitty to send the key sequence "escape dm" from an arbitrary shell (in my case the shell sway forks) targeting all kitty instances running "vim" ? I was going thru the tutorial and I ran into two blockers:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
You can enable remote control via UNIX socket for kitty and then use the parameter
As for sending to all VIM windows, you can first find out all the window ids by As for escape, you can just send it directly. kitty @ send-text -m id:1 "\x1b" You can see the key escape sequence with the following command. kitty +kitten show_key |
Beta Was this translation helpful? Give feedback.
You can enable remote control via UNIX socket for kitty and then use the parameter
--to
when calling kitty @.As for sending to all VIM windows, you can first find out all the window ids by
-kitty @ ls
and send them exactly.--match
also supports matching running processes.As for escape, you can just send it directly.
kitty @ send-text -m id:1 "\x1b"
You can see the key escape sequence with the following command.