Can't spawn a new tab when called from within tmux? #6017
Replies: 6 comments 4 replies
-
You are missing that tmux filters out escape codes it doesnt understand.
So use a socket for remote control.
|
Beta Was this translation helpful? Give feedback.
-
It works, thanks! The only obstacle is that kitty doesn't find the socket given its template: if I have |
Beta Was this translation helpful? Give feedback.
-
It seems it gets unset in tmux... Is it possible? I launch kitty,
|
Beta Was this translation helpful? Give feedback.
-
No clue, I dont touch tmux.
|
Beta Was this translation helpful? Give feedback.
-
On Tue, Feb 14, 2023 at 04:33:27AM -0800, page-down wrote:
> ... tmux filters out escape codes ...
I think the following can be implemented in Go for `kitten @`.
b3fcb53
Or wait until ssh kitten needs to be ported to the new `kitten`.
No, not really, remote control requires two way communication in general.
tmux passthrough is insufficient.
> ... the KITTY_LISTEN_ON env var is set to the correct socket ...
In this scenario, if the user attaches to a running tmux instance started by another kitty instance,
this environment variable in the shell is possibly inaccurate.
Yeah, that's true, so use kitty --single-instance to run all your
kitties. Or better, dont use tmux :)
|
Beta Was this translation helpful? Give feedback.
-
This also does not work when called from within Neovim terminal, btw. Tried that to preview images from within Neovim. |
Beta Was this translation helpful? Give feedback.
-
I have a kitty window with one tab running a tmux session. Now, from within that session in a shell prompt I issue the following command:
kitty @ launch --type=tab --tab-title "My Tab"
-- and it just freezes?If I issue the same command from a regular kitty window, then everything works ok, a new tab is spawned, and a tab bar appears.
What I'd like to achieve: while being in my tmux session launch a script, which would open a new tab in the same kitty window with w3m showing some user-specified URL there. What am I missing?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions