kitty start in directory of last active kitty window in tiling wm #9578
Replies: 3 comments
-
|
Set remote control to listen on a Unix socket and then run the kitten @
launch command from xbindkeys with --to to connect to that socket.
|
Beta Was this translation helpful? Give feedback.
-
|
nice, this works on the spot! Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
|
I will have to re-open. When I ssh into a host and then start a new kitty instance, the new one will also be ssh'd into the same remote host. exiting the ssh session is not possible so now I cannot use kitty any more to access my local system. On first start, I run:
on subsequent starts I use:
how do I not automatically connect to ssh? Or better yet, how can I exit ssh in those newly-spawned os-windows without closing the entire window? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have read the documentation on kitten @launch including --cwd=current but I am not exactly finding what I am looking for. Seeing that kitty and its modules is very elaborate, it seems this use case has been considered and I just do not know how to configure the system. That being said, I am fairly new to kitty so probably am missing something - pointers and help would be appreciated.
I use a tiling window manager and I run many terminals at the same time. In a way, the window manager is the terminal multiplexer. When I open a new terminal, I would like it to be opened with the working directory of the last-active terminal.
https://github.com/t-8ch/taterm was built around that idea. I open new terminal windows using a key-combination via xbindkeysrc. This is great when having editor in one window, debugging in another, building in a third etc.
So, I would like to configure the cwd for new kitty windows. Currently I run kitty with:
kitty -1.kitten @launch --type=os-window --cwd=currentgets close. It does what I would like to do, but I cannot do this from xbindkeys.How could I achieve this?
Beta Was this translation helpful? Give feedback.
All reactions