Trouble remote controlling kitty from nvim #6935
samEngineering
started this conversation in
General
Replies: 1 comment 1 reply
-
neovim does not connect processes launched by os.execute() to the tty
device. So either setup a socket for remote control, or use vim rather
than neovim or run kitty from master and use a watcher witch listens for
the setting of user variables and configure neovim to set a user
variable of startup and delete it on shutdown.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After reading the docs about
allow_remote_control
andlisten_on
, and reading this discussion, I am still a little short on understanding.My goal is to run
kitty @ set-spacing padding=0
from withinnvim
so that the margins look nice for the tabline while runningnvim
(and then reverting afternvim
is closed. In mykitty
config, I haveallow_remote_control yes
.on the
nvim
side, I haveos.execute("kitty @ set-spacing padding=0")
in my
init.lua
but no result.I also tried
os.execute("kitty @ set-spacing padding=0 && kill -s SIGUSR1 <pid>")
,where
<pid>
is the pid of the current kitty instance. No dice there either. I tried each of the above commands withkitten
in place ofkitty
as well. Executing the commandkitty @ set-spacing padding=0
on the command line in the terminal (outside ofnvim
) works as expected.I have verified that the
os.execute
call is working by puttingos.execute("echo 'hello, world!' > file.txt")
,in the
init.lua
and verifying the existence and contents offile.txt
. I am hoping someone with more knowledge of remote control can lend some tips ^_^Beta Was this translation helpful? Give feedback.
All reactions